Problem with Cart2

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cowtan
Forum Members
Forum Members
Posts: 70
Joined: Mon Jan 19, 2009 5:04 pm

Problem with Cart2

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Problem with Cart2

Post by Rolf »

Please post your system information
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Stikki

Re: Problem with Cart2

Post 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.
Post Reply

Return to “Modules/Add-Ons”