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_Cart_FAKE_Element { | |
| public function __construct() { | |
| add_action( 'wfacp_outside_header', [ $this, 'action' ] ); | |
| add_action( 'wfacp_internal_css', [ $this, 'internal_js' ] ); | |
| } | |
| public function is_enable() { | |
| $is_global_checkout = WFACP_Core()->public->is_checkout_override(); |
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( 'woocommerce_after_calculate_totals', function () { | |
| if ( ! class_exists( 'WFOB_Product_Price_Based_Country' ) ) { | |
| return; | |
| } | |
| WFOB_Common::remove_actions( 'wfob_product_raw_data', 'WFOB_Product_Price_Based_Country', 'change_price_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
| class Fkcart_Cart_item_cut_Price { | |
| public function __construct() { | |
| add_action( 'fkcart_after_header', [ $this, 'attach_action' ] ); | |
| } | |
| public function attach_action() { | |
| add_filter( 'woocommerce_cart_item_subtotal', [ $this, 'display_strike_price' ], 999, 2 ); | |
| } | |
| public function display_strike_price( $price, $cart_item ) { |
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
| /** | |
| * This snippet will deque FB analytics js file and prevent any ajax requests on checkout page | |
| */ | |
| add_action( 'wp_enqueue_scripts', function () { | |
| global $post; | |
| if ( 0 < did_action( 'wfacp_checkout_page_found' ) && 'XXXXX' == $post->ID ) { | |
| remove_action( 'wp_enqueue_scripts', array( WFFN_Core()->public, 'maybe_add_script' ) ); | |
| } |
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('fkwcs_express_button_checkout_position',function (){ | |
| return 'woocommerce_review_order_after_payment'; | |
| },30); |
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_checkout_fields', 'ocultar_validar_cuit_cuilde_ar', 20 ); | |
| function ocultar_validar_cuit_cuilde_ar( $fields ) { | |
| // Verificar si el país seleccionado es Argentina (código de país: AR) | |
| if ( isset( $_POST['billing_country'] ) && $_POST['billing_country'] !== 'AR' ) { | |
| // Deshabilitar la validación del campo 'billing_cuitcuil' | |
| $fields['advanced']['billing_cuitcuil']['required'] = false; | |
| } | |
| return $fields; |
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( 'wp_footer', function () { | |
| ?> | |
| <script> | |
| window.addEventListener('load', function () { | |
| jQuery('body').on('fkcart_open', function () { | |
| (function (a, b) { | |
| a = "https://log.superceramiccoating.com/conversion.js?cid={clickid}&et=add_to_cart"; | |
| var c = b.createElement("script"), d = b.scripts[0]; | |
| if (b = b.cookie.match(/(^| )vl-cid=([^;]+)/)) if (-1 < a.indexOf("cid=")) a = a.replace(/cid=.*?(&|$)/, "cid=" + b.pop() + "&"); else { | |
| var e = -1 < a.indexOf("?") ? "&" : "?"; |
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
| /** | |
| this snippet Work only if funnel builder 2.13 or Greater and AeroCheckout 3.8.1 or Greater | |
| */ | |
| class FunnelKitMoveSectionBelowGateway { | |
| private $contained_section_fields = [ 7 => '']; | |
| public function __construct() { | |
| add_action( 'wfacp_internal_css', [ $this, 'css' ] ); |
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( 'wp_footer', function () { | |
| /** | |
| * Uncomment Below two line of code if you not used variable product in checkout | |
| */ | |
| //wp_dequeue_script( 'wc-single-product' ); | |
| //wp_dequeue_script( 'wc-add-to-cart-variation' ); | |
NewerOlder