What does this code in product page view?

  • Posts: 639
  • Thank you received: 16
  • Hikashop Business
10 years 8 months ago #185881

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

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.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 8 months ago #185886

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.

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.
The following user(s) said Thank You: PeterChain

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

Time to create page: 0.052 seconds
Powered by Kunena Forum