Constants and variables for Prestashop 1.7 [PHP, Smarty, Javascript, Twig] Constants and variables for Prestashop 1.7 [PHP

Constants and variables for Prestashop 1.7 [PHP, Smarty, Javascript, Twig]

December 8, 2021

No Comments

2726

Constants and variables for Prestashop 1.7 in the different PHP, Smarty Javascript and Twig constants & variables at your disposal and present them with examples and contexts.

Awesome. you have always wondered why the Prestashop 1.7 documentation is a MESS. Simply as that, a total mess.

NameLanguageExampleTypeFront, back?
\Context::getContext()PHPObject of class ContextObjectfront + back
__PS_BASE_URI__PHP/prefix/relative url 
_DB_PREFIX_PHPYour SQL table prefix  
_MAIL_DIR_PHP/prefix/mails/relative urlfront + back
_MODULE_DIR_PHP/prefix/modules/relative urlfront + back
_PS_ADMIN_CONTROLLER_DIR_PHP/var/www/html/prestashop/controllers/admin/ front + back
_PS_ADMIN_DIR_PHP/var/www/html/prestashop/admin-devfull pathback
_PS_ADMIN_IMG_PHP/prefix/img/admin/relative urlfront + back
_PS_ALL_THEMES_DIR_PHP/var/www/html/prestashop/themes/ front + back
_PS_BO_ALL_THEMES_DIR_PHP/var/www/html/prestashop/Backoffice/themes/ front + back
_PS_CACHE_CA_CERT_FILE_PHP/var/www/html/prestashop/app/cache/dev/cacert.pem front + back
_PS_CACHE_DIR_PHP/var/www/html/prestashop/app/cache/dev/ front + back
_PS_CACHEFS_DIRECTORY_PHP/var/www/html/prestashop/cache/cachefs/ front + back
_PS_CAT_IMG_DIR_PHP/var/www/html/prestashop/img/c/ front + back
_PS_CLASS_DIR_PHP/var/www/html/prestashop/classes/ front + back
_PS_COL_IMG_DIR_PHP/var/www/html/prestashop/img/co/ front + back
_PS_CONFIG_DIR_PHP/var/www/html/prestashop/config/ front + back
_PS_CONTROLLER_DIR_PHP/var/www/html/prestashop/controllers/ front + back
_PS_CORE_DIR_PHP/var/www/html/prestashopfull pathfront + back
_PS_CORE_IMG_DIR_PHP/var/www/html/prestashop/img/ front + back
_PS_CSS_DIR_PHP/prefix/css/relative urlfront + back
_PS_CUSTOM_CONFIG_FILE_PHP/var/www/html/prestashop/config/settings_custom.inc.php front + back
_PS_DEBUG_PROFILING_PHPtrueboolfront + back
_PS_DEBUG_SQL_PHPtrueboolfront + back
_PS_DEFAULT_THEME_NAME_PHPclassic front + back
_PS_DOWNLOAD_DIR_PHP/var/www/html/prestashop/download/ front + back
_PS_EMPLOYEE_IMG_DIR_PHP/var/www/html/prestashop/img/e/ front + back
_PS_FRONT_CONTROLLER_DIR_PHP/var/www/html/prestashop/controllers/front/ front + back
_PS_GENDERS_DIR_PHP/var/www/html/prestashop/img/genders/ front + back
_PS_GEOIP_CITY_FILE_PHPGeoLite2-City.mmdb front + back
_PS_GEOIP_DIR_PHP/var/www/html/prestashop/app/Resources/geoip/ front + back
_PS_IMG_PHP/prefix/img/relative urlfront + back
_PS_IMG_DIR_PHP/var/www/html/prestashop/img/ front + back
_PS_JQUERY_VERSION_PHP1.11.0 front + back
_PS_JS_DIR_PHP/prefix/js/relative urlfront + back
_PS_LANG_IMG_DIR_PHP/var/www/html/prestashop/img/l/ front + back
_PS_MAIL_DIR_PHP/var/www/html/prestashop/mails/ front + back
_PS_MANU_IMG_DIR_PHP/var/www/html/prestashop/img/m/ front + back
_PS_MODE_DEMO_PHPtrueboolfront + back
_PS_MODE_DEV_PHPtrueboolfront + back
_PS_MODULE_DIR_PHP/var/www/html/prestashop/modules/ front + back
_PS_ORDER_STATE_IMG_DIR_PHP/var/www/html/prestashop/img/os/ front + back
_PS_OVERRIDE_DIR_PHP/var/www/html/prestashop/override/ front + back
_PS_PARENT_THEME_DIR_PHP/var/www/html/prestashop/themes/classic/full pathfront + back
_PS_PARENT_THEME_URI_PHP/prefix/themes/classic/relative urlfront + back
_PS_PDF_DIR_PHP/var/www/html/prestashop/pdf/ front + back
_PS_PEAR_XML_PARSER_PATH_PHP/var/www/html/prestashop/tools/pear_xml_parser/ front + back
_PS_PROD_IMG_PHP/prefix/img/p/relative urlfront + back
_PS_PROD_IMG_DIR_PHP/var/www/html/prestashop/img/p/ front + back
_PS_ROOT_DIR_PHP/var/www/html/prestashopfull pathfront + back
_PS_SHIP_IMG_DIR_PHP/var/www/html/prestashop/img/s/ front + back
_PS_STORE_IMG_DIR_PHP/var/www/html/prestashop/img/st/ front + back
_PS_SUPP_IMG_DIR_PHP/var/www/html/prestashop/img/su/ front + back
_PS_SWIFT_DIR_PHP/var/www/html/prestashop/tools/swift/ front + back
_PS_TAASC_PATH_PHP/var/www/html/prestashop/tools/taasc/ front + back
_PS_TCPDF_PATH_PHP/var/www/html/prestashop/tools/tcpdf/ front + back
_PS_THEME_DIR_PHP/var/www/html/prestashop/themes/my_theme/full pathfront + back
_PS_THEME_URI_PHP   
_PS_THEME_URI_PHP/prefix/themes/my_theme/relative urlfront + back
_PS_TMP_IMG_PHP/prefix/img/tmp/relative urlfront + back
_PS_TMP_IMG_DIR_PHP/var/www/html/prestashop/img/tmp/ front + back
_PS_TOOL_DIR_PHP/var/www/html/prestashop/tools/ front + back
_PS_TRANSLATIONS_DIR_PHP/var/www/html/prestashop/translations/ front + back
_PS_UPLOAD_DIR_PHP/var/www/html/prestashop/upload/ front + back
_PS_VENDOR_DIR_PHP/var/www/html/prestashop/vendor/ front + back
_PS_VERSION_Javascript‘1.7.2.4’ back
_THEME_CAT_DIR_PHP/prefix/img/c/relative urlfront + back
_THEME_COL_DIR_PHP/prefix/img/co/relative urlfront + back
_THEME_CSS_DIR_PHP/prefix/themes/my_theme/assets/css/relative urlfront + back
_THEME_DIR_PHP/prefix/themes/my_theme/relative urlfront + back
_THEME_GENDERS_DIR_PHP/prefix/img/genders/relative urlfront + back
_THEME_IMG_DIR_PHP/prefix/themes/my_theme/assets/img/relative urlfront + back
_THEME_JS_DIR_PHP/prefix/themes/my_theme/assets/js/relative urlfront + back
_THEME_LANG_DIR_PHP/prefix/img/l/relative urlfront + back
_THEME_MANU_DIR_PHP/prefix/img/m/relative urlfront + back
_THEME_PROD_DIR_PHP/prefix/img/p/relative urlfront + back
_THEME_PROD_PIC_DIR_PHP/prefix/upload/relative urlfront + back
_THEME_SHIP_DIR_PHP/prefix/img/s/relative urlfront + back
_THEME_STORE_DIR_PHP/prefix/img/st/relative urlfront + back
_THEME_SUP_DIR_PHP/prefix/img/su/relative urlfront + back
_THEMES_DIR_PHP/prefix/themes/relative urlfront + back
appTwigobject of class AppVariable  
baseAdminDirJavascript/prefix/admin-dev/ back
baseDirJavascript/prefix/ back
basename(PS_ADMIN_DIR)PHPadmin-devfolder nameback
currencyJavascriptname:’euro’, iso_code:’EUR’, format:’’, sign:’€’ front
default_currencyTwig$  
help_class_nameJavascript‘AdminDashboard’ back
prestashop.cartJavascriptproducts: [], totals:[], subtotal:[], products_count, summary_string front
prestashop.configurationJavascript  front
prestashop.currencyJavascriptname:’euro’, iso_code:’EUR’, iso_code_num:’978″, sign:’€’ front
prestashop.customerJavascriptlastname:'AAA'firstname:'bbb'email:’aaa@bbb.com’, … front
prestashop.languageJavascriptname: ‘Français (French)’, iso_code'fr'locale: ‘fr-FR’, language_code'fr'is_rtl'0',… front
prestashop.pageJavascripttitle:''canonicalnullmeta{}page_name'index'body_classes, … front
prestashop.shopJavascriptname: '', email: '', registration_number: false, long: false, lat: false front
prestashop.urlsJavascriptbase_url:''current_url:''shop_domain_url:''img_ps_url:''img_cat_url:’’, … front
root_urlTwig/prefix/  
tokenJavascripttoken used in current URL &token={token} back
token_admin_customer_threadsJavascript??? back
token_admin_customersJavascript??? back
token_admin_ordersJavascript??? back
{$add_permission}Smarty   
{$addons_forgot_password_link}Smarty   
{$addons_register_link}Smarty   
{$base_url}Smartyhttps://myshop.com/prefix/full urlback
{$base_url}Smarty   
{$baseAdminUrl}Smarty/prefix/admin-dev/relative urlback
{$bo_color}Smarty   
{$bo_query}Smarty   
{$bo_width}Smarty   
{$bootstrap}Smarty   
{$breadcrumbs2}Smarty   
{$brightness}Smarty   
{$can_import}Smarty   
{$check_openssl}Smarty   
{$check_url_fopen}Smarty   
{$class_name}SmartyAdminCustomerController back
{$collapse_menu}Smarty   
{$context_mode}Smarty   
{$controller_name}SmartyAdminCustomer back
{$country_iso_code}SmartyFR back
{$current_parent_id}Smarty   
{$current_shop_name}Smarty‘My Shop’  
{$current_tab_level}Smarty   
{$currentIndex}Smartyindex.php?controller=AdminCustomer  
{$current}Smartyindex.php?controller=AdminCustomer back
{$current}Smartyindex.php?controller=AdminCustomer  
{$debug_mode}Smarty   
{$default_language}Smarty   
{$default_tab_link}Smarty   
{$display_addons_connection}Smarty   
{$displayBackOfficeHeader}Smarty   
{$displayBackOfficeTop}Smarty   
{$employee}SmartyObject of class EmployeeObjectback
{$full_cldr_language_code}Smartyfr-FR back
{$full_language_code}Smartyfr back
{$GA_ACCOUNT_ID}Smarty   
{$help_box}Smarty   
{$help_link}Smarty   
{$host_mode}Smarty   
{$img_base_path}Smarty/admin-dev/ back
{$img_dir}Smarty/prefix/img/ back
{$install_dir_exists}Smarty   
{$is_multishop}Smarty   
{$iso_user}Smartyfr back
{$iso}Smartyfr back
{$lang_iso}Smartyfr back
{$link}SmartyObject of class LinkObjectback
{$lite_display}Smarty   
{$logged_on_addons}Smarty   
{$login_link}Smarty   
{$maintenance_mode}Smarty   
{$multi_shop}Smarty   
{$multishop_context}Smarty   
{$navigationPipe}Smarty   
{$no_customer_message_tip}Smarty   
{$no_customer_tip}Smarty   
{$no_order_tip}Smarty   
{$page_header_toolbar_btn}Smarty   
{$page_header_toolbar_title}Smarty   
{$pic_dir}Smarty   
{$quick_access_current_link_icon}Smarty   
{$quick_access_current_link_name}Smarty   
{$quick_access}Smarty   
{$round_mode}Smarty   
{$search_type}Smarty   
{$shop_group}SmartyObject of class ShopGroupObjectback
{$shop_list}Smarty   
{$shop_name}Smarty   
{$shop}SmartyObject of class ShopObjectback
{$show_new_customers}Smarty   
{$show_new_messages}Smarty   
{$show_new_orders}Smarty   
{$show_page_header_toolbar}Smarty   
{$stock_management}Smarty   
{$submit_form_ajax}Smarty   
{$table}Smartycustomers back
{$tabs}Smarty   
{$title}Smarty   
{$token}SmartyToken used in the current URL back
{$toolbar_btn}Smarty   
{$url_post}Smartyindex.php?controller=AdminCustomer&token={token} back
{$urls.base_url}Smartyhttps://myshop.com/prefix/full urlfront
{$urls.css_url}Smartyhttps://myshop.com/prefix/themes/my_theme/assets/css/full urlfront
{$urls.current_url}Smartyhttps://myshop.com/prefix/v2-manager?show-old=1full urlfront
{$urls.img_cat_url}Smartyhttps://myshop.com/prefix/img/c/full urlfront
{$urls.img_col_url}Smartyhttps://myshop.com/prefix/img/co/full urlfront
{$urls.img_lang_url}Smartyhttps://myshop.com/prefix/img/l/full urlfront
{$urls.img_manu_url}Smartyhttps://myshop.com/prefix/img/m/full urlfront
{$urls.img_prod_url}Smartyhttps://myshop.com/prefix/img/p/full urlfront
{$urls.img_ps_url}Smartyhttps://myshop.com/prefix/img/full urlfront
{$urls.img_ship_url}Smartyhttps://myshop.com/prefix/img/s/full urlfront
{$urls.img_store_url}Smartyhttps://myshop.com/prefix/img/st/full urlfront
{$urls.img_sup_url}Smartyhttps://myshop.com/prefix/img/su/full urlfront
{$urls.img_url}Smartyhttps://myshop.com/prefix/themes/my_theme/assets/img/full urlfront
{$urls.js_url}Smartyhttps://myshop.com/prefix/themes/my_theme/assets/js/full urlfront
{$urls.pages.addresses}Smartyhttps://myshop.com/prefix/adressesfull urlfront
{$urls.pages.address}Smartyhttps://myshop.com/prefix/adressefull urlfront
{$urls.pages.authentication}Smartyhttps://myshop.com/prefix/connexionfull urlfront
{$urls.pages.cart}Smartyhttps://myshop.com/prefix/panierfull urlfront
{$urls.pages.category}Smartyhttps://myshop.com/prefix/index.php?controller=categoryfull urlfront
{$urls.pages.cms}Smartyhttps://myshop.com/prefix/index.php?controller=cmsfull urlfront
{$urls.pages.contact}Smartyhttps://myshop.com/prefix/nous-contacterfull urlfront
{$urls.pages.discount}Smartyhttps://myshop.com/prefix/reductionfull urlfront
{$urls.pages.guest_tracking}Smartyhttps://myshop.com/prefix/suivi-commande-invitefull urlfront
{$urls.pages.history}Smartyhttps://myshop.com/prefix/historique-commandesfull urlfront
{$urls.pages.identity}Smartyhttps://myshop.com/prefix/identitefull urlfront
{$urls.pages.index}Smartyhttps://myshop.com/prefix/full urlfront
{$urls.pages.my_account}Smartyhttps://myshop.com/prefix/mon-comptefull urlfront
{$urls.pages.order_confirmation}Smartyhttps://myshop.com/prefix/confirmation-commandefull urlfront
{$urls.pages.order_detail}Smartyhttps://myshop.com/prefix/index.php?controller=order-detailfull urlfront
{$urls.pages.order_follow}Smartyhttps://myshop.com/prefix/suivi-commandefull urlfront
{$urls.pages.order_login}Smartyhttps://myshop.com/prefix/commande?login=1full urlfront
{$urls.pages.order_return}Smartyhttps://myshop.com/prefix/index.php?controller=order-returnfull urlfront
{$urls.pages.order_slip}Smartyhttps://myshop.com/prefix/avoirsfull urlfront
{$urls.pages.order}Smartyhttps://myshop.com/prefix/commandefull urlfront
{$urls.pages.pagenotfound}Smartyhttps://myshop.com/prefix/page-introuvablefull urlfront
{$urls.pages.password}Smartyhttps://myshop.com/prefix/recuperation-mot-de-passefull urlfront
{$urls.pages.pdf_invoice}Smartyhttps://myshop.com/prefix/index.php?controller=pdf-invoicefull urlfront
{$urls.pages.pdf_order_return}Smartyhttps://myshop.com/prefix/index.php?controller=pdf-order-returnfull urlfront
{$urls.pages.pdf_order_slip}Smartyhttps://myshop.com/prefix/index.php?controller=pdf-order-slipfull urlfront
{$urls.pages.prices_drop}Smartyhttps://myshop.com/prefix/promotionsfull urlfront
{$urls.pages.product}Smartyhttps://myshop.com/prefix/index.php?controller=productfull urlfront
{$urls.pages.register}Smartyhttps://myshop.com/prefix/connexion?create_account=1full urlfront
{$urls.pages.search}Smartyhttps://myshop.com/prefix/recherchefull urlfront
{$urls.pages.sitemap}Smartyhttps://myshop.com/prefix/Sitemapfull urlfront
{$urls.pages.stores}Smartyhttps://myshop.com/prefix/magasinsfull urlfront
{$urls.pages.supplier}Smartyhttps://myshop.com/prefix/fournisseurfull urlfront
{$urls.pic_url}Smartyhttps://myshop.com/prefix/upload/full urlfront
{$urls.shop_domain_url}Smartyhttps://myshop.com/prefixfull urlfront
{$urls}Smarty   
{$version}Smarty1.7.2.4 back

No Comments

Leave A Reply