Constant errors using Cart or Cart2

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Constant errors using Cart or Cart2

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Constant errors using Cart or Cart2

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Constant errors using Cart or Cart2

Post 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...
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Re: Constant errors using Cart or Cart2

Post 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

User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Constant errors using Cart or Cart2

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”