Jump to content

Shop level variables


radus

Recommended Posts

Hi,

 

for a multi-location shop, I cannot understand variables for each location to mark them with schema.org.

 

Ex. 

 

{if isset($stores)}
{if $store->id AND $store->active}
 
{foreach $store as $stores}

 

             <div itemprop="hasPOS" itemscope itemtype="https://schema.org/LiquorStore">
                      <meta itemprop="name" content="{$store.name|escape:'html':'UTF-8'}" />
 
                 <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
                      <meta itemprop="streetAddress" content="{$store.address1|escape:'html':'UTF-8'}" />
                      <meta itemprop="postOfficeBoxNumber" content="{$store.address2|escape:'html':'UTF-8'}" />
                      <meta itemprop="addressLocality" content="{$store.city|escape:'html':'UTF-8'}" />
                      <meta itemprop="postalCode" content="{$store.postcode}" />
                      <meta itemprop="addressCountry" content="{$store.country|escape:'html':'UTF-8'}" />
                 </div>
             </div>
 
{/foreach}
 
{/if}
{/if}
Edited by radus (see edit history)
Link to comment
Share on other sites

sure, sorry for not making myself understood.

 

Target is to list list on product page Product.TPL, all the physical locations where the product is available. Whenever a new physical location is listed in Preferences / Shop Contacts, those fields to be automatically printed on Product Page .

 

If I use variables from Stores.TPL , it is not working -:(

 

Example : Item 12 in http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.winerepublic.ro%2Fro%2Fvin-alb%2F1697-solo-quinta-cramele-recas-chardonnay-muscat-ottonel-feteasca-regala-viognier-cadarca-5942084501903.html

Edited by radus (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...