Tutorial on weekday based content | Shopify Customisation

Highlighted
New Member
2 0 0

After posting a tutorial on changing the product page of the Narrative theme, I decided to publish another article. 

 

This time it is about showing content based on the day of the week. This could be beneficial for physical stores that would like to show on a certain day that they're either open or closed.

 

Day based times.jpg

 

Click here to read the tutorial.


If there are any questions, tips or comments you can always contact me.

Have a nice day.

0 Likes
Shopify Expert
9981 84 1492

It's a good start but your script assumes the visitor is on the same timezone as the shop. Also, by adding a new copy of jQuery you could in fact break other code dependencies already loaded for another jQuery instance.

 

I would also consider it quite excessive to include a copy of jQuery just for this - better to stick with plain JS to keep it light.

 

 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes