Im trying to INDEX the filter i created some time ago for Ja-Megafilter Component tied to J2Store.
Its been working fine until recently and i tend to think its a PHP issue.
The filter created has been running and updating with CRON for a few months. Today i added some categories and adjustments needed to be made so i thought it would be prudent to INDEX the filter for JA-MEGAFILTER COMPONENT
Steps to replicate
- Log into Joomla Admin
- Click on "Components > Ja-Megafilter"
- Click FILTERS
- Select the check box for the filter previously created
- Click INDEX at the tools menu
The next screen gives me the following error:
Notice: Undefined property: J2StoreFilterHelper::$product in //xxxx/xxxx/xxxx/xxxx//antifmradio.com/plugins/jamegafilter/j2store/helper.php on line 197
Notice: Trying to get property 'addtocart_text' of non-object in /xxxx/xxxx/xxxx/xxxx/antifmradio.com/plugins/jamegafilter/j2store/helper.php on line 197
{"success":"Export done. ID: 1"}
Here is the code for the file in question:
Line:197 $item->cart_text = (!empty($product->addtocart_text)) ? JText::($this->product->addtocart_text) : JText::('J2STORE_ADD_TO_CART');
Line: 198 $item->show = J2Store::product ()->validateVariableProduct($product);
Line: 199 $item->before_add_to_cart = J2Store::plugin()->eventWithHtml('BeforeAddToCartButton', array($product, J2Store::utilities()->getContext('default_cart')));