Post by dipixx@tiscali.it » Tue Dec 31, 2024 5:27 pm

Hi,
I have done a fresh installation of version 4.0.2.3 without extensions and started testing it, but I'm experiencing an issue with how discounts are managed. I have created a customer group, added a customer to it, and created a product with a price of 400 EUR. For that product, I have applied a discount for the customer group. The discount type is "Percent," and the discount value is 10. The "Special" flag is enabled (see screenshot 1).
On the client side, after logging in as the customer associated with the discount, the product list displays the original price crossed out and replaced by the the amount of the discount instead of the discounted price (screenshot 2). However, when the client adds the product to the cart, the correct price of 360 EUR is displayed (see screenshot 3). The same issue is also visible on the product detail page: if, from the product list, the client clicks on the product to open the detail page, the original price is crossed out and replaced by the amount of the discount, instead of the discounted price.
A similar issue occurs if the "Special" flag is not enabled: the product list displays the original price without applying any discount.

Another issue is here: on the client side, in the "Available Options" section of the product detail page, the price of options is displayed without the discount. For example, if I create an add-on costing 50 EUR, it is displayed as "(50.00€)" with no discounts. Although the shopping cart calculates the correct price, this can lead to confusion for the client, potentially affecting their purchasing decision.

Is there anything wrong in what I'm doing, or is this a bug?
Thank you.

Attachments

???
shot3.png
Screenshot 3 - shopping cart
shot2.png

Screenshot 2 - shows amount of discount instead of discounted price - shot2.png (16.47 KiB) Viewed 1029 times

???
shot1.png
Screenshot 1 - discount settings


Posts

Joined
Sat Dec 28, 2024 2:46 am

Post by softmonke » Thu Jan 02, 2025 7:28 pm

dipixx@tiscali.it wrote:
Tue Dec 31, 2024 5:27 pm
Hi,
I have done a fresh installation of version 4.0.2.3 without extensions and started testing it, but I'm experiencing an issue with how discounts are managed. I have created a customer group, added a customer to it, and created a product with a price of 400 EUR. For that product, I have applied a discount for the customer group. The discount type is "Percent," and the discount value is 10. The "Special" flag is enabled (see screenshot 1).
On the client side, after logging in as the customer associated with the discount, the product list displays the original price crossed out and replaced by the the amount of the discount instead of the discounted price (screenshot 2). However, when the client adds the product to the cart, the correct price of 360 EUR is displayed (see screenshot 3). The same issue is also visible on the product detail page: if, from the product list, the client clicks on the product to open the detail page, the original price is crossed out and replaced by the amount of the discount, instead of the discounted price.
A similar issue occurs if the "Special" flag is not enabled: the product list displays the original price without applying any discount.

Another issue is here: on the client side, in the "Available Options" section of the product detail page, the price of options is displayed without the discount. For example, if I create an add-on costing 50 EUR, it is displayed as "(50.00€)" with no discounts. Although the shopping cart calculates the correct price, this can lead to confusion for the client, potentially affecting their purchasing decision.

Is there anything wrong in what I'm doing, or is this a bug?
Thank you.
You mentioned that you are using a fresh installation of OpenCart v4.0.2.3 without extensions, but the default OpenCart does not come with the "Special" column or the "Percent" column for product discounts. You can verify it for yourself by going to the live OpenCart demo site here: https://demo.opencart.com/admin - you will see that those columns you have mentioned are not there.

So it is likely that you are indeed using an extension that you are not aware of or you made customisations to your OpenCart site.

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


Post by ADD Creative » Thu Jan 02, 2025 7:32 pm

Looks like you have an extension installed the the issue is with that extension.

www.add-creative.co.uk


Guru Member

Posts

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

Post by dipixx@tiscali.it » Thu Jan 02, 2025 8:06 pm

Thank you for clarifying.
I have installed the Github Master branch from https://github.com/opencart/opencart/ar ... master.zip, which indeed contains a pre-installed extension "OpenCart Default Extensions".


Posts

Joined
Sat Dec 28, 2024 2:46 am

Post by ADD Creative » Thu Jan 02, 2025 9:13 pm

The master branch on GitHub is a development branch and not version 4.0.2.3. Looks like that part of the code is still being worked or has not been tested.

www.add-creative.co.uk


Guru Member

Posts

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

Post by softmonke » Fri Jan 03, 2025 5:38 pm

dipixx@tiscali.it wrote:
Thu Jan 02, 2025 8:06 pm
Thank you for clarifying.
I have installed the Github Master branch from https://github.com/opencart/opencart/ar ... master.zip, which indeed contains a pre-installed extension "OpenCart Default Extensions".
Ah I took a look at the master branch's code and it seems like it's a new feature for the discounts that is still being worked on - unrelated to the "OpenCart Default Extensions". I stand corrected.

You should download from the official releases here instead: https://www.opencart.com/index.php?rout ... f309767d60

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am

Who is online

Users browsing this forum: No registered users and 26 guests