Menu

#7036 Prices

Parent Category:
DPCalendar
Category:
Configuration
Last Updated:
Allon Moritz, Tuesday, 02 May 2023 15:49
Created:
Tuesday, 11 June 2019 12:15
Hits:
2179

This feature is part of the DPCalendar Standard subscription.
SubscribePHP 7.4PHP 8Joomla 3.10Joomla 4.4Joomla 5

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.