X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Available template variables documentation, anyone? (https://forum.x-cart.com/showthread.php?t=10116)

fernando 10-30-2004 03:16 PM

Available template variables documentation, anyone?
 
Hello. I think Smarty is great, and I like very much how X-Cart makes use of it.

But...... I haven't been able to find documentation on template variables which are available for each script.

It would be ** VERY ** useful to have, , with a description and detail of object or array structure... maybe it is around for anyone to see... I just didn't see it anywhere.

Has anyone??

Gijs 10-30-2004 10:47 PM

Hola Fernando,

I was looking for $variables as well and shan gave me a great tip:

Quote:

edit xcart/smarty.php

find

Code:
$smarty->debug_tpl="file:debug_templates.tpl";


change to

Code:
$smarty->debug_tpl="file:debug.tpl";


now you see a better list of vars when u use the debug window


H.I.H.

Gijs

Gijs 10-31-2004 07:21 AM

on top of that check out:
http://smarty.php.net/manual/en/language.variables.php

fernando 10-31-2004 08:11 AM

EXCELLENT!!!!!!!

Thank you, you saved me hours of painful work! :)

Gijs 10-31-2004 08:21 AM

I know, because I lost a lot myself :roll:
Caramba ! :lol:


All times are GMT -8. The time now is 01:44 PM.

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