Prestashop Shortcodes

Shortcode module for prestashop allows to automatically build various contents on any part of your website. You can put shortcodes to your theme files and also to contents in your shop back office. This addon will automatically replace these short codes with automatically generated contents.

Shop version 1.7.x, 1.6.x, 1.5.x
Available translations
Module version 1.2.1
Works in PrestaShop cloud ? Yes

More info: Prestashop Shortcodes

With shortcodes module you can automatically generate some sets of products, pictures in various positions on your theme with possibility to use shortcodes inside contents defined in back office (like descriptions / contents on cms pages, category pages, product pages). Below you can find a list of currently available shortcodes.

 

Where you can use these shortcodes?

Really big advantage of this module is fact that you can use these shortcodes everywhere. You can use them in any part of your shop .tpl file and also in your shop back office. You can put these codes into your product description, short description, to contents of your cms pages, category descriptions etc. 

 

List of available codes in ShortCodes module for PrestaShop

Shortcode Explanation
[product:9] This shortcode will display one instance of product with defined ID, in this case product ID numer is 9
[products:1,2,3,4] This shortcode will display list of products with ID 1,2,3,4 - you can define as much products as you want
[category:7:16:price:desc] This shortcode will display list of products from category with ID 7, module will get 16 products from this category. Sorting method is set to sort products by PRICE and order way i set to descending. 
Available sorting methods: random, price, name, id_product, manufacturer, position, date_add, date_upd
Available sorting ways: descending [9-0], ascending [0-9]
[manufacturer:2:8:price:desc]

This shortcode will display list od products from selected manufacturer, in this case manufacturer with ID 2. Module will get 8 products from shop database. Sorting method is set to sort products by PRICE and order way i set to descending.  Available sorting methods: random, price, name, id_product, manufacturer, position, date_add, date_upd. Available sorting ways: descending [9-0], ascending [0-9]

[manufacturer:1:name]

This shortcode will be replaced with manufacturer's name (where ID of manufacturer is 1)

[manufacturer:1:description] This shortcode will be replaced with manufacturer's description
[manufacturer:1:short_description] This shortcode will be replaced with manufacturer's short description
[manufacturer:1:picture] This shortcode will be replaced with manufacturer's picture
[manufacturer:1:image_link] This shortcode will be replaced with manufacturer's url to image 
[manufacturer:1:link] This shortcode will be replaced with manufacturer's link (url to manufacturer page)
[supplier:1:4:price:desc] This shortcode will display list od products from selected supplier, in this case supplier with ID 1. Module will get 4 products from shop database. Sorting method is set to sort products by PRICE and order way i set to descending.  Available sorting methods: random, price, name, id_product, manufacturer, position, date_add, date_upd. Available sorting ways: descending [9-0], ascending [0-9]
[productgallery:9:16:home_default]  This shortcode displays list of pictures of selected product. In this case product with ID 9. It will show 16 pictures of products and the size of displayed picture will be imagetype 'home_default'
Special shortcodes
[hpp:9] This shortcode is a shortcode for module "homepage products pro" - it will display list of products defined in this module with ID 9
[rpp:6] This shortcode is a shortcode for module "related products pro" - it will display list of products defined in this module with ID 6

Associated videos: Prestashop Shortcodes

No video is associated with this module at the moment

Module reviews: Prestashop Shortcodes

Feature under construction

Frequently asked questions

Feature under construction

Associated blog posts

No blog entries associated with this product

Shortcodes Changelog - informations about updates

1.2.1

- added improvements to random display products from selected suppliers

- added improvements to random display products from selected manufacturers

- due to the changes in the override - module requires reinstallation in prestashop 1.6.x

 

1.2.0

- added new shortcodes to the module related to manufacturer

  1. [manufacturer:1:name] it replaces shortcode with manufacturer name
  2. [manufacturer:1:short_description] - it replaces shortcode with manufacturer short description
  3. [manufacturer:1:description] - it replaces shortcode with manufacturer description
  4. [manufacturer:1:link] - it replaces shortcode with url to manufacturer page
  5. [manufacturer:1:image_link] - it replaces shortcode with url to manufacturer picture
  6. [manufacturer:1:picture] - it replaces shrotcode with image of manufacturer

 

1.1.0

- added improvements to module, now it is ready to work with prestashop 1.7.x releases

 

1.0.0

started project on mypresta addons marketplace