[ic] Order Groups don't work
Joachim Schubert
as at freibergnet.de
Mon May 24 10:10:55 EDT 2004
Hallo,
this is IC 5.0.0 with psql (PostgreSQL) 7.2.1
perl, v5.6.1 built for i386-freebsd
The example from
http://www.icdevgroup.org/doc-5.0/ic_ecommerce.html#Order%20Groups
doesn't work as expected:
Form from my order page:
<FORM ACTION="[process-target]" METHOD=POST NAME="folie">
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT TYPE=hidden NAME="mv_todo" VALUE="refresh">
<INPUT TYPE=hidden NAME="mv_order_group" VALUE="1">
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="08-002">
<INPUT TYPE=hidden NAME="mv_order_quantity" VALUE="1">
<INPUT TYPE=hidden NAME="mv_order_group" VALUE="0">
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="08-002a">
<INPUT TYPE=hidden NAME="mv_order_quantity" VALUE="1">
<INPUT TYPE=hidden NAME="mv_order_group" VALUE="0">
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="08-002a">
<INPUT TYPE=hidden NAME="mv_order_quantity" VALUE="1">
<INPUT TYPE=hidden NAME="mv_order_group" VALUE="0">
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="08-002a">
<INPUT TYPE=hidden NAME="mv_order_quantity" VALUE="1">
<INPUT TYPE=submit VALUE="Ordern">
</FORM>
The carts dump shows:
###### SESSION (carts) #####
{
'main' => [
{
'mv_mp' => undef,
'price_group' => '',
'mv_sku' => undef,
'code' => '08-002',
'gift_cert' => '',
'mv_si' => 0,
'mv_ip' => 0,
'mv_mi' => 11336,
'mv_ib' => 'products',
'quantity' => '1',
'option_type' => 'Simple'
},
{
'mv_mp' => undef,
'price_group' => '',
'mv_sku' => undef,
'code' => '08-002a',
'gift_cert' => '',
'mv_si' => 0,
'mv_ip' => 1,
'mv_mi' => 0,
'mv_ib' => 'products',
'quantity' => '1',
'option_type' => 'Simple'
},
{
'mv_mp' => undef,
'price_group' => '',
'mv_sku' => undef,
'code' => '08-002a',
'gift_cert' => '',
'mv_si' => '1',
'mv_cache_price' => 0,
'mv_ip' => 2,
'mv_mi' => 0,
'mv_ib' => 'products',
'quantity' => '1',
'option_type' => 'Simple'
},
{
'mv_mp' => undef,
'price_group' => '',
'mv_sku' => undef,
'code' => '08-002a',
'gift_cert' => '',
'mv_si' => '2',
'mv_cache_price' => 0,
'mv_ip' => 3,
'mv_mi' => 0,
'mv_ib' => 'products',
'quantity' => '1',
'option_type' => 'Simple'
}
]
}
###### END SESSION #####
The docs:
"All items in a group will have the same value of mv_mi."
->The first item (master) has 11336,
the following 0 - should be 11336.
"The attribute mv_si is set to 0 if the item is a master item,
and 1 if it is a sub-item."
->The first item (master) has 0 - ok,
the second (sub) 0, the following sub-items have 1..n
- all should be 1.
If i delete the master-item the sub-items remain in the basket.
What is wrong here?
--
Joachim Schubert
More information about the interchange-users
mailing list