#7036 Prices

Parent Category:
DPCalendar
Category:
Configuration
Last Updated:
Allon Moritz, Friday, 14 June 2019 10:59 (Friday, 14 June 2019)
Created:
Tuesday, 11 June 2019 12:15 (Tuesday, 11 June 2019)
Hits:
339

Introduction

Prices are displayed and used all over DPCalendar. Especially in the event details view or booking form. Rendering a price is not that easy as different countries or cultures do have special formats. To fit them all we have two ways to configure the format. One are options, the other is a template override.

Options

In the DPCalendar options in the Booking System tab are two options available where you can define the currency symbol and price decimal separator.

Layout override

The logic of price rendering can be found in the file /components/com_dpcalendar/layouts/format/price.php. Copy that file into the folder /templates/{your template}/html/layouts/com_dpcalendar/format/price.php and adapt it to your needs. To access the price you can use $displayData['price'].

Comments (0)

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.