Quote:
Originally Posted by cflsystems
I don't think that this exist in xcart by default. You need a php script to query the db for each category and products in it and assign these array values to smarty to use in a template. Using {php} inside template may do the job but it is no good with the amount of data you are trying to get and show
|
Thanks...I guess I'll just clean up my {php} and move it to a proper php file in the root directory and use smarty properly for display.
Is anyone aware of a reason to avoid using {php} in .tpls OTHER THAN separation of logic and display? Just trying to understand xcart better and keep code as efficient as possible.
Also - if anyone else is looking for the same functionality, let me know and I'll share the technique once it's all clean.