Summary:
Fatal error when activating 'Add to cart' in Products template with products options
Detailed Description:
If I activate the 'add to cart' in the Product template I get the following
error:
Code:
Fatal error</b>
: Call to a member function Lang() on a non-object in
<b>/mysite/myfolder/lib/smarty/sysplugins/smarty_internal_templatebase.php(151)
: eval()'d code</b>
on line
<b>38</b>
When this happens none of my CSS is loaded and half the site isn't showing
either..
I am running CMSMS 2.1.2 and use Cart2 with CG Ecommerce Base, Products, Orders,
Promotions, and Paypal Gateway
I crudely 'fixed' the problem by removing this piece of code from the Cart2
template:
{if $opt->qoh > 0} -- {$opt->qoh} }
{$mod->Lang('available')}{/if}
I've posted about this on the forum (
http://forum.cmsmadesimple.org/viewtopic.php?f=7&t=74887 ) and according to a
reply from velden this problem only happens when the product has options.