Is it possible to use Shortcode's into the 'HTML Pro Blocks' to display 'Prestashop Homepage Products Pro', 'Prestashop Shortcodes' or 'Related Products Pro' items?
Or is there another way to do it?
html box shortcode to display related products and homepage products
#2
Posted 01 September 2021 - 01:30 PM
Is it possible to use Shortcode's into the 'HTML Pro Blocks' to display 'Prestashop Homepage Products Pro', 'Prestashop Shortcodes' or 'Related Products Pro' items?
Or is there another way to do it?
Hello,
module itself does not have this feature. you can run some hook and module attached to this hook with special shortcode, like:
{HOOK:displayProductFooter:productcomments}
where:
- displayProductFooter - is a product name
- productcomments - is a module name
So:
You can run homepage products pro blocks with code like:
{HOOK:displayHome:hpp}
Or related products pro with code:
{Hook:displayProductFooter:ppb}
Please note that this does not display some specific "homepage products" instance or "related products" instance. It just executes hook with module, this means that it can display many blocks, or just nothing.
Our shortcodes module https://mypresta.eu/...prestashop.html gives possibility to display exact block with products with shortcodes:
[hpp:9] - where 9 is an id of "homepage products" instance
[rpp:6] - where 6 is an id of "related products" instance
shortcodes from "shortcodes" module can be used anywhere - including contents created with html box pro.
Also tagged with one or more of these keywords: shortcodes, html
Modules discussion →
Html box pro →
problems after update prestashop from 1.7.2 to 1.7.7.5Started by RON , 04 Sep 2021 update, html |
|
|
||
Modules discussion →
Html box pro →
custom contents for category does not workStarted by umberto , 31 Aug 2021 html |
|
|
||
Modules discussion →
Html box pro →
support of custom hooksStarted by SecurityCams , 05 Aug 2021 html, contents |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users