Fountain

Site methods

Custom page methods. Available on pages using Fountain templates. Each method has one or more assigned templates it works for.

cartUrl

Return url to cart.

$site->cartUrl();
Returns string

cartAddUrl

Return url to add to cart.

$site->cartAddUrl();
Returns string

cartRemoveUrl

Return url to remove from cart.

$site->cartRemoveUrl();
Returns string

accountUrl

Return url to account page.

$site->accountUrl();
Returns string

checkoutUrl

Return url to cart checkout.

$site->checkoutUrl();
Returns string

currency

Return Kirby\Toolkit\Obj with code and symbol.

$site->currency()->code(); // e.g. EUR
$site->currency()->symbol(); // e.g. €
Returns code() string
symbol() string