- Posts: 575
- Thank you received: 11
onProductBlocksDisplay(&$element,&$html)
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
11 years 1 month ago #210428
by ler@singmuiheng.com
onProductBlocksDisplay(&$element,&$html) was created 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?
-- 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.
11 years 1 month ago #210429
by Jerome
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.
Replied by Jerome on topic onProductBlocksDisplay(&$element,&$html)
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,
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.159 seconds