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

Products.tpl and dialog.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-14-2004, 02:43 PM
 
mizzlewillz mizzlewillz is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 45
 

Default Products.tpl and dialog.tpl

This question may seem obvious, but I can't seem to find where the products.tpl gets the dialog.tpl from. Usually the page I am editing will have something like

{capture name=dialog} at the top. But, for products.tpl (skin1/customer/main) there is no {capture name=dialog} to edit.

Could someone shed some light on this and hint to me where the products.tpl file gets the dialog tpl from so I could edit it instead of editing dialog.tpl itself.


Thanks in advance,

Mike.
Reply With Quote
  #2  
Old 09-14-2004, 02:50 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

what is capture anyway and what does it do?
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #3  
Old 09-14-2004, 03:15 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

products.tpl is called in subcategories.tpl i think

EnriqueHavoc, for info on capture see http://smarty.php.net
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 09-14-2004, 03:44 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Quote:
Originally Posted by EnriqueHavoc
what is capture anyway and what does it do?

Capture is used to collect the output of the template into a variable instead of displaying it. Any content between {capture name="foo"} and {/capture} is collected into the variable specified in the name attribute. The captured content can be used in the template from the special variable $smarty.capture.foo where foo is the value passed in the name attribute. If you do not supply a name attribute, then "default" will be used. All {capture} commands must be paired with {/capture}. You can nest capture commands.
Reply With Quote
  #5  
Old 09-14-2004, 03:50 PM
 
mizzlewillz mizzlewillz is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 45
 

Default

Thanks shan, that is where it can be located.

-Mike
Reply With Quote
  #6  
Old 09-14-2004, 04:19 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

yea... that is where it is at. You will find the closing tag and the call to dialog.tpl near the bottom.
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 07:01 AM.

   

 
X-Cart forums © 2001-2020