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
| add_filter ( 'woocommerce_order_item_permalink' , '__return_false' ); | |
| add_action( 'woocommerce_account_downloads_column_download-product','xlwcty_remove_hyper_link_from_download_product'); | |
| function xlwcty_remove_hyper_link_from_download_product($download) | |
| { | |
| echo esc_html( $download['product_name'] ); | |
| } |
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
| class WFACP_Hide_Shipping_Fields_By_Method { | |
| public function __construct() { | |
| add_filter( 'woocommerce_update_order_review_fragments', [ $this, 'attach_fragments' ], 1000 ); | |
| add_action( 'wfacp_before_process_checkout_template_loader', [ $this, 'register_hooks' ] ); | |
| add_action( 'wfacp_after_checkout_page_found', [ $this, 'register_hooks' ] ); | |
| add_action( 'wfacp_internal_css', [ $this, 'enqueue_assets' ] ); | |
| add_filter( 'woocommerce_checkout_posted_data', [ $this, 'clear_hidden_field_data' ] ); | |
| } |
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
| add_action( 'wfacp_internal_css', 'exute_custom_aero_js' ); | |
| function exute_custom_aero_js() { | |
| ?> | |
| <style> | |
| @media (min-width: 992px)and (max-width: 1366px) { | |
| .wfacp_collapsible_order_summary_wrap.wfacp_tablet.wfacp_mobile { | |
| display: none; | |
| } | |
| } |
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( 'wfacp_print_cart_error_notice', '__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
| add_filter( 'wfacp_assign_email_as_a_username', '__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_filter( 'wfob_product_raw_data', function ( $raw_data, $product ) { | |
| /** | |
| * @var $product WC_Product | |
| */ | |
| $raw_data['regular_price'] = $product->get_regular_price(); | |
| $raw_data['price'] = $product->get_price(); | |
| return $raw_data; |
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 | |
| class WFACP_Conditional_field { | |
| private $conditional_field = []; | |
| public function __construct() { | |
| $this->conditional_field = [ | |
| 'user_type' => [ | |
| [ |
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 | |
| class WFACP_Conditional_field { | |
| private $conditional_field = []; | |
| public function __construct() { | |
| $this->conditional_field = [ | |
| 'business_delivery' => [ | |
| [ | |
| 'value' => 'checked', |
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
| add_filter( 'wfacp_global_checkout_page_id', function ( $id ) { | |
| $virtual_product_checkout_id=2930; // Make new checkout page for only virtual product and assign here | |
| $non_virtual_product_checkout_id=2895; // Make a new checkout page for non virtual product and assign here | |
| if ( 0 == $id || is_null( WC()->cart )) { | |
| return $id; | |
| } | |
| $cart_count=WC()->cart->get_cart_contents_count(); | |
| if($cart_count > 1){ |