Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5489

Prestashop Product Labels

$
0
0

Prestashop Product Labels module will help you to display label on your products for various pages as per your requirement which will help you to increase your sales.

Features:

  • It allows you to add labels.
  • Set label for particular product.
  • Set the configuration of labels for various pages.
  • Display labels on various pages i.e product,category,supplier,search,manufacturer and products-comparison page.

Installation:

Go to back office ->module  , upload the module zip file , then search “Add product labels” in module search box then go to module and click on install.

Flow:

After successful installation you can see a tab named Product Label at the top of your admin page.

tab

Go to Product Label tab and click on Label menu.Here you can see the listing of your added labels and also a “Add New” button for adding a new label.

label-page

Then again go to the Product Label tab and click on Configuration menu.Here you can set the configuration for the labels on various pages.

dropdown-listSelect any page where you want to display the label from drop down button displayed after “Add label for page”.

Check the “Enable” radio button, now you can see a box. You will see the default values in the text-boxes.Enter the values for label height,width,position and margin.

enter-valuesNow click on “view demo”, here you will see a pop up demo image according to the values you entered.

demo-pop-up

Now click on save button to save the values you entered for that page.

saveYou can also update the configuration values for the page by following the same above mentioned process.

Now for adding the label for particular product go to the “Catalog” tag and click on “Products” menu.

Edit or add any product,here you can see a new tab Product Labels .

product-label

Click on Product Label tab,here you can add a label for your product.

Select Enable from drop down  displayed after “Product Label”,new you can see a box displaying the labels you have added before.

Select any label and click on save button.

add-label-catalog For displaying the labels on front end you have to add some code on following tpl files:

  • On “Yourprestashopfolder/themes/default/product.tpl”:

Add  {hook h=’Displayproductlabelhook’} after line no. 195.

  • On “Yourprestashopfolder/themes/default/product-list.tpl”:

Add {hook h=”actionproductlabelhook” id_pro={$product.id_product}} after line no. 43.

  • On “Yourprestashopfolder/themes/default/products-comparison.tpl”:

Add {hook h=”actionproductlabelhook” id_pro={$product->id}} after line no. 43.

 

Now you can see the selected label on your product in the page for which you have added the configuration before.For example,if you have added the label for product and category page the product will get displayed as:

front-product

front-category

So by following the above mentioned process you can add label to any product for different pages.


Viewing all articles
Browse latest Browse all 5489

Trending Articles