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
class WFOCU_Upsell_Addon { | |
public function __construct() { | |
add_action( 'wp_footer', [ $this, 'js' ] ); | |
add_shortcode( 'wfocu_bucket_total', [ $this, 'bucket_total' ] ); | |
add_filter( 'wfocu_build_offer_product_before', array( $this, 'maybe_check_offer_data_for_qty_change' ), 10, 2 ); | |
add_filter( 'wfocu_prepare_upsell_package_before', array( $this, 'maybe_check_offer_data_for_qty_change' ), 10, 2 ); | |
add_action( 'wfocu_add_custom_html_above_accept_button', array( $this, 'schemes_template_html' ), 10, 2 ); | |
add_filter( 'wfocu_validate_charge_request', '__return_true' ); | |
} |
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
/** | |
* WFOB_Bump_Addons - Optimized class for managing order bumps with WooCommerce cart items | |
*/ | |
class WFOB_Bump_Addons { | |
/** | |
* @var array Filtered order bumps | |
*/ | |
private $filtered_bumps = []; |
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
class WFACP_Dequeue_Theme_Asset_by_Slug { | |
/** | |
* Array of asset handles that should be dequeued if they exist | |
* These will be checked against both JS and CSS registrations | |
*/ | |
private $assets_to_dequeue = [ | |
'bootstrap', | |
'select2', |
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
class WFACP_Conditional_field_Based_On_Payment_Method { | |
// Payment method that requires address fields | |
public $address_required_payment = 'mollie_wc_gateway_klarna'; | |
// Minimal fields that will always be shown | |
public $minimal_fields = [ | |
'billing_email', | |
'billing_first_name', | |
'billing_last_name', |
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
/** * Add a note to the order when the order status changes to failed | |
* | |
* @param int $order_id The ID of the order. | |
* @param WC_Order $order The order object. | |
* @param array $status_transition The status transition data. | |
*/ | |
add_action( 'woocommerce_order_status_failed', function ( $order_id, $order, $status_transition ) { | |
if ( $order->get_payment_method() !== 'fkwcs_stripe' ) { | |
return; | |
} |
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
add_filter( 'sgo_js_async_exclude', function ( $exclude_list ) { | |
$exclude_list[] = 'jCard_js'; | |
return $exclude_list; | |
} ); |
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
class FunnelKitCartJsCookie_Quantity { | |
public function __construct() { | |
add_action( 'wp_head', [ $this, 'js' ] ); | |
add_filter( 'fkcart_re_run_slide_cart', '__return_true' ); | |
add_filter( 'fkcart_fragments', [ $this, 'send_fragments' ] ); | |
} | |
public function send_fragments( $fragments ) { | |
$instance = FKCart\Includes\Front::get_instance(); | |
$fragments['fkcart_qty'] = $instance->get_cart_content_count(); |
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
add_action( 'woocommerce_after_checkout_form', function () { | |
echo '<div id="classic_pay_with_amazon"></div>'; | |
} ); | |
add_action( 'wp_footer', function () { | |
?> | |
<script> | |
(function ($) { |
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
class WFACP_Conditional_field_tmp { | |
private $conditional_field = []; | |
public function __construct() { | |
/* Conditional fields */ | |
$this->conditional_field = [ | |
'tax_exempt_yn' => [ /* tax_exempt_yn*/ |
NewerOlder