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)
-   -   Where is smarty called from? (https://forum.x-cart.com/showthread.php?t=35851)

anela2003 12-01-2007 08:31 PM

Where is smarty called from?
 
Well, I went to the smarty forum and I think it'll be a couple more years before I dare enter there again (not to mention that their guide requires a Ph.D.).

My questions is, where on Earth do all those $ files come from? I know that they're in the php files, but where? Is there a trend? Is there any way of seeing something like $something and saying, "Aha, I know where the HTML to this thing is."

I found this $ variable in my subcategory.tpl that I believe will help me change the number of subcategories per page, but I have looked through so many php files and have not found anything defining this $ variable. The variable that I'm looking for is $total_pages.

Anyone dealt with this recently?

Thanks again.

inebriate 12-02-2007 09:51 PM

Re: Where is smarty called from?
 
search the php files for

smarty->assign("thesmartyvariablenamewithoutthedollarsign "

for $total_pages, it is in include\navigation.php

anela2003 12-02-2007 10:01 PM

Re: Where is smarty called from?
 
Thank you so much. It helped. :) It's good to receive an answer once in a blue moon.


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

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