Start typing to see suggestions. Use arrow keys to navigate, Enter to select.

getPriceString()

Kirby page method

Returns a string with all prices.

All prices are separated with separator set in config.
Can be used to store prices for a javascript method.
Default looks lite "30|90|270"

Parameters

Name Type Description
$currency bool – true adds currency, like €30
Returns:
string

Usage

This method is available on all $page objects:

$page->getPriceString($currency);

Source: /methods/pages/getPriceString.php

Jump to