third.jpg
If I go to the store front and back to basket, the Write_Basket would not be executed and then all the custom basket fields appear.
home.jpg
This is the code I'm using. It's located at the bottom of the basket contents.
Code:
<mvt:comment>if adding a product to the basket save the ID and NAME values</mvt:comment>
<mvt:if expr="g.newimage_id EQ '' ">
<mvt:else>
<mvt:item name="customfields" param="Write_Basket( 'id' $ g.newimage_id, g.newimage_id )" />
<mvt:item name="customfields" param="Write_Basket( 'name' $ g.newimage_id, g.newimage_name )" />
</mvt:if>
<mvt:comment>display all custom basket fields</mvt:comment>
<mvt:item name="customfields" param="Read_Basket( '' )" />
<mvt:foreach iterator="basket" array="customfields">
<mvt:comment>use the name field to call the saved image</mvt:comment>
<mvt:if expr=" 'name' CIN l.settings:BASKET:code ">
Code:&mvte:basket:code; - Value:&mvte:basket:value;<br/>
<img src="&mvt:global:domain:base_url;screenshots/&mvte:basket:value;" style="max-width:500px;"><br/>
</mvt:if>
</mvt:foreach>