Created
April 5, 2023 17:24
-
-
Save giucu91/ca87f2fd7d0172a2b2db022c4918b051 to your computer and use it in GitHub Desktop.
modificari-smartbill.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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