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.
Dynamically display products, images, and other content throughout your PrestaShop store using shortcodes. Insert these codes into product descriptions, CMS pages, category descriptions, and even .tpl files. Showcase specific products, product lists, sale items, recent additions, and products by category, manufacturer, or supplier. Control sorting and quantity, display product galleries, and integrate with other modules like "Homepage Products Pro", "Related Products Pro", and "Extra Tabs Pro". This module offers unparalleled flexibility for customizing your store's content presentation.
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" |
Automate product displays and optimize content management with Shortcodes. Easily insert dynamic product listings, descriptions, and other elements throughout your store using simple shortcodes, saving you time and enhancing your product presentation.
Boost sales by strategically showcasing products anywhere on your site. Use shortcodes to dynamically insert product listings, descriptions, and galleries into product pages, category descriptions, CMS pages, and more, driving customer engagement and increasing purchase opportunities.
Leveraging 15+ years of PrestaShop module development, our Shortcodes module seamlessly integrates into any PrestaShop theme, from the earliest versions to the latest. This deep understanding ensures flawless compatibility and optimal performance, allowing effortless content enrichment through versatile shortcodes.
Empower your store with extensive customization using shortcodes. Effortlessly embed dynamic product listings, galleries, and manufacturer details anywhere, tailoring content on product pages, category descriptions, and CMS pages for a truly personalized shopping experience.
Gain complete control over product presentation. This module grants full access to the shortcode's source code, empowering you to customize its functionality and seamlessly integrate diverse product displays anywhere on your site, within product descriptions, CMS pages, and more. No encrypted code or limitations—just pure flexibility.
Enjoy lifetime access to the Shortcodes module, empowering you to dynamically display products, categories, and manufacturers throughout your PrestaShop store using simple shortcodes. Insert these codes anywhere, from product descriptions to CMS pages, ensuring your content remains engaging and up-to-date, regardless of future PrestaShop updates. This one-time purchase eliminates recurring fees and allows you to leverage the module's functionality indefinitely. Updates are free for the first year, with significant discounts available thereafter.