This file contains hidden or 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
| <?php | |
| add_filter( 'eu_order_woocommerce_withdrawal_email_show_verification_code', '__return_false' ); |
This file contains hidden or 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
| <?php | |
| add_action( 'eu_owb_woocommerce_return_request_form_before_submit', function() { | |
| echo '<p class="eu-owb-privacy-notice">By submitting this form, I agree to the <a href="https://my-shop.com/privacy-policy">privacy policy</a>.</p>'; | |
| } ); |
This file contains hidden or 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
| <?php | |
| add_filter( 'eu_owb_woocommerce_withdrawal_button_text', function() { | |
| return 'Cancel contract'; | |
| } ); |
This file contains hidden or 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
| <?php | |
| add_filter( 'eu_owb_get_contact_support_url', function() { | |
| return 'https://my-shop.com/contact'; | |
| } ); |
This file contains hidden or 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
| <?php | |
| add_filter( 'eu_owb_woocommerce_show_withdrawals_in_menu', '__return_true' ); |
This file contains hidden or 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
| <?php | |
| add_filter( 'storeabill_invoice_get_template', function( $template, $invoice ) { | |
| $template_id = false; | |
| if ( $order = $invoice->get_order() ) { | |
| $wc_order = $order->get_object(); | |
| foreach( $wc_order->get_items( 'line_items' ) as $item ) { | |
| if ( $product = $item->get_product() ) { |
This file contains hidden or 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
| <?php | |
| add_action( 'init', function() { | |
| $light_product = wc_get_product( 3890 ); | |
| $bulk_product = wc_get_product( 6695 ); | |
| $light_cart_item = new CartItem( array( | |
| 'data' => $light_product, | |
| 'quantity' => 1, | |
| ) ); |
This file contains hidden or 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
| <?php | |
| add_filter( 'eu_owb_woocommerce_order_item_is_withdrawable', function( $is_withdrawable, $order_item ) { | |
| $product = $order_item->get_product(); | |
| if ( $product ) { | |
| // Decide based on the original product | |
| } | |
| return $is_withdrawable; |
This file contains hidden or 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
| <?php | |
| add_filter( 'eu_owb_get_contact_support_email', function() { | |
| return 'test@shop.de'; | |
| } ); |
This file contains hidden or 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
| <?php | |
| add_filter( 'eu_owb_woocommerce_is_shop_request', '__return_true' ); |
NewerOlder