CMS MADE SIMPLE FORGE

Cart2

 

[#11029] Fatal error when activating 'Add to cart' in Products template with products options

avatar
Created By: Edwin de Groot (Edwin_IandD)
Date Submitted: Mon May 16 04:32:41 -0400 2016

Assigned To:
Version: 1.2.1
CMSMS Version: v2.1.2
Severity: Major
Resolution: Fixed
State: Open
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.


History

Comments
avatar
Date: 2016-05-19 13:30
Posted By: Robert Campbell (calguy1000)

fixed and released
      
Updates

Updated: 2016-05-19 13:30
resolution_id: => 7