Store Functions

The Store and all of their content is accessible using a small family of Smarty functions.

This article offers a brief overview of the functions available in the Aurora front-end for accessing the Store data and how to use them.

Introduction

The store configured in Aurora can be accessed using a simple Smarty Function designed to allow you to get it's data whenever you need it in the Aurora front-end.

Store (get_store)

With this function the data for the store can be retrieved.

Accepted Parameters

ParameterValueDefaultDescriptionRequired
itemStringaurora_storeThe name of the Smart Template Variable into which you would like to load the data being requested.No
store_idIntegerThe Internal ID Aurora uses to identify a Store.One of store_reference or store_id must be provided.
store_referenceStringThe unique Store Reference set against a Store.One of store_**reference or store_**id must be provided.

Data Returned

FieldValuesDescription
[ item ].xArray( )The data returned by this function is saved to the variable named in the item parameter.
item.store_referenceStringThe Store Reference of the Store.
item.idIntegerUnique Internal Aurora ID used to identify a Store.
item.activeIntegerIs the Store considered active by Aurora. Values [ 1 | 0 ]
item.nameStringThe name of the Store.
item.filenameStringThe URL safe name of the Store.
item.address_1StringThe address 1 set for the Store.
item.address_2StringThe address 2 set for the Store.
item.townStringThe town set for the Store’s address.
item.countyStringThe county set for the Store’s address.
item.opening_hoursStringThis field is free-form, but will contain any configured opening times set for the Store.
item.telephoneStringThe telephone number for the Store.
item.latitudeFloatThe location of the Store by latitude.
item.longitudeFloatThe location of the Store by longitude.
item.collect_in_storeIntegerDoes the Store allow collection of orders? Values [ 1 | 0 ]
item.country_idIntegerUnique Internal Aurora ID used to identify a Country.
item.country_nameStringThe name of the country as configured in Aurora.
item.store_type_idIntegerUnique Internal Aurora ID used to identify a Store Type.
item.store_type_nameStringThe name of the store type as configured in Aurora.
item.fieldsArray( )This will be a key/value pairing of Store Additional Fields, by Safe Field Name / Field Value.

Example template code

{get_store store_id="13"}

{$aurora_store.name}


{get_store store_reference="0001S"}

{$aurora_store.name}


{get_store store_reference="0001S" item="store"}

{$store.name}