Global Variables Prestashop

Тема в разделе 'Presta- памятка', создана пользователем savvato, 22 сен 2014.

  1. savvato Administrator

    PHP:

        $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 folder 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_qties (total number of products in the cart)
        
    $cart (shopping cart contents)
        
    $currencies (pulls available currencies)

Поделиться этой страницей