Page 3 of 3
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Wed Apr 06, 2016 4:50 pm
by daniGo
this should work for OC 2.0.1.1 and OC 2.2
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Wed Apr 06, 2016 6:06 pm
by supak111
Just tested it on OC2.0.1.1, I dont get any errors but it does not work either. Cart still using the SPECIAL price always.
.
.
.
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Wed Apr 06, 2016 6:39 pm
by daniGo
The cart use special price only if is lower than quantity discount price.
Default:
Code: Select all
$price = $product_query->row['price'];
if ($product_discount_query->num_rows) {
$price = $product_discount_query->row['price'];
}
if ($product_special_query->num_rows) {
$price = $product_special_query->row['price'];
}
Changed:
Code: Select all
$price = $product_query->row['price'];
if ($product_discount_query->num_rows && ($product_discount_query->row['price'] < $price)) {
$price = $product_discount_query->row['price'];
}
if ($product_special_query->num_rows && ($product_special_query->row['price'] < $price)) {
$price = $product_special_query->row['price'];
}
Always took the lower price, at least for me it works.
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Thu Apr 07, 2016 3:06 am
by supak111
YEEEESS! I figure it out, thanks for the OCMOD, this has been driving me nuts for over a year.
You just make a tiny simple mistake. OC 2.0.1.1 atleast doesn't have:
<file path="system/library/cart/cart.php"> change to <file path="system/library/cart.php">
.
.
.
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Wed Jul 13, 2016 12:34 am
by taggsladder
daniGo wrote:this should work for OC 2.0.1.1 and OC 2.2
Thank you
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Fri Jul 15, 2016 2:50 pm
by Vilda
Hello, I have the same problem. Please do you have it for opencart 1.5.6.4? I am able to pay for it.
Re: [1.5.0.5] Bug - Quantity Discount ignored with special p
Posted: Sat Aug 13, 2016 10:26 pm
by kelklope
Vilda wrote:Hello, I have the same problem. Please do you have it for opencart 1.5.6.4? I am able to pay for it.
Did you try the solution of daniGo..it worked for me
Noeud papillon en bois -
Lunette de soleil en bois -
Montre en bois
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Fri Aug 04, 2017 3:56 pm
by mazlie
Please make it for Opencart 2.3.2, I am willing to pay
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Sun Aug 06, 2017 3:57 am
by Mirbrou
Hello, Mazzlie,
I installed version 2.2 and it works very well !
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Fri Jun 08, 2018 8:00 am
by qualitas
Did someone does a file for version 3.0.2.0?
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Wed Jun 13, 2018 4:09 pm
by xxvirusxx
3.0.2.0 version
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Sat Jun 30, 2018 9:40 pm
by adriannnn
xxvirusxx wrote: ↑Wed Jun 13, 2018 4:09 pm
3.0.2.0 version
Thanks! one more request please: this modification only updates the cart, can you make it work in product page after entering the quantity?
Thanks in advance!
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Mon Jul 02, 2018 3:10 pm
by xxvirusxx
Download again. I have reuploaded.
Re: [1.5.0.5] Bug - Quantity Discount ignored with special price
Posted: Sat Jun 01, 2019 2:38 pm
by sergiubarbu
xxvirusxx wrote: ↑Wed Jun 13, 2018 4:09 pm
3.0.2.0 version
I tested on my website (OC 3.0.2.0), but I get a blank page (500 error).
What could be the issue?