View Single Post
  #2  
Old 11-13-2017, 07:58 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote