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

{$products[product].product}

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-23-2005, 02:36 AM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default {$products[product].product}

I'm looking to modify the category pages and editing /skin1/customer/main/products.tpl.

Where are the values for {$products[product].product} taken from? Is it from /products.php? Is it from /home.php?
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #2  
Old 12-23-2005, 03:20 AM
 
balinor balinor is offline
 

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

Default

Not sure what you mean....what are you trying to achieve?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-26-2005, 08:51 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

I would like to retrieve one row from the table xcart_images for each product displayed on the category pages. The template of course, for the category pages, is products.tpl.

I am trying to trace which of the php scripts is doing the queries and passing the retrieved values to products.tpl but only got as far as products.php and home.php. Once I found which php file is doing the queries, I could insert the required query there, too.

Liked your website, the one featured in your forum_profile.
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #4  
Old 12-26-2005, 08:58 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I believe the query is in func.php which is called by search.php which is called by products.php
Reply With Quote
  #5  
Old 12-27-2005, 12:56 AM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

Thank you Jon. Found it.


Quote:
Originally Posted by Jon
I believe the query is in func.php which is called by search.php which is called by products.php
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:40 PM.

   

 
X-Cart forums © 2001-2020