Jump to content


Photo

ShortCodes module for prestashop 1.7 / 1.6 / 1.5

addon mypresta

  • Please log in to reply
1 reply to this topic

#1 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 10146 posts

Posted 08 August 2017 - 11:51 AM

ShortCodes for PrestaShop

(click to open official module page)

 

it works with all releases of PrestShop 1.7.x , 1.6.x, 1.5.x

 

With shortcodes module you can display list of products and products' gallery anywhere you want. Yes! This is first addon that allows to use shortcodes EVERYWHERE in your shop front office. Module is ready to work with shortcodes that you will put into the .tpl files or to contents generated in back office (like product description, category description, cms pages or third party modules like blog modules, custom contents modules etc.)

 

 

 

 

exmaple of available shortcodes:

  1. [product:9] 
    This shortcode will display one instance of product with defined ID, in this case product ID numer is 9
  2. [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
  3. [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]
  4. [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]
  5. [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]
  6. [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'
  7. [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
  8. [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

 

 

shortcodes.png


free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 emild

emild

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 14 November 2019 - 02:02 PM

@vekia

Your module does not work with Google Analytics & Google Tag Manager

The Shortcodes module uses the actionOutputHTMLBefore hook - when I unhook it from this hook, GA and GTM works (tested with Google Tag Assistant)

but unfortunately if the module is plugged in this hook - GA and GTM module does not work :(

it's important - I have a license for this module, I write here because you do not reply to messages.







IPB Skin By Virteq