Cart2 question about passing values

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Cart2 question about passing values

Post by fearmydesign »

Hello all, I have been struggling with passing Option values to the cart.

Basically I am using Calguys Ecommerce Suite with the latest version of CMSMS 1.11.10 and all modules up to date.

I have already customized the look, and everything seemed pretty straight forward with the CGEcom installation, setup etc. I originally posted a question about creating a sort of 'item builder' which Calguy mentioned it is not. So I took his advice to treat the different options as products, and everything looks good... except I can't seem to pass/add the overall 'total' value of the different product/options to the cart ???

My original question here, but no answer: http://forum.cmsmadesimple.org/viewtopi ... =7&t=69662

This is the test site and a product so you can see what I am trying to do: http://cibaths.com/index.php?mact=Produ ... eturnid=15

If you click the "Add to Cart" it won't do anything.

What I did is add the extra options I created to the AddToCart Template which you can see here:

Code: Select all

{* add to cart template *}
{if isset($cart_error)}
{cgerror}{$cart_error}{/cgerror}
{/if}

{$formstart}{strip}
<input type="text" name="{$quantityname}" value="1" size="2" maxlength="2"/>
{if isset($single_option)}
  {* this is used if the sku passed to the Cart2 module was the sku of an option of a product *}
  <input type="hidden" name="{$actionid}cart_options" value="{$single_option}"/>
  &nbsp;@ {cgecomm_currency_symbol}{$unitprice|number_format:2}
{elseif isset($options)}
  {* we have multiple options *}
  <select name="{$actionid}cart_options">
    {html_options options=$options}
  </select>

{else}

{/if}

{Cart2 sku='GRANITECOLORS'}
{Cart2 sku='EDGE'}
{Cart2 sku='FAUCET'}
{Cart2 sku='DRILLING'}

<input type="submit" name="{$submitname}" value="ADD TO CART"/>
{* <input type="submit" name="{$submitname}" value="{$addtocarttext}"/> *}
{/strip}{$formend}
I am not a developer, but I try. Is there anyone that can help me tweak this so that once I click "Add to Cart" all these values get added to the shopping cart?

Thank you all for any help provided way in advance. Thanks
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
Post Reply

Return to “Modules/Add-Ons”