[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Additional fields of basket item
> I guess that Interchange saves my basket item fields into cookies. These
> Filds may
> include sku, quantity and price. Now, I want to submit some more
> customized fields when
> a user put an item into the basket, e.g. user additional remarks for the
> specified item.
> I¡¯ve gone through files like cart, log_entry, log_transaction and
> order.profiles, but still
> don¡¯t know how to do this.
> Could give me any direction? Thanks a lot! :)
>
First, just to clear up - Interchange does not save these values
into cookies. Interchange uses one cookie to save your session ID.
The session information is stored and handled by Interchange.
If a user switches cookie usage off in their browser then another
technique is used to pass the session ID around.
You can modify the following as you see fit: To save a text value
along with a cart item, you can add the following to your "add to cart"
form on your flypage:
<input type="hidden" name="mv_item_option" value="itemtext">
<input type="text" name="mv_order_itemtext" value="" size="20">
You can retrieve this information on your cart and checkout pages,
or wherever, using a tag such as [item-modifier itemtext]. Change
the "itemtext" identifier to anything you like, but use the same
identifier in the "mv_item_option" value, the "mv_order_" name and
the [item-modifier] tag parameter.
Repeat those two lines for every one of the item's options, but change
the "itemtext" identifier.
You may also find the AutoModifier directive useful.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/