Skip to content

Instantly share code, notes, and snippets.

@caovillanueva
Created March 29, 2018 21:28
Show Gist options
  • Save caovillanueva/b1666de60d9911431d76dbc4613f1bf3 to your computer and use it in GitHub Desktop.
Save caovillanueva/b1666de60d9911431d76dbc4613f1bf3 to your computer and use it in GitHub Desktop.
[Global variables PS1.6] Display all global #PS16
$base_dir (root folder of your shop)
$base_dir_ssl (root folder of your shop using HTTPS protocol)
$content_dir (root folder of your shop depending on the SSL settings)
$img_ps_dir (root folder containing images “/img/”)
$img_dir (images folder in your current theme directory)
$css_dir (css folder inside the current theme folder)
$js_dir (JavaScript inside the theme folder)
$tpl_dir (theme root folder)
$modules_dir (modules root folder)
$mail_dir (mail templates root folder)
$lang_iso (current language ISO code)
$come_from (previous page address [absolute])
$shop_name (your specified shop name)
$cart (shopping cart contents)
$currencies (pulls available currencies)
$id_currency_cookie (selected currency id [cookie dependent])
$currency (active currency)
$cookie (active cookie)
$languages (grabs available languages)
$logged (checks whether users is logged in)
$page_name (current page’s name)
$customerName (customer name [session dependent])
$priceDisplay (current price display settings [currency dependent])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment