View Single Post
  #3  
Old 01-21-2010, 07:19 AM
 
Primordial Performance Primordial Performance is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 49
 

Default Re: Anyone have a tpl for all products by category on one page?

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.
__________________
Primordial Performance X-cart 4.2.10
Modules: Advanced Order Management, Checkout_one, Discount Coupons, Extra Fields, FedEx Rates, FedEx Ship, FedEx Subscription, FedEx Track, HTML Editor, Order Tracking, On-Sale, and X-Affiliate,
BCSE Reward Points System,
Upselling Products,
Product Options,
Reply With Quote