Hi all
hope you can assist me as I am struggling to source a solution...
We are customizing a site that features the Block layered module on the product list. We need to display different options for each product featured in the list dependent on the customer default group i.e. add to cart button on hover for wholesalers only.
So far we are able to do this via a smarty variable
$this->context->smarty->assign('checkcustomer',$this->context->customer);
However while this works perfectly fine when a option is selected via the Blocklayered module it seems the ajax is causing a error suggesting the above has not being defined.
Notice: Undefined index: checkcustomer in /home/jomajewe/public_html/preview/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 162
Notice: Undefined index: checkcustomer in /home/jomajewe/public_html/preview/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 193
We have tried including the smarty variable in a number of places including the module it's self to see if this is the cause however the errors are still appear.
Any advice/guidance will be most appreciated
Kind regards