Yith Affifiate BankDetails

if ( ! function_exists( ‘yith_wcaf_gateway_bacs_bacs_name_label’ ) ) { function yith_wcaf_gateway_bacs_bacs_name_label( $label ) { $label = ‘Account Name’; return $label; } add_filter( ‘yith_wcaf_gateway_bacs_bacs_name_label’, ‘yith_wcaf_gateway_bacs_bacs_name_label’, 10, 1 ); add_filter( ‘yith_wcaf_account_name_label’, ‘yith_wcaf_gateway_bacs_bacs_name_label’, 10, 1 ); } if ( ! function_exists( ‘yith_wcaf_gateway_bacs_bacs_iban_label’ ) )…Continue reading

BOGO Coupons to refer to original subtotal

add_filter( ‘woocommerce_coupon_validate_minimum_amount’, function ( $is_invalid, $coupon, $subtotal ) { if ( ! $is_invalid ) { return $is_invalid; } $bogo_deals = get_post_meta( $coupon->get_id(), ‘_acfw_bogo_deals’, true ); if ( empty( $bogo_deals ) ) { return $is_invalid; } $pre_bogo_subtotal = 0.0; foreach (…Continue reading

Pods – pods_universel

function shortcode_pods_universel($atts) { // 1. Définition des arguments $args = shortcode_atts(array( ‘name’ => ”, // Nom de votre page d’options Pods ‘template’ => ”, // Nom du template de mise en page ‘futur’ => ”, // Nom du champ date…Continue reading

Activer automatiquement WooCommerce et les paiements (copy) (copy)

add_action(‘init’, function () { $extensions = [ ‘woocommerce/woocommerce.php’, ‘woo-payments/woocommerce-payments.php’, ‘woocommerce-paypal-payments/woocommerce-paypal-payments.php’, ‘woocommerce-tax/woocommerce-tax.php’, ‘google-listings-and-ads/google-listings-and-ads.php’, // si installé ‘kliken-marketing/kliken-marketing.php’, // marketing Woo ]; foreach ($extensions as $extension) { if (!is_plugin_active($extension) && file_exists(WP_PLUGIN_DIR . ‘/’ . $extension)) { activate_plugin($extension); } } });Continue reading