Description
Hi there,
I found that the coupon filter is not working with variable products.
Only the attributes that are used to distinguish the variants are considered, but not the attributes that are the same for all variants.
In my case, we wanted to create a coupon for a specific brand. The brand attributes is identical for all variants of a variable product. The coupon was only applied to “normal” products, but not to any variable products.
I analyzed your source code and added code to consider the attributes of the parent product of a variation.
The function wac_check_coupon_valid_attributes now looks as follows.
Could you consider adding this to your code (after some quality checks of course)?
And it might be that a similar modification is required for “Product Tags”. Didn’t look at that at all…






Reviews
There are no reviews yet.