Repeated addition of option price in admin order section.
digicatech opened this issue · comments
What version of OpenCart are you reporting this for?
Version 4.0.2.3
Describe the bug
When you go into Order details in the admin panel and press the Refresh button, 'option price' is added back to the total price. If the Confirm button is pressed, it is recorded in the database with the increased price.
The error is caused by line 340 and 341 in the system/library/cart/cart.php file.
To Reproduce
Steps to reproduce the behavior:
- Create an order with additional option price.
- Go to 'Panel'
- Click on 'Orders'
- Click On 'Action','View' button.
- Scroll down to 'Refresh' button and click.
- Option price will be added to "Total" price.
Expected behavior
'option_price' should not be added to the total price
Screenshots / Screen recordings
Server / Test environment (please complete the following information):
- Local development (Laragon)
- Windows 11
- PHP version : 8.1.10
- Apache version 2.4.54
- Browser(s) tested with Edge