bheyde
8/25/2014 - 4:30 PM

Custom Basket Fields

Custom Basket Fields

// Read in all custom basket fields

<mvt:item name="customfields" param="Read_Basket( '' )" />
<mvt:foreach iterator="basket" array="customfields">
     &mvte:basket:code; - &mvte:basket:value;<br/>
</mvt:foreach>
// Read in a custom basket field and display its value

<mvt:item name="customfields" param="Read_Basket( 'customer_ip', g.customer_ip )" />

&mvt:global:customer_ip;
//Write a value to a custom basket field

<mvt:item name="customfields" param="Write_Basket( 'customer_ip', s.remote_addr )" />
<mvt:item name="customfields" param="Write_Basket( 'my basket field', 'hello world' )" />