Jump to content

Wrong product total price on order confirmation page with customization having price PS 8.1.4


tomek80

Recommended Posts

Hi,

I have created a module that saves additional prices for customization. I save the price in the customized_data table in the price column. I do this in processChangeProductInCart. Everything is correct in the cart. All prices in admin are also ok. The problem is with the order summary page. The unit prices of the products are correct. The total price of the order are correct. The total amount of the cart items does not match. Calculated is based on the original price., not with customized price.
My analysis shows that the field originally in the product object is the price field with the basic price and the product_price field with the price with customization price adds.
In OrderLazyArray, the price field changes to product_price_wt or product_price and already has a price after customization price adds.
The total field during customization changes to total_customization_wt or total_customization. These two fields are enumerated in ProductCore
$price = isset($product_update['price']) ? $product_update['price'] : $product_update['product_price'];
Then they are no longer recalculated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...