support

Show Total Price instead of Per Unit Price in Order Summary

Started by hus2020, April 07, 2017, 11:08:19 PM

Previous topic - Next topic

hus2020

In the final checkout phase, there is an order summary displayed in top right. By default, it displays the quantity, and the per unit  price of the product. Instead of such, I want to display the total price = per unit price x no of quantity.

For example below, I am ordering 3x Apron with per unit price at 20, so the total must show 60 and not 20.
For Vest, I am ordering 2x, per unit cost is 32, so the total must show 64 and not 32.



How do I do this change. Please anyone guide me. Thank you.

abolabo

1. open file /public_html/storefront/controller/blocks/order_summary.php
2. go to line #86
3. replace
'price'      => $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))),

with
'price'      => $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))*$result['quantity']),
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

hus2020

You're a life savior man. Thank you so much.

I just have one more pending issue, on the post below. Would really appreciate your input/guidance in this matter.

http://forum.abantecart.com/index.php/topic,5450.msg23889.html#msg23889

Quote from: abolabo on April 10, 2017, 04:52:35 AM
1. open file /public_html/storefront/controller/blocks/order_summary.php
2. go to line #86
3. replace
'price'      => $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))),

with
'price'      => $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))*$result['quantity']),

Forum Rules Code of conduct
AbanteCart.com 2010 -