See translation

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 9.x, 8.x, 1.7.x, 1.6.x, 1.5.x PrestaShop 8.x & 9.x support Yes :-)
Available translations this module Shortcodes is fully translated into: Slovenčina (sk)this module Shortcodes is fully translated into: Magyar (hu)this module Shortcodes is fully translated into: Čeština (cs)this module Shortcodes is fully translated into: Srpski (rs)this module Shortcodes is fully translated into: Français (fr)this module Shortcodes is fully translated into: 中文 (zh)this module Shortcodes is fully translated into: Русский (ru)this module Shortcodes is fully translated into: Norsk (no)this module Shortcodes is fully translated into: Български (bg)this module Shortcodes is fully translated into: Íslenska (is)this module Shortcodes is fully translated into: Polski (pl)this module Shortcodes is fully translated into: Slovenščina (si)this module Shortcodes is fully translated into: हिन्दी (hi)this module Shortcodes is fully translated into: Lietuvių (lt)this module Shortcodes is fully translated into: Svenska (sv)this module Shortcodes is fully translated into: Українська (ua)this module Shortcodes is fully translated into: 日本語 (ja)this module Shortcodes is fully translated into: Ελληνικά (el)this module Shortcodes is fully translated into: Eesti (et)this module Shortcodes is fully translated into: Deutsch (de)this module Shortcodes is fully translated into: Nederlands (nl)this module Shortcodes is fully translated into: Dansk (da)this module Shortcodes is fully translated into: English (en)this module Shortcodes is fully translated into: Română (ro)this module Shortcodes is fully translated into: Italiano (it)this module Shortcodes is fully translated into: Bahasa Indonesia (id)this module Shortcodes is fully translated into: Latviešu (lv)this module Shortcodes is fully translated into: Português (pt)this module Shortcodes is fully translated into: Hrvatski (hr)this module Shortcodes is fully translated into: Suomi (fi)this module Shortcodes is fully translated into: Español (es)
Module version 1.5.5
Works with ThirtyBees Yes
  • Trusted developer of module Shortcodes
  • Support to the module Shortcodes
  • Free updates of the module Shortcodes
  • Open source - you can edit module code Shortcodes
  • Module Shortcodes works with PrestaShop 1.7
  • Module Shortcodes works with PrestaShop 1.6
  • Module Shortcodes works with PrestaShop 1.5
  • Module Shortcodes works with PrestaShop 8.0

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
[productsByAttributes:1-1,1-2] You can build list of products that will display selected combniations
for exmaple 1-2 means that you will show product with ID 1, and its combination with ID 2
[product-description:2] This shortcode will display description of product with ID 2
[product-description-short:2] This shortcode will display short description of product with ID 2
[last-products:12] This shortcode will display recently added products to shop, the number decides about number of products to display
[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]
[sale:nb:order_way:order_by] This shortcode gives possibility to display "on sale" products (products that have specific dropped price).
nb - is a number of products to display,
order_way - is a order method (position, price, id_product, name, date_add, date_upd)
order_way - is definition of order way (desc/asc)
[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'
[categories:2,3,4,5] This shortcode gives possibility to display links to category pages (image of category, name)
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
[ExtraTab:2] This shortcode is a shortcode for a module "extra tabs pro" - it will display extra tab contents. In this case - contents of extra tab with ID 2
[htmlboxpro:4] This shortcode includes box contents created with module "html box pro" 

Usage examples of module: Prestashop Shortcodes

Associated videos: Prestashop Shortcodes

Currently no related video clips available

Module reviews: Prestashop Shortcodes

Reviews were placed by customers that purchased this addon. If you already purchased this plugin and if you expect to left a review - you will get an email form shop after 2 weeks from purchase. This email will contain reminder about pending comment with url to review form
Average grade
4.94
Anita2023-02-20
Giulietta2023-02-17
Théodore2023-02-15
Jacek2023-01-19
Gabriel2023-01-11
Kíra2023-01-11
Wiktoria2022-10-20
Blanka2022-10-02
Eugène2022-09-10
Kirk2022-08-16
Léon2022-07-04
Leonardo2022-05-17
Fernando2019-11-21
Raquel2019-11-11
Aleks2019-11-07
Karina2019-11-01
Jerzy2019-10-24
Ane2019-10-16
Géza2019-10-06
Margaux2019-10-06
Joey2019-09-30
Cyprian2019-09-26
Gilles2019-09-25
Sophia2019-09-22
Sister2019-09-20
Jeannine2019-09-15
Timothée2019-08-31
Katalin2019-08-02
Nicolás2019-08-02
Zsolt2019-06-10
William2019-05-07
Rafael2019-04-28
Theresia2019-04-23
Daria2019-04-06
Marc2019-03-26
Pablo2019-03-09
Santiago2019-03-06
Anastazja2019-03-02
Adélaïde2019-03-01
Giovanna2019-02-20
Lester2019-02-01
Mário2018-08-12
Josianne2018-07-29
Guillermo2018-07-11
Ingrid2018-07-10
Soraia2018-02-09
Ulrico2018-01-30
Laney2017-12-23
Antonino2017-08-24
Georgina2017-07-10
Carlos2017-07-06
Júlia2017-05-19
László2017-04-08
Rozalia2016-11-21
Vilmos2016-08-21
Bianka2016-04-02
Lívia2015-11-26
Carlos2015-10-06
Kaela2015-04-21
Lazzaro2015-03-21
Sandra2015-02-13
Cristina2015-02-05
Lonie2014-11-26
Leonard2014-08-27
Francisca2014-05-13
Alix2013-07-07

Frequently asked questions

Feature under construction

Associated blog posts

Currently no related articles

Shortcodes Changelog - informations about updates

Version 1.5.5

  • PrestaShop 9 Compatibility: This module, which seamlessly integrates shortcodes into PrestaShop, is now fully compatible with the latest releases of PrestaShop 9. Enjoy enhanced functionality and a smooth user experience on the newest PrestaShop platform.
  • Expanded Language Support: The module is now available in a wider range of languages, making it accessible to a global audience. Supported languages include:
    • English (en)
    • Polish (pl)
    • Spanish (es)
    • Italian (it)
    • French (fr)
    • Czech (cs)
    • German (de)
    • Danish (da)
    • Finnish (fi)
    • Greek (el)
    • Bulgarian (bg)
    • Lithuanian (lt)
    • Latvian (lv)
    • Estonian (et)
    • Indonesian (id)
    • Hungarian (hu)
    • Hindi (hi)
    • Croatian (hr)
    • Icelandic (is)
    • Japanese (ja)
    • Dutch (nl)
    • Norwegian (no)
    • Portuguese (pt)
    • Romanian (ro)
    • Serbian (rs)
    • Russian (ru)
    • Swedish (sv)
    • Slovenian (si)
    • Slovak (sk)
    • Ukrainian (ua)
    • Chinese (zh)

Version 1.5.4

  • PrestaShop 8.x JSON Formatting Fix: Resolved an issue in PrestaShop 8.x versions where the associatedVariants variable's JSON formatting caused conflicts, ensuring smoother module operation and data handling.

Version 1.5.3

  • Enhanced Compatibility with Related Products Pro: Improved the module's interaction with the Related Products Pro module, optimizing performance and resolving potential conflicts for a seamless user experience.

Version 1.5.2

  • New Content Linking Shortcodes: Introduced new shortcodes for simplified linking to key content:
    • [cms-link:ID]: Generates a URL to a CMS page using its ID.
    • [category-link:ID]: Generates a URL to a category page using its ID.
    • [product-link:ID]: Generates a URL to a product page using its ID.

Version 1.5.1

  • PrestaShop 8.x Improvements: Implemented various enhancements for smoother and more reliable operation within PrestaShop 8.x environments.

Version 1.5.0

  • Product Access Module Integration: Added support for the Product Access module. Now, product visibility restrictions set within the Product Access module are respected by this module's shortcodes, ensuring consistent access control.

Version 1.4.9

  • HTMLBoxPro Module Support: Introduced the [htmlboxpro:ID] shortcode to display custom HTML blocks created with the HTMLBoxPro module, offering greater flexibility in content presentation.

Version 1.4.8

  • Category Link with Image Shortcode: Added a new shortcode to display visually appealing links to category pages, incorporating both an image and the category link for improved navigation.

Version 1.4.7

  • ExtraTabsPro Integration: Added a new shortcode to easily display content from the ExtraTabsPro module within other areas of your store, enhancing product information accessibility.

Version 1.4.6

  • PrestaShop 1.7.8.x Compatibility Improvements: Addressed compatibility issues and optimized performance for smoother operation within PrestaShop 1.7.8.x environments.

Version 1.4.5

  • On-Sale Products Shortcode: Introduced the [sale:LIMIT:ORDER_BY:ORDER_WAY] shortcode to dynamically display products currently on sale. Control the number of displayed products (LIMIT), the sorting criteria (ORDER_BY, e.g., "id_product", "price"), and the sorting order (ORDER_WAY, e.g., "ASC", "DESC"). Example: [sale:12:id_product:DESC] displays 12 sale products sorted by product ID in descending order.

Version 1.4.4

  • PrestaShop 1.6.x Workflow Improvements: Enhanced module performance and stability within PrestaShop 1.6.x versions.

Version 1.4.3

  • Category Products Display Enhancement: Improved the display of products from categories. The module now includes products from subcategories, providing a more comprehensive product listing.

Version 1.4.2

  • Manufacturer Page Optimization: Refined the module's functionality on manufacturer pages, improving performance and display.

Version 1.4.1

  • Category Page Description Display Improvement: Enhanced the visual presentation of shortcodes used within the "description" field of category pages.

Version 1.4.0

  • productsByAttributes Shortcode Visual Enhancement: Improved the display of the productsByAttributes shortcode when used within product descriptions, optimizing the visual layout and presentation of product combinations.

Version 1.3.9

  • New Products Shortcode: Introduced the [last-products:LIMIT] shortcode to display recently added products. Specify the number of products to display using the LIMIT parameter. Example: [last-products:12] displays the 12 most recently added products.

Version 1.3.8

  • Regular Expression Optimization: Improved the regular expressions used by the module for more efficient and accurate shortcode processing.

Version 1.3.7

  • Improved Compatibility with Custom Scripts: Enhanced compatibility with manually added scripts in .tpl files, reducing potential conflicts and improving overall stability.

Version 1.3.6

  • Attribute Linking Refinements: Improved the functionality for creating links to specific product attributes, enhancing user navigation and product selection.

Version 1.3.5

  • Product Combination Shortcode: Introduced the [productsByAttributes:ATTRIBUTE_IDS] shortcode to display specific product combinations as individual product listings. Specify a comma-separated list of attribute IDs. Example: [productsByAttributes:1-1,1-2,1-3,1-4] displays product combinations matching those attribute IDs.

Version 1.3.4

  • Improved Related Products Pro Integration: Enhanced the module's interaction with the Related Products Pro module when using the [rpp:ID] shortcode, optimizing performance and resolving potential conflicts.

Version 1.3.3

  • Product Description Shortcodes: Added shortcodes for displaying product descriptions:
    • [product-description:ID]: Displays the full description of the product with the specified ID.
    • [product-description-short:ID]: Displays the short description of the product with the specified ID.

Version 1.3.2

  • PrestaShop 1.7 Product Page Appearance: Improved the visual integration and appearance of the module on product pages in PrestaShop 1.7.

Version 1.3.1

  • PrestaShop 1.7.x Optimization: A major update with significant code optimization for improved performance and compatibility with PrestaShop 1.7.x versions.
  • Quick View Shortcode Support: Added support for shortcodes within the "quick view" product popup window, enhancing product information in quick view mode.

Version 1.2.3

  • PrestaShop 1.5.x Support: Released a dedicated version of the module specifically designed and optimized for PrestaShop 1.5.x versions.

Version 1.2.2

  • Improved Handling of Invalid Sorting: Enhanced the module's error handling to prevent issues caused by incorrect "order by" parameters in shortcodes.

Version 1.2.1

  • Random Product Display Enhancements: Improved the functionality for randomly displaying products from selected suppliers and manufacturers.
  • Reinstallation Required (PrestaShop 1.6.x): Due to override changes, reinstallation is required for PrestaShop 1.6.x versions.

Version 1.2.0

  • New Manufacturer Shortcodes: Added a range of shortcodes for accessing manufacturer information:
    • [manufacturer:ID:name]: Displays the manufacturer name.
    • [manufacturer:ID:short_description]: Displays the manufacturer's short description.
    • [manufacturer:ID:description]: Displays the manufacturer's full description.
    • [manufacturer:ID:link]: Generates a URL to the manufacturer page.
    • [manufacturer:ID:image_link]: Generates a URL to the manufacturer's image.
    • [manufacturer:ID:picture]: Displays the manufacturer's image.

Version 1.1.0

  • PrestaShop 1.7.x Compatibility: Enhanced the module for compatibility with PrestaShop 1.7.x releases, bringing its functionality to the newer PrestaShop platform.

Version 1.0.0

  • Initial Release: Launched the project on the MyPresta Addons marketplace.