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

how to manage room services in prestashop booking module

Ap Booking: How to Manage Room Services Prestashop Booking Module – Leotheme

How to Manage Services Prestashop Booking Module? For any hospitality, room services play an important …

Leave a Reply

Your email address will not be published. Required fields are marked *