Wesley Stessens
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Review Slider] Local avatars not used for FB style 1Thanks for the quick fix! ??
Forum: Plugins
In reply to: [WooCommerce - ActiveCampaign] Bug – Printing unexpected values (2.1.5)Will you fix this bug please?
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Apply coupon also to delivery costsI used this snippet on a client site to work around the issue. This way, the gift card can be applied through the normal coupon code field, but it will be added as a normal gift card (so coupon is also applied to shipping costs)
// Code partially from plugins/yith-woocommerce-gift-cards-premium/lib/class-yith-ywgc-cart-checkout.php: apply_gift_card_code_callback() function fix_yith_gift_card_as_coupon() { check_ajax_referer('apply-coupon', 'security'); $code = sanitize_text_field($_POST['coupon_code']); if (!empty($code)) { $gift = YITH_YWGC()->get_gift_card_by_code($code); if (YITH_YWGC()->check_gift_card($gift)) { $applied_gift_cards = []; if (isset(WC()->session)) { $applied_gift_cards = WC()->session->get('applied_gift_cards', []); } $code = strtoupper($code); if (!in_array($code, $applied_gift_cards)) { $applied_gift_cards[] = $code; WC()->session->set('applied_gift_cards', $applied_gift_cards); } wc_add_notice($gift->get_gift_card_message(\YITH_YWGC_Gift_Card::GIFT_CARD_SUCCESS)); wc_print_notices(); wp_die(); } } } add_action('wp_ajax_woocommerce_apply_coupon', 'App\fix_yith_gift_card_as_coupon', 5); add_action('wp_ajax_nopriv_woocommerce_apply_coupon', 'App\fix_yith_gift_card_as_coupon', 5); add_action('wc_ajax_apply_coupon', 'App\fix_yith_gift_card_as_coupon', 5);
Forum: Plugins
In reply to: [Shortcoder — Create Shortcodes for Anything] Install with composerHi micahjsharp, I am actually having troubles with installing anything through wpackagist today. I think something might be wrong with the repository. Did you try installing another plugin through wpackagist repository?
Forum: Plugins
In reply to: [WC Fields Factory] Compatibility with woocommerce 4.0Same question. Has anyone tested this yet?
Forum: Plugins
In reply to: [bpost shipping] Woocommerce 4.0Same question. Has anyone tested yet?
Forum: Plugins
In reply to: [WC Fields Factory] Showing custom field twiceHi guys,
After updating Woocommerce and this plugin to the latest version, try checking the overridden template ‘single-product/add-to-cart/variable.php’. In my case, I had to update this template to remove (or comment) calling of these actions:
do_action( 'woocommerce_before_add_to_cart_button' );
and
do_action( 'woocommerce_after_add_to_cart_button' );
It appears that Woocommerce now adds those calls someplace else already, probably when rendering the actual cart button as part of action woocommerce_single_variation