Hi guys,
I need your help.
Can you tell me how can I override a function to wishlist?
For example, I have created a new plugin to override diferent views like product_page_view, listing view, compare view, mini-cart view, checkout view and now only less me the wishlist view.
To do that I have created a new plugin like:
class plgHikashopOverrideData extends JPlugin
{
function plgHikashopOverrideData(&$subject, $config)
{
...
}
# function to override diferent views in hikashop
function onHikashopBeforeDisplayView(&view)
{
...
if($view->getName() == 'product')
{
if($view->getLayout() == 'show')
{
// for product page
}
elseif($view->getLayout()=='compare')
{
// for compare page
}
else
{
// for other views
}
}
]
# function to cart and checkout
function onAfterCartProductsLoad(&cart)
{
...
}
}
and I have tried inside this functions to put for example if($view->getLayout() == 'wishlist') but I don't have any results.
Can you help me please, to discover where I can do that and what name of function I need to solve my problem?
Thanks.