View Single Post
  #4  
Old 12-16-2011, 12:40 AM
 
jake8804 jake8804 is offline
 

Newbie
  
Join Date: Dec 2011
Posts: 6
 

Default Re: What is the Smarty variable for Provider company name?

I am making some progress on understanding this system of web design . I COULD run an SQL query directly from the template right now and get the info that way but that is undesirable, yes?

The query will be something like:

SELECT customers.company
FROM customers
JOIN products
ON customers.provider = products.provider;

And then the Smarty assign is:

$smarty->assign('company',$product);

How do I put them together?
Also, I have been trying to figure out which .php file to use to assign variables to $product...which one is it? I am more of a database guy than a web designer lol
__________________
X-Cart 4.4.4 on Unix
Add-ons: Power Filter by *********, BCSE Shipping Per Product.
Reply With Quote