Skip to content

Instantly share code, notes, and snippets.

@giucu91
Created April 5, 2023 17:24
Show Gist options
  • Save giucu91/ca87f2fd7d0172a2b2db022c4918b051 to your computer and use it in GitHub Desktop.
Save giucu91/ca87f2fd7d0172a2b2db022c4918b051 to your computer and use it in GitHub Desktop.
modificari-smartbill.txt
Fisier includes/class-woo-smartbill-wrapper.php functia storneaza sub linia 204( $data = $this->get_invoice_data( $order_id, true ); )
$data = apply_filters( 'woo_smartbill_storneaza_data', $data, $order_id );
Fisierul includes/class-woo-smartbill-gestiune.php
1. Sub linia 20( add_filter( 'woo_smartbill_genereaza_data', array( $this, 'add_usestock' ), 20, 2 ); ) adaugam :
add_filter( 'woo_smartbill_storneaza_data', array( $this, 'add_usestock' ), 20, 2 );
2. In functia add_gestiune linia 254 comentam urmatorul cod :
if ( $stornare ) {
return $product;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment