Jump to content


Public support for most advanced custom contents module for PrestaShop. With our html box module you can add your contents to all available positions in prestashop, even non-default hooks. Our addon has many appearance conditions and support of smarty templates language. Its definitely one from the most powerful custom contents addon for prestashop
Photo

html box shortcode to display related products and homepage products

shortcodes html

  • Please log in to reply
1 reply to this topic

#1 Aziz

Aziz

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 01 September 2021 - 01:29 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?



#2 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users