| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Developer's doc?? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Folks,
I'm trying to work on some customization of the smarty templates for our cutover to xcart. Is there a list of smarty variables used available to the template developers? Thanks!! ![]()
__________________
http://www.tdg-i.com - A web Solutions Company http://www.bebekisses.com X-Cart Gold v4.1.4 Gold - Custom AJAX Swatch color preview based on extjs - Custom Layout Managing: http://www.hotsutra.com (Not work safe) Adult toy store. - Currently developing custom mods, to be disclosed once complete and deployed. contact info: jgarcia at tdg-i.com |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Your best bet is to use "webmaster" mode in the admin.
|
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks, but that does nothing for smarty variables.
__________________
http://www.tdg-i.com - A web Solutions Company http://www.bebekisses.com X-Cart Gold v4.1.4 Gold - Custom AJAX Swatch color preview based on extjs - Custom Layout Managing: http://www.hotsutra.com (Not work safe) Adult toy store. - Currently developing custom mods, to be disclosed once complete and deployed. contact info: jgarcia at tdg-i.com |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() added
Code:
to the bottom of init.php and got a huge burst of information. time to parse. [code] [SCRIPT_NAME] string = '/store/product.php' [ImagesDir] string = '/store/skin1/images' [SkinDir] string = '/store/skin1' [template_dir] string = '/var/www/html/store/skin1' [skin_config] string = 'skin1.conf' [http_location] string = 'http://192.168.1.18/store' [https_location] string = 'https://192.168.1.18/store' [xcart_web_dir] string = '/store' [current_location] string = 'http://192.168.1.18/store' [php_url] = array(2) ( [url] string = 'http://192.168.1.18/store/product.php' [query_string] string = 'productid=1&cat=3&page=1&DEBUG=true' ) [var_dirs_web] = array(1) ( [cache] string = 'http://192.168.1.18/store/var/cache' ) [catalogs] = array(4) ( [admin] string = 'http://192.168.1.18/store/admin' [customer] string = 'http://192.168.1.18/store' [provider] string = 'http://192.168.1.18/store/provider' [partner] string = 'http://192.168.1.18/store/partner' ) [catalogs_secure] = array(4) ( [admin] string = 'https://192.168.1.18/store/admin' [customer] string = 'https://192.168.1.18/store' [provider] string = 'https://192.168.1.18/store/provider' [partner] string = 'https://192.168.1.18/store/partner' ) [files_location] string = '/var/www/html/store/files' [XCARTSESSNAME] string = 'xid' [XCARTSESSID] string = '5c891781b11f0fe62bacf4e6239ef4dd' [number_format_dec] string = '.' [number_format_th] string = '' [number_format_point] int = '2' [zero] string = '0.00' [card_types] = array(12) ( [0] = array(3) ( [code] string = 'VISA' [type] string = 'Visa' [cvv2] string = '1' ) [1] = array(3) ( [code] string = 'MC' [type] string = 'MasterCard' [cvv2] string = '1' ) [2] = array(3) ( [code] string = 'AMEX' [type] string = 'American Express' [cvv2] string = '1' ) [3] = array(3) ( [code] string = 'DICL' [type] string = 'Diners Club' [cvv2] string = '' ) [4] = array(3) ( [code] string = 'JCB' [type] string = 'JCB' [cvv2] string = '' ) [5] = array(3) ( [code] string = 'CARTE' [type] string = 'Carte Blanche' [cvv2] string = '' ) [6] = array(3) ( [code] string = 'ABC' [type] string = 'Australian BankCard' [cvv2] string = '' ) [7] = array(3) ( [code] string = 'DINO' [type] string = 'Discover/Novus' [cvv2] string = '' ) [8] = array(3) ( [code] string = 'SW' [type] string = 'Switch' [cvv2] string = '' ) [9] = array(3) ( [code] string = 'SO' [type] string = 'Solo' [cvv2] string = '' ) [10] = array(3) ( [code] string = 'ERT' [type] string = 'enRoute' [cvv2] string = '' ) [11] = array(3) ( Code:
Thanks all.
__________________
http://www.tdg-i.com - A web Solutions Company http://www.bebekisses.com X-Cart Gold v4.1.4 Gold - Custom AJAX Swatch color preview based on extjs - Custom Layout Managing: http://www.hotsutra.com (Not work safe) Adult toy store. - Currently developing custom mods, to be disclosed once complete and deployed. contact info: jgarcia at tdg-i.com |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Sorry I misunderstood your question.
Keep in mind that not all variables are global so you'll want to check a variable before using it globally. |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
Thanks! I just added a global variable to init because there are a million includes w/ this app, and being that there is little to no developer's documentation, I chose the path of least resistance. ![]()
__________________
http://www.tdg-i.com - A web Solutions Company http://www.bebekisses.com X-Cart Gold v4.1.4 Gold - Custom AJAX Swatch color preview based on extjs - Custom Layout Managing: http://www.hotsutra.com (Not work safe) Adult toy store. - Currently developing custom mods, to be disclosed once complete and deployed. contact info: jgarcia at tdg-i.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|