| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Where are all the PHP variables and their values stored? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm a newbee to Smarty and I've spent half a day trying to figure it out but still can't. This is the question that disturbs me the most: Where are all the PHP variables and their values stored?
For example, if I want to remove 'default' sorting feature for products sorting, I know I should find an array called 'sort_fields' and remove 'default' from that array, I just don't know where to find it. Would somebody please help me with this? Also I don't know where to find all the variables. Like I know that for the telephone numbers the variables are '$config.Company.company_phone' and '$config.Company.company_phone_2', just don't know how to insert the company's email address?? I found it by accident that it should be '$config.Company.site_administrator', but I really want to know a proper way to find it. In which file are these variables stored? Thanks very much!!
__________________
X-Cart 4.1 |
|||||||
#2
|
|||||||
|
|||||||
![]() Hi Libai, I can sense your frustration, but you have now asked this question in three different threads. I have removed the original post on this topic. Per the forum guidelines, cross posting is not permitted. You have to remember that this forum is run by the users of X-Cart, so you may need to wait a few days to get a response. If you are not getting a response to your questions here in the forum, your best bet is to use some support points and post the question in your help desk area.
The first thing to do is search the forum thoroughly. You'll find that the sort fields are contained in include/search.php. You can remove the default by commenting out or removing this bit of code: "orderby" => func_get_langvar_by_name("lbl_default") As to the config variables, you shouldn't need to edit those manually as you enter them in your Company Information section in General Settings. Hope this points you in the right direction!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Can I assume that you know about the debugging console? This thread helped me!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||
|
|||||||
![]() im assuming you want config variables rather than php variables (php variables have a scope in which you can use them) when reading your post
here are all the config variables (the variables come from the admin and i think the provider section as well im not sure) for 4.1.6 (4.x should work for the most part as well) Code:
|
|||||||
#5
|
|||||||
|
|||||||
![]() Code:
those with 3 values are listed by: name - default value - category those with 2 values are listed by: name - category in order to reference them in smarty you would type (make sure to match the caps): {$config.category.name} ie: if you wanted the company name you would type {$config.Company.company_name} you can find all this info in your sql database under xcart_config or just run "SELECT name , value , category FROM xcart_config WHERE type != 'separator' ORDER BY `xcart_config` . `name` ASC LIMIT 0, 500 ; " and export to a pdf for an organized table view |
|||||||
#6
|
|||||||
|
|||||||
![]() Sorry I had asked similar questions on more than one post, however each time I asked I added some new questions though
![]()
__________________
X-Cart 4.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|