Skip to main content

onProductBlocksDisplay(&$element,&$html)

More
11 years 2 months ago #210428 by ler@singmuiheng.com
-- HikaShop version -- : 2.5.1
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4

Hi

We would like to add discount end date count down plugin to product listing page and product detail page

May i confirm the onProductBlocksDisplay(&$element,&$html) is the right API?

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #210429 by Jerome
Hi,

The trigger "onProductBlocksDisplay" is called for the product edition page (so in the HikaShop backend).
Depending your kind of customization ; you can use a plugin or you can use a view override.
If you want to use a plugin, the best is to use the same process that HikaMarket is using to display his special vendor content.

If you want to add elements in the front-end product page ; you need to use the trigger "onHikashopBeforeDisplayView" and use the "extraData" variable in the view as "slots" in the product page.
www.hikashop.com/support/support/documen...hopBeforeDisplayView

For the product listing, you can use the same trigger and access to the $view->rows to list all products in the current listing.
The product listing also have extraData for the elements ; you can see how these data is display in the different views.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum