So coupons are not applied to special products for 2.x version.
Please check attached vqmod file.
Attachments
Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com
Attachments
No coupon on special prices Opencart 3.x ocmod version
Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com
nice working great but when we add other non special product along with special price product then coupon is being applied. if in cart there is a special product along with normal products then coupon should not to be apply.Qphoria wrote: ↑Thu Apr 14, 2011 4:27 amHere's a quick vQmod script for preventing coupons from applying to products that are on special
If you have 2 products:
Hat - 20.00
Shirt - special for 15.00
Coupon for 50% off would normally give a total of:
20.00 * .50 = 10.00
15.00 * .50 = 7.50
Total: 17.50
This mod will ignore the products that are on special from getting the additional discount:
20.00 * .50 = 10.00
15.00 (special ignored) = 15.00
Total: 25.00
I use v2.3.0.2 and "no_coupon_2x.xml", I changed the path and it works well for the percentage, but for the fixed discount if there are products with a discount decreases it . See screenshot
I also tried to install both files: no_coupon_on_special_vqmod_2.1.0.2.xml, and they do not work, despite changing the path. I get a 404 error.
I changed:
<file name = "catalog / model / checkout / coupon.php"> for <file name = "catalog / model / extension / total / coupon.php">
<file name = "catalog / model / total / coupon.php"> for <file name = "catalog / model / total / coupon.php">
<file name = "catalog / controller / total / coupon.php"> for <file name = "catalog / controller/extension / total / coupon.php">
anf this: $this->load->model('total/coupon'); for. $this->load->model('extension/total/coupon');
Should I change other lines?
Thank you for your help!
Attachments
fixed _ just regular price.png (85.72 KiB) Viewed 8900 times
fixed_with_regular_and_special .png (112.7 KiB) Viewed 8900 times
https://cotonflanelle.com
OC2.3.0.2
LsCache de LiteSpeed
VQMOD V2.6.4
Kingstorepro - ThemeGlobal
Complete SEO
Product Preorder Pro - Webkul
Webkul Quickbook Connector - Webkul
Customers Also Viewed / Purchased
opencart-2-x-export-import-multilingual-3-12 - J. Neuhoff
I use v2.3.0.2 and "no_coupon_2x.xml", I changed the path and it works well for the percentage, but for the fixed discount if there are products with a discount decreases it . See screenshot
I also tried to install both files: no_coupon_on_special_vqmod_2.1.0.2.xml, and they do not work, despite changing the path. I get a 404 error.
I changed:
<file name = "catalog / model / checkout / coupon.php"> for. <file name = "catalog / model / extension / total / coupon.php">
<file name = "catalog / model / total / coupon.php"> for. <file name = "catalog / model / total / coupon.php">
<file name = "catalog / model / extension / total / coupon.php">
anf this: $this->load->model('total/coupon'); for. $this->load->model('extension/total/coupon');
Should I change other lines?
Thank you for your help!
Attachments
fixed_with_regular_and_special .png (112.7 KiB) Viewed 8897 times
fixed _ just regular price.png (85.72 KiB) Viewed 8897 times
https://cotonflanelle.com
OC2.3.0.2
LsCache de LiteSpeed
VQMOD V2.6.4
Kingstorepro - ThemeGlobal
Complete SEO
Product Preorder Pro - Webkul
Webkul Quickbook Connector - Webkul
Customers Also Viewed / Purchased
opencart-2-x-export-import-multilingual-3-12 - J. Neuhoff
I found this and it works without errors and works on both percentage and value discounts when having special price products in the cart:Mirbrou wrote: ↑Thu Sep 06, 2018 3:22 amHi,
I use v2.3.0.2 and "no_coupon_2x.xml", I changed the path and it works well for the percentage, but for the fixed discount if there are products with a discount decreases it . See screenshot
I also tried to install both files: no_coupon_on_special_vqmod_2.1.0.2.xml, and they do not work, despite changing the path. I get a 404 error.
I changed:
<file name = "catalog / model / checkout / coupon.php"> for. <file name = "catalog / model / extension / total / coupon.php">
<file name = "catalog / model / total / coupon.php"> for. <file name = "catalog / model / total / coupon.php">
<file name = "catalog / model / extension / total / coupon.php">
anf this: $this->load->model('total/coupon'); for. $this->load->model('extension/total/coupon');
Should I change other lines?
Thank you for your help!
https://www.opencart.com/index.php?rout ... n_id=30764
Is this for 3.x or 2.x?imdevlper18 wrote: ↑Sun Aug 06, 2017 1:16 pmFor opencart version 3.x here is the download file attached.
I see the comment mentions 3.x whereas the name implies 2.x .
Users browsing this forum: No registered users and 17 guests