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_return_to_cart_link', function( $cart_url ) { | |
| // Customize the cart URL | |
| return '/shop/'; | |
| }, 10, 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
| if ( ! class_exists( 'CT_MPAC_FKCart_Compat' ) ) { | |
| class CT_MPAC_FKCart_Compat { | |
| public function __construct() { | |
| add_action( 'plugins_loaded', array( $this, 'init' ) ); | |
| } | |
| public function init() { | |
| // Check if both plugins are active | |
| if ( ! class_exists( 'CtMPAC_Application' ) || ! class_exists( 'FKCart\Includes\Front' ) ) { |
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
| if (!class_exists('WFACP_Auto_Advance_After_Login')) { | |
| /** | |
| * Class WFACP_Auto_Advance_After_Login | |
| * | |
| * Auto-trigger the next page button after user logs in via smart login | |
| * on specific multi-step checkout forms | |
| * | |
| * @since 1.0.0 | |
| */ | |
| class WFACP_Auto_Advance_After_Login { |
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
| if ( ! class_exists( 'Custom_WooCommerce_Quantity_Handler' ) ) { | |
| /** | |
| * Class Custom_WooCommerce_Quantity_Handler | |
| * | |
| * Handles custom quantity increments for WooCommerce products based on categories. | |
| * Compatible with standard WooCommerce cart and FunnelKit Cart (slide cart). | |
| * | |
| * @since 1.0.0 |
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('wfocu_ppcp_gateway_invoice_id', 'modify_invoice_id_for_paypal', 10, 3); | |
| function modify_invoice_id_for_paypal($invoice_id, $order, $prefix) { | |
| // Get the WooCommerce order ID | |
| $order_id = $order->get_id(); | |
| // Modify the invoice ID format to "UWC-<order_id>" | |
| $invoice_id = 'UWC-' . $order_id; | |
| return $invoice_id; | |
| } |
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
| if ( ! class_exists( 'WFACP_Compatibility_Aruba_Fatturazione_Elettronica' ) ) { | |
| #[AllowDynamicProperties] | |
| class WFACP_Compatibility_Aruba_Fatturazione_Elettronica { | |
| /** | |
| * Aruba field keys in correct display order | |
| * Customer type and invoice choice first, then fiscal data heading, then tax fields | |
| * | |
| * @var array | |
| */ |
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> | |
| jQuery(function($) { | |
| $(document).ajaxComplete(function(event, jqxhr, settings) { | |
| // Check in settings.data (POST data) for the action | |
| if (settings && settings.data && | |
| settings.data.indexOf('action=bodycommerce_ajax_add_to_cart_woo') > -1 && | |
| jqxhr.status === 200) { | |
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('lpac_dps_available_location_hooks', function ( $hooks ) { | |
| $hooks['wfacp_before_shipping_calculator_field'] = __( 'Funnelkit Checkout Before Shipping Method', 'delivery-and-pickup-scheduling-for-woocommerce' ); | |
| $hooks['wfacp_after_shipping_calculator_field'] = __( 'Funnelkit Checkout After Shipping Method', 'delivery-and-pickup-scheduling-for-woocommerce' ); | |
| return $hooks; | |
| }); |
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 WFOB_Bump_Pre_Select_Fix { | |
| /** | |
| * OrderBump IDs to auto-select | |
| * | |
| * @var array | |
| */ | |
| private $bump_ids = array( 5503 ); // Your OrderBump IDs here in comma separated 2363, 2302, 2895 | |
| /** |
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
| if ( ! class_exists( 'WFACP_Custom_Checkbox_Label' ) ) { | |
| #[AllowDynamicProperties] | |
| class WFACP_Custom_Checkbox_Label { | |
| public $checkbox_label = 'I have read and agree to the website <a href="#">Custom Link</a>'; | |
| public function __construct() { | |
| // Hook only after FunnelKit checkout page is found | |
| add_action( 'wfacp_after_checkout_page_found', [ $this, 'init' ] ); |
NewerOlder