VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: barbara on April 07, 2023, 19:53:25 PM

Title: virtuemart coupon not working on child categories
Post by: barbara on April 07, 2023, 19:53:25 PM
Hi

I`ve got a handful of parent Categories in the shop, each of which have several dozen sub categories.

The Parent Categories do not have products - they are all in the child 'sub' categories.

When setting a coupon i am hoping to be able to say coupon is good for 'Parent A' which should include all the products from the child subcategories of Parent A, but it appears VM is not recognizing the products in the child categories - getting 'invalid coupon' error for parent, coupon only works if I specify the Child - which is going to be a lot of work to go through and add all the child categories to each coupon.

Is there any way to set the coupon to recognize products from sub categories?
Title: Re: virtuemart coupon not working on child categories
Post by: jenkinhill on April 08, 2023, 13:16:33 PM
In coupon configuration, for each top-level category coupon enter the applicable subcategory names in "Allowed Product Categories"
Title: Re: virtuemart coupon not working on child categories
Post by: dsrpmedia on June 13, 2023, 02:09:54 AM
so you do have to specifically select ALL the child categories?

that seems very onerous on a site with dozens of subcategories for each category - there is no way to simply set coupons to apply to products in sub categories?