Page 1 of 1

Constant errors using Cart or Cart2

Posted: Mon Aug 19, 2013 4:20 pm
by elkman
I am continually getting error messages while trying to attemp to see how CG's ecommerce mods work.

I have tried using both Cart and Cart2. Using "Cart" below is the error message I get using Cart2:

Code: Select all

Syntax Error in template "content:content_en"  on line 2 "{cgecomm_form_addtocart source=Products produc=\$num}"  - Unexpected "\"
I found this Smarty tag on the Help area of CGEcommerce Base Module. I have also tried every tag combination shown in both Cart and Cart2. An ADD TO CART option never shows up and most times an error is thrown.

I have also tried this:

Code: Select all

{Cart2 sku='some_sku'}
which also throws an error message.

I am following these instructions: http://calguy1000.com/Blogs/8/60/cmsms- ... ow-to.html

Every module has been configured and selected as shown in the Calguy's Ecommerce Base module. I must be doing something wrong but haven't been able to locate anywhere what that might be.

On the Product Hierarchy page in the "Content" block I have placed just these two tags:

Code: Select all

{Products action=hierarchy}
{cgecomm_form_addtocart source=Products produc=\$num}
Can anyone point me to an answer to my obvious error? I just need to add a couple of items that are for sale. After spending hours installing, testing, uninstalling, re-installing, just adding a PayPal purchase link (something I hate) looks attractive. But, I would really like to learn how to use this ecommerce group.

Thanks to anyone who can suggest a fix for me.

Elkman

Re: Constant errors using Cart or Cart2

Posted: Mon Aug 19, 2013 4:24 pm
by Jo Morg
elkman wrote:I have tried using both Cart and Cart2. Using "Cart" below is the error message I get using Cart2:Code:Syntax Error in template "content:content_en"  on line 2 "{cgecomm_form_addtocart source=Products produc=\$num}"  - Unexpected "\"
I'm not sure why the char "\" is on the help files, but probably it is not escaped correctly. I believe the correct syntax would be:

Code: Select all

{cgecomm_form_addtocart source=Products produc=$num}
HTH

Re: Constant errors using Cart or Cart2

Posted: Mon Aug 19, 2013 4:48 pm
by Dr.CSS
Some of CGs module help has \ in the calls, those are not supposed to be there, if you find one don't use it in any calls/tags...

Re: Constant errors using Cart or Cart2

Posted: Mon Aug 19, 2013 5:13 pm
by elkman
Thanks for such a speedy reply. I changed the tag as suggested. I no longer get a compiler error. In the page content I now get this error:

Code: Select all

Warning: Parameter source is not known by module Cart2 dropped in /home/angels08/public_html/janna/lib/misc.functions.php on line 1411


Re: Constant errors using Cart or Cart2

Posted: Mon Aug 19, 2013 5:28 pm
by Jo Morg
elkman wrote:Thanks for such a speedy reply. I changed the tag as suggested. I no longer get a compiler error. In the page content I now get this error:

Code: Select all

Warning: Parameter source is not known by module Cart2 dropped in /home/angels08/public_html/janna/lib/misc.functions.php on line 1411

You'd have to go through Cart2 Help, as it seems as a Cart parameter not used in Cart2... But that's just a hint... I've never used Cart2 myself.