onProductBlocksDisplay(&$element,&$html)

  • Posts: 535
  • Thank you received: 11
  • Hikamarket Multivendor Hikashop Business
8 years 7 months ago #210428

-- 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.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
8 years 7 months ago #210429

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum