What's New
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Tagged: coupon code, product reviews
Hi Yobo, yes i’m using your “4 in 1 reviews” module.
No, maybe I have not explained well.
If a user makes 3 reviews, they will receive 3 coupons. That’s ok.
But if this user them make an order, i don’t want that could use the 3 coupons in the same order. I don’t want that the coupons be cumulative. Only can use one coupon per order.
How can i do it?
Thanks,
Hi,
It requires to modify Prestashop core code. please modify the \classes\Cart.php file, change
if (Db::getInstance()->getValue('SELECT id_cart_rule FROM ' . _DB_PREFIX_ . 'cart_cart_rule WHERE id_cart_rule = ' . (int) $id_cart_rule . ' AND id_cart = ' . (int) $this->id)) {
To
if (Db::getInstance()->getValue('SELECT id_cart_rule FROM ' . _DB_PREFIX_ . 'cart_cart_rule WHERE id_cart = ' . (int) $this->id)) {
See attached screenshot.
Best regards.
You must be logged in to reply to this topic.