Re: modifying promotional coupons to accept multiple products instead of just one
It is possible to customise X-Cart this way, however this requires creating a new module and hacking multiple classes and templates from it.
First of all, you should link the coupon model (\XLite\Module\CDev\Coupons\Model\Coupon) with the product model (\XLite\Model\Product) through a two-side @ManyToMany relation.
Then you should edit classes that displays the Edit Coupon form and add a widget that allows you to select products for a coupon.
Plus you should edit classes that implement the coupon discount logic and make it check for the linked products.
If you are unsure how to code the above, I believe you are better to hire someone who can program such a module for you.
|