Home / Prestashop Module Tutorials / Ap Booking / Fix error display Price Discount in Ap Booking Prestashop Module

Fix error display Price Discount in Ap Booking Prestashop Module

Update display Price Discount in Ap Booking Prestashop Module.

Continue the tutorial series of Ap Booking Prestashop Module, this blog is going to be so simple to guide you on how to manage order and filter booking order in Prestashop Booking Module.

Change file: modules/apbooking/override/classes/Cart.php

What change in file:

– In line 15: Add new $old_price = 0;

– In line 48: Add new $old_price = $price;

– In line 97:

if ($type == Cart::ONLY_DISCOUNTS) {
     return $old_price – $total;
}

Compare before after fix error

Template price discount display now:

About Nhu Quynh

"You can't sell anything if you can't tell anything." https://www.leotheme.com/

Check Also

Leotheme Black Friday 2022

Prestashop Theme and Module Black Friday and Cyber Monday Sales Leotheme 2022 30% Off

Prestashop Leotheme Black Friday 2022 Promotion! Dear valued customers, Black Friday and Cyber Monday Sales …

Leave a Reply