[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Strange behaviour when ordering multiple items w/options
First of all, thanks for your rapid reply Mike.
On Thursday 29 August 2002 17:46, you wrote:
> Quoting marc.brevoort (marc.brevoort@armazemdedados.com):
> > Hello group,
> > By looking at a [dump] in page
> > ord/basket.html, I know that a correct item+option example looks as
> > follows in the shopping basket:
> >
> > mv_sku = '01.01.8001.01.8-I00'
> >
> > When I attempt to add items via my flypage however, the same dump look as
> > follows:
> >
> > mv_sku = '01.01.8001.01.8-I00-XS-BLU'
> > for some strange reason the
> > mv_sku that is posted as '01.01.8061.01.8-I00' (according to the
> > cgi-variables) arrives in the shopping basket with an additional
> > '-XS-BLU' code (which probably has its origin in the 'options' table
> > rather than table 'products').
> The key is that the variables have to correspond in index, i.e. if
> you have multiple mv_order_item and mv_order_quanity there have to
> be matching copies of mv_sku. Your mv_ip and mv_ib should never
> be posted.
Okay, I stopped posting mv_ip/mv_ib and I've interlaced a hidden input mv_sku
with mv_order_item and mv_order_quantity now.
The dump now shows:
{
'price_group' => '',
'mv_sku' => '01.01.8061.01.8-I00-XS-STL',
'mv_ib' => 'options',
'code' => '01.01.8061.01.8-I00-L-STL',
'gift_cert' => '',
'quantity' => '5'
},
{
'price_group' => '',
'mv_sku' => '01.01.8061.01.8-I00-XS-STL',
'mv_ib' => 'options',
'code' => '01.01.8061.01.8-I00-L-BDC',
'gift_cert' => '',
'quantity' => '4'
},
... *snipsnip* ...
Variable mv_ip no longer shows as part of the cart. mv_sku still has appended
item options, although the posted mv_sku now shows as
'mv_sku' => '01.01.8061.01.8-I00\001.01.8061.01.8-I00\0...'
Any ideas?
Thanks a lot,
MRJB