Jump to content

Echoing store hours in store.tpl


Recommended Posts

Any idea how can we print the store hours (as saved in the back end) in store.tpl ?

 

I tried {if $store.hours_1}{$store.hours_1}{/if} but this is not working, probably hours_1 is not in the $store variable.

 

Anyone has an idea on this?

 

Thanks.

 

EDIT: Just noticed, $store.hours is giving

a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";}

Edited by Jeremy3 (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...