List of variables
-
Hi,
I’m building a custom shop (without any commerce plugin) that involves product customization where I calculate prices on the fly based of pricelists which I store in arrays…5 different arrays with arround 30 items/prices in each array.
Now I need these same arrays in different templates and files and would prefer to keep these available in one place so that I can access the same prices from different files and templates, my first plan was to simply store the pricelists arrays inside template parts so that I could simply include the same template part into different places but from what I understand variables will not work like that.
Grateful for any help on how to best store arrays central so that they are available in multiple places
Thanks!
- The topic ‘List of variables’ is closed to new replies.