Автор Тема: Глобальные переменные Prestashop  (Прочитано 2386 раз)

22 Сентябрь 2014, 17:06:22
  • Модератор
  • Ветеран
  • *****
  • Сообщений: 33084
  • Репутация: +26762/-0
    • Просмотр профиля
Global  Variables Prestashop
    $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)
    $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])

$category
    $category->name
    $category->description
    $category->id_image
    $category->link_rewrite
    $category->id
    $category->id_parent
    $category->active
    $category->position
    $category->level_depth
    $category->nleft
    $category->nright
    $category->link_rewrite
    $category->meta_title
    $category->meta_keywords
    $category->meta_description
    $category->date_add
    $category->date_upd

$subcategory
    $subcategory.name
    $subcategory.description
    $subcategory.link_rewrite
    $subcategory.id_category

$product
    $product->category
    $product->reduction_to
    $product->reduction_from
    $product.category
    $product.id_category_default
    $product.name
    $product.description
    $product.description_short
    $product.link_rewrite
    $product.id_product_attribute
    $product.id_product
    $product.available_for_order
    $product.price
    $product.price_tax_exc
    $product.reduction_percent
    $productPrice
    $product->on_sale
    $product->specificPrice
    $product->specificPrice.reduction_type
    $product->specificPrice.reduction

$conf
    $conf.PS_SHOP_ADDR1
    $conf.PS_SHOP_ADDR2
    $conf.PS_SHOP_CITY
    $conf.PS_SHOP_CODE
    $conf.PS_SHOP_COUNTRY
    $conf.PS_SHOP_DETAILS
    $conf.PS_SHOP_NAME