Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Add field to products query so it's available to products.tpl?

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 04-12-2008, 05:08 PM
 
PrairielandGolfCars PrairielandGolfCars is offline
 

Newbie
  
Join Date: Mar 2008
Posts: 4
 

Default Add field to products query so it's available to products.tpl?

(Not sure if this is a template question or MySQL question, so mods, please move to where this best fits.)

I have the Brand Year Model modification and I want to add the additonal fields $start_year and $end_year fields from the xcart_products table to the product display in product.tpl and product_t.tpl.

It's not working by just calling $start_date....or $product.start_year so I'm guessting those fields are not available to smarty because they're not included in the query that's built prior to display of the page at product.php?

Can anyone point me to the place where I need to add those two fields so I can call them in the smarty template?

Thank you!
__________________
4.1.9 GOLD
Reply With Quote
  #2  
Old 04-13-2008, 03:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Add field to products query so it's available to products.tpl?

It actually has to do with a Third Party Mod, so I'm moving it to that forum
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-13-2008, 10:00 AM
 
PrairielandGolfCars PrairielandGolfCars is offline
 

Newbie
  
Join Date: Mar 2008
Posts: 4
 

Default Re: Add field to products query so it's available to products.tpl?

I understand, but there's not much hope of the author answering the question here , and, it's just a question about adding an "extra field" (no matter where it came from or how it got there) from the table to the query so it's available.

Maybe I could rephrase my question as, "How do I get xcart_product "add_date" into the query so I can pull it into the product display?"
__________________
4.1.9 GOLD
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:36 AM.

   

 
X-Cart forums © 2001-2020