been strugling for a wile and can;t seem to get it...
I need to extend the cartitem object to hold few more variables I will pass through a form
Cart 1.7.2
CGCalendar 1.5.5
CGEcommerceBase 1.2.2
my add to cart tempalte is
Code: Select all
{* add to cart template *}
{if isset($cart_error)}
{cgerror}{$cart_error}{/cgerror}
{/if}
{$formstart}
<p>Select date<br />
{cms_module module="CGCalendar" display="upcominglist" unique_only=1 upcominglisttemplate="dateselector" filtercourse=$entry->product_name}</p>
<input type="text" name="{$quantityname}" value="1" size="2" maxlength="2" style="display:none;" />
{if isset($attribute_count) && $attribute_count gt 0}
{foreach from=$attributes item='attrib'}
{$attrib->name}: {$attrib->control}
{/foreach}
{/if}
<input type="submit" name="{$submitname}" value="{$addtocarttext}" style="margin-left:20px;" />
{$formend}
I just can't seem to find it - i'm on my first cmsms project, and I invested a lot of time in theoretical thinking how to implement some functionality, but when I looked under the hood, it all seems much more complicated than I thought - it theory, what i'm trying to accomplish is fairly simple...
extend the cart -> assign variables to it -> process later with UDT and FormBuilder
Please help