Issue Details.No third-party extension is installed I'm only using default Opencart modules like Featured & Specials which comes with default Opencart extension. In order to reproduce the issue please enable and use the both modules in the homepage layout.
I have a product of ₹101.00 on which 20% discount is applied. In Featured Products section the displayed price of the product is ₹80.80 which is correct but in the Special Products section the price of the same product is ₹20.00 which is wrong. Please take a look at screenshots given below.
Screenshot - Featured Products.
Screenshot - Special Products
Steps to reproduce the issue.
- Go to Catalog > Product via sidebar in Admin Dashboard.
- Create a new product or edit an existing product.
- Select the Discount tab.
- Add a new discount and set the type to "Percentage" or "Subtract"
Code: Select all
| Customer Group | Quantity | Priority | Price | Type | Special | Date Start | Date End |
|----------------|----------|----------|---------|--------------|---------|-------------|------------|
| Default | 1 | 0 | 20.0000 | Percentage | true | mm/dd/yyyy | mm/dd/yyyy |
- Click on save and view the products in homepage.
Temporary workaround: It seems to be working fine when type is "Fixed Amount".
Other Details
Opencart Version: 4.1.0.3
Theme: Default
Extensions Used: Default (Using Featured and Specials module)
Additional Extension: N/A
PHP: 8.2.12
Browser: Google Chrome - 136.0.7103.113 (Official Build) (64-bit)
Has anyone found another solution to resolve this issue? Which core files should I check or override via Events in order to resolve this issue? Please suggest.