shop
The shop
object contains following attributes:
Object Fields
Field | Data Type | Description |
---|---|---|
shop.currency | String | Returns the shop's currency in three-letter format. e.g. USD |
shop.domain | String | Returns the primary domain of the shop. |
shop.email | String | Returns the shop's email address. |
shop.name | String | Returns the shop's name. |
shop.permanent_domain | String | Returns the .shoplineapp.com URL of a shop.Remarks: Not available when a custom domain is configured |
shop.url | String | Returns the full URL of a shop. |
shop.secure_url | String | Returns the full URL of a shop prepended by the https protocol. |
shop.current_locale | Object | Returns the locale object that the shop is currently displayed in. it contains attributes code and name |
shop.enabled_payment_types | Array | Returns an array of accepted credit cards for the shop. Possible values: visa , master , amex , paypal , prizm , tw_711_pay , tw_fm_pay , allpay , linepay , ecpay , esun , taishin or sinopac |
shop.money_with_currency_format | String | Returns a string that is used to format money while also displaying the currency. Possible values: HK$ , CN¥ , NT$ , US$ , S$ , A$ , £ , PHP , RM , ฿ , DH , 円 or € |
shop.supported_locales | Object | Returns the locale object that the shop support (excludes current locale). It contains same format with shop.current_locale . |
shop.logo | String | Returns the logo image url that the shop set in admin console |
shop.messages_enabled | Boolean | Returns true if the shop enabled message to shop feature. |
shop.multicurrency_enabled | Boolean | Returns true if the shop enabled multi-currency feature. |
shop.supported_currencies | Array | Returns an array of currency object. It contains following attributes: name , symbol and iso_code . |
shop.features | Array | Returns an array of features which the shop enabled. |
shop.custom_footer | String | Returns HTML string of store footer from footer builder |
Currency Possible values:
Currency | name | symbol | iso_code |
---|---|---|---|
HKD | $ HKD | $ | hkd |
CNY | ¥ CNY | ¥ | cny |
TWD | $ TWD | $ | twd |
USD | $ USD | $ | usd |
SGD | $ SGD | $ | sgd |
EUR | € EUR | € | eur |
AUD | $ AUD | $ | aud |
GBP | £ GBP | £ | gbp |
PHP | ₱ PHP | ₱ | php |
MYR | RM MYR | RM | myr |
THB | ฿ THB | ฿ | thb |
AED | د.إ AED | د.إ | aed |
JPY | ¥ JPY | ¥ | jpy |
MMK | K MMK | K | mmk |
BND | $ BND | $ | bnd |
KRW | ₩ KRW | ₩ | krw |
Code Example
<div> Code: {{ shop.current_locale.code }} </div>
<div> Name: {{ shop.current_locale.name }} </div>
{% for currency in shop.supported_currencies %}
<div> Name: {{ currency.name }} </div>
<div> Symbol: {{ currency.symbol }} </div>
<div> ISO code: {{ currency.iso_code }} </div>
<br>
{% endfor %}
Updated about 1 year ago