SilverShop\Extension\ShopConfigExtension
Synopsis
class ShopConfigExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static $email_from;
- private static string $base_currency = 'NZD';
- private static boolean $forms_use_button_tag = false;
- // methods
- public static void current()
- public static void get_site_currency()
- public void updateCMSFields()
- public array getCountriesList()
- public string getSingleCountry()
- public static string countryCode2name()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $base_currency
—
The shop base currency - $db
- $email_from
—
Email address where shop emails should be sent from - $has_one
- $owns
Methods
public
- countryCode2name() — Convert iso country code to English country name
- current()
- getCountriesList() — Get list of allowed countries
- getSingleCountry() — For shops that only sell to a single country, this will return the country code, otherwise null.
- get_site_currency()
- updateCMSFields()