[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] stacked variants problem
Hello,
I am experiencing an inability to add stacked variants to the cart properly.
I have a base product "base" and variants "variant1" and "variant2"
This works:
<input type=hidden name="mv_order_item" value="base">
<input type=hidden name="mv_sku" value="variant1">
<input type=hidden name="mv_order_quantity" value=1>
and ends up with
'carts' => {
'wishlist' => [],
'main' => [
{
'price_group' => '',
'mv_sku' => 'base',
'mv_ib' => 'options',
'code' => 'variant1',
'quantity' => '1'
}
]
}
Unfortunately, stacking that does not work:
<input type=hidden name="mv_order_item" value="base">
<input type=hidden name="mv_sku" value="variant1">
<input type=hidden name="mv_order_quantity" value=0>
<input type=hidden name="mv_order_item" value="base">
<input type=hidden name="mv_sku" value="variant2">
<input type=hidden name="mv_order_quantity" value=1>
An examination of the cart reveals that the variant has been lost.
'carts' => {
'wishlist' => [],
'main' => [
{
'price_group' => '',
'mv_sku' => '00081',
'mv_ib' => 'products',
'code' => '00081',
'quantity' => '1'
}
]
},
By removing mv_order_item and leaving only mv_sku and mv_order_quantity I
can produce
Attempt to order missing product code: 100177-100180-100178-100179
in the error log.
By removing mv_sku and setting mv_order_item to "variant1" I can produce:
'carts' => {
'wishlist' => [],
'main' => [
{
'price_group' => '',
'mv_ib' => 'options',
'code' => 'variant1',
'quantity' => '1'
}
]
},
which gives me the closest approximation to functionality, however, the
absence of mv_sku in the cart seems to cause issues in item-list, primarily
I cannot reference the base item in an item-list with a tag such as
[item-data products description]. This makes me think that there might be
other issues introduced also.
Any insight is very appreciated.
Thanks,
Jeff