VARIABLE |
DESCRIPTION |
---|---|
LINKS |
|
{$come_from} | URL for the visitor's origin. |
{$link->getPageLink('prices-drop')} | Specific page – Sales |
{$link->getPageLink('contact', true)} | Contact form (true is for SSL support) |
{$cart} | shopping cart contents |
{$cart_qties} | Number of products in the cart. |
{$cookie} | User cookie. |
{$currencies} | The various available currencies. |
{$currency} | Currency object (currently used currency). |
{$customerName} | Client name (if logged in). |
{$id_currency_cookie} | ID of the current currency. |
{$languages} | The various available languages. |
{$logged} | Indicates whether the visitor is logged to a customer account. |
{$page_name} | Page name. |
{$priceDisplay} | Price display method (with or without taxes…). |
{$roundMode} | Rounding method in use. |
{$shop_name} | Shop name. |
{$use_taxes} | Indicates whether taxes are enabled or not. |
Directories |
|
{$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 |
{$css_dir} | URL for the theme's CSS folder. |
{$img_col_dir} | |
{$img_store_dir} | URL for the stores images folder. |
{$img_cat_dir} | URL for the categories images folder. |
{$img_dir} | URL for the theme's images folder. |
{$img_lang_dir} | URL for the languages images folder. |
{$img_manu_dir} | URL for the manufacturers images folder. |
{$img_prod_dir} | URL for the products images folder. |
{$img_ps_dir} | URL for the PrestaShop image folder. |
{$img_ship_dir} | URL for the carriers (shipping) images folder. |
{$img_sup_dir} | URL for the suppliers images folder. |
{$js_dir} | URL for the theme's JavaScript folder. |
{$lang_iso} | ISO code for the current language. |
{$modules_dir} | URL the modules folder. |
{$mail_dir} | URL for the mail templates folder. |
{$pic_dir} | URL for the pictures upload folder. |
{tpl_dir} | URL for the current theme's folder. |
PHP, Symfony, Mysql, jQuery, Ajax, Web development, Payment Gateways, CCavenue, Interview Questions, Web Service Integrations
Showing posts with label PrestaShop. Show all posts
Showing posts with label PrestaShop. Show all posts
Saturday, 13 September 2014
Global smarty variables in Prestashop
Thursday, 11 September 2014
PrestaShop Remove Subcategories List From Category Page
PrestaShop Remove Subcategories List From Category Page
Remove this part of the code from category.tpl
{if isset($subcategories)}<!-- Subcategories --><div id="subcategories"><h3>{l s='Subcategories'}</h3><ul class="inline_list">{foreach from=$subcategories item=subcategory}<li><a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">{if $subcategory.id_image}<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />{else}<img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />{/if}</a><br /><a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a></li>{/foreach}</ul><br class="clear"/></div>{/if}
Subscribe to:
Posts (Atom)