Post by haxcop » Mon Apr 03, 2023 5:47 pm

Hello!
Opencart Version 3.0.3.8
I'm would like to understand the logic applied for PRICE < DISCOUNT > SPECIAL PRICE
I noticed the following
Excluding available dates for simplicity on the test cases below
If we have:
  • Price (only) that is the only price availble
  • Price > Special Price = the special price will be the elegible
  • Price >Discount Price (QTY) = the Discount price will be the elegible IF added >= (QTY)
  • Price > Special Price :Priority=1> Discount Price >=(QTY) :Priority=2 = the special price will be the elegible and shown IF added >=(QTY) the Discount price will be applied
In this last case I noticed that's not true... The only Available price will be Special Price

I have read the documentation on the special section mentions the quantity also but such field doesn't exist in the special price tab, only Customer Group - priority - Price and dates

I played around with the priority field settings:
both to 0 = Same Results
Special 1 / Discount 2 = Same Results
Special 2 / Discount 1 = Same Results

It appears to me the only way arount if decided to use Discount & Special is to set Different dates to both in order to have it applied and compare the (SP/DC-prices) against the Price ?

Please let me know if this is correct or am I missunderstading the logic by design

Thanks again,
Last edited by haxcop on Thu Apr 06, 2023 6:34 pm, edited 2 times in total.

New member

Posts

Joined
Tue Jan 14, 2014 9:38 pm
Location - Dublin

Post by ADD Creative » Mon Apr 03, 2023 6:05 pm

If a special price is set it will override any other price regardless of quantity.

You can see the code below.
https://github.com/opencart/opencart/bl ... #L174-L194

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by haxcop » Mon Apr 03, 2023 7:37 pm

ADD Creative wrote:
Mon Apr 03, 2023 6:05 pm
If a special price is set it will override any other price regardless of quantity.

You can see the code below.
https://github.com/opencart/opencart/bl ... #L174-L194
Thanks,
But wouldn't this logic defeat the pourpose of a Discount Price per quantity?
If we look at any Ecommerce Provider/Distributor the logic will be as expected on my example above
Price = Highest Cost, normally what would you pay in Retail
Special Price = Promotional Price, Seasonal, 10 %OFF Etc For limited time or Online Only
Discount Price = Quantity > 1 a %OFF the Special Price due to higher quantity of purchase

Image

Attachments

price-special-discount.png

price-special-discount - price-special-discount.png (303.24 KiB) Viewed 1683 times


New member

Posts

Joined
Tue Jan 14, 2014 9:38 pm
Location - Dublin

Post by ADD Creative » Mon Apr 03, 2023 7:54 pm

Yes, I agree it doesn't make sense to work that way. It would make more sense to always use the lowest price.

Issues have been raised over more than a decade, they always get rejected.
https://github.com/opencart/opencart/issues/237
https://github.com/opencart/opencart/pull/4346
https://github.com/opencart/opencart/issues/9748

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by haxcop » Mon Apr 03, 2023 8:35 pm

ADD Creative wrote:
Mon Apr 03, 2023 7:54 pm
Yes, I agree it doesn't make sense to work that way. It would make more sense to always use the lowest price.

Issues have been raised over more than a decade, they always get rejected.
https://github.com/opencart/opencart/issues/237
https://github.com/opencart/opencart/pull/4346
https://github.com/opencart/opencart/issues/9748
WOW :o

I'm amazed that this project still being called "OpenSource" after all the Answers from the Core developers, gladly we can still made modifications to the code.
Thank You!

New member

Posts

Joined
Tue Jan 14, 2014 9:38 pm
Location - Dublin
Who is online

Users browsing this forum: No registered users and 3 guests