X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Products.tpl and dialog.tpl (https://forum.x-cart.com/showthread.php?t=9352)

mizzlewillz 09-14-2004 02:43 PM

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.

EnriqueHavoc 09-14-2004 02:50 PM

what is capture anyway and what does it do?

shan 09-14-2004 03:15 PM

products.tpl is called in subcategories.tpl i think

EnriqueHavoc, for info on capture see http://smarty.php.net

TelaFirma 09-14-2004 03:44 PM

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.

mizzlewillz 09-14-2004 03:50 PM

Thanks shan, that is where it can be located.

-Mike

TelaFirma 09-14-2004 04:19 PM

yea... that is where it is at. You will find the closing tag and the call to dialog.tpl near the bottom.


All times are GMT -8. The time now is 10:15 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.