Page 1 of 1

Problem with Cart2

Posted: Fri May 10, 2013 8:11 pm
by cowtan
Just trying out the latest suite of ecommerce modules and getting a problem when I try to enable the {Cart2} tag in one of the products templates. I get the following error -

Code: Select all

Message:

Syntax Error in template "module_db_tpl:Products;detail_Sample"  on line 118 "{Cart2 sku=$entry->sku}" unknown tag "Cart2"
This seems to happen regardless which template I use. I've tried a couple of different installations - one on a local windows machine the other on a server running the LAMP stack. The versions of CMSMS and other modules I'm using are all the most recent ones.

Is this just something I'm getting wrong?

Re: Problem with Cart2

Posted: Sun Jul 28, 2013 10:13 pm
by Rolf
Please post your system information

Re: Problem with Cart2

Posted: Sun Jul 28, 2013 10:43 pm
by Stikki
Hi,

When evaluating page templates in admin side, module tags ain't being registered. Page template parsing ignores all tags that are not know, BUT when you are calling module tag inside other modules templates, that data NEEDS to be validated, even at admin side.

This means that tag you are calling ain't existing in admin realm, but only in frontend realm. To fix this issue you have to call module statically via cms_module tag. ie:

{cms_module module='Cart2' sku=$entry->sku}

This is not so much bug, neither feature. It's up to module developer to decide if this module might cause Smarty 3 to collapse admin console and therefore enable/disable tag call in admin realm.