affiliate-toolkit throw error message after upgrading to new version:
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_css_container_class() on null
If you did some custom templates and you are using the more offers template you will get a error message. You can fix this if you replace the following lines.
Search for these lines:
@if(atkp_options::$loader->show_ count($formatter->get_offers($product, false)) > 0)
@include($parameters->offerstemplate,['formatter' => $formatter, 'translator' => $translator, 'product' => $product])
@endif
replace it with that 3 lines:
@if($parameters->get_show_moreoffers() && count($formatter->get_offers($product, false)) > 0)
@include($parameters->get_moreoffers_template(),['formatter' => $formatter, 'translator' => $translator, 'product' => $product, 'parameters' =>$parameters])
@endif