Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Restriction AND product › Reply To: Restriction AND product
October 9, 2018 at 7:18 pm
#3937
Soft79
Keymaster
For now this is a quick fix:
In the file wp-content/plugins/woocommerce-auto-added-coupons-pro/includes/plugins/WJECF_WPML.php find the following (around line 25):
add_filter( 'wjecf_get_product_id', array( $this, 'filter_get_product_id' ), 10 );
add_filter( 'wjecf_get_product_ids', array( $this, 'filter_get_product_ids' ), 10 );
add_filter( 'woocommerce_coupon_get_description', array( $this, 'filter_get_coupon_description' ), 10, 2 );
and replace with:
add_filter( 'wjecf_get_product_id', array( $this, 'filter_get_product_id' ), 10 );
add_filter( 'wjecf_get_product_ids', array( $this, 'filter_get_product_ids' ), 10 );
add_filter( 'wjecf_get_product_cat_id', array( $this, 'filter_get_product_cat_id' ), 10 );
add_filter( 'wjecf_get_product_cat_ids', array( $this, 'filter_get_product_cat_ids' ), 10 );
add_filter( 'woocommerce_coupon_get_description', array( $this, 'filter_get_coupon_description' ), 10, 2 );
That should work, but changing language while a coupon is in the cart might invalidate the coupon.
I need to investigate further, but it might take a while.