![]() |
Developer's doc??
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!! :wink: |
Re: Developer's doc??
Your best bet is to use "webmaster" mode in the admin.
|
Re: Developer's doc??
Thanks, but that does nothing for smarty variables.
|
Re: Developer's doc??
added
Code:
$x = $smarty->get_template_vars(); 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:
string = 'UKE' Thanks all. |
Re: Developer's doc??
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. |
Re: Developer's doc??
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. ;) |
All times are GMT -8. The time now is 06:55 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.