Skip to main content

What does this code in product page view?

More
11 years 8 months ago #185881 by PeterChain
-- HikaShop version -- : 2
-- Joomla version -- : 3

I'm making my own custom product view and would like to know what is this code for as I killed it without noticing any change.
Code:
if(!empty($this->element->extraData->leftBegin)) { echo implode("\r\n",$this->element->extraData->leftBegin); } if(!empty($this->element->extraData->leftEnd)) { echo implode("\r\n",$this->element->extraData->leftEnd); }

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

More
11 years 8 months ago #185886 by Jerome
Hi,

This code is useful for plugins or integrations ; like HikaMarket which can use the "leftBegin" to display an edit button for the administrators (to let them edit the product).

We placed some code like that in the product pages and also in the product listing ; so plugins can add some specific content without having to create a view override.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: PeterChain

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

Time to create page: 0.195 seconds
Powered by Kunena Forum