Re: Adding Product Images To Your Basket In PR8
Ok = We have only about 380 products so this could be very cool to have small pictures of our CDs on the basket. I did everything up to step 3 of the instructions but i need some help with the code to add to the BASK page.
My costume code name for the picture is "invoiceimage". So I guess the basic code I would use is "&mvte:item:imagetypes:invoiceimage". But this does not say how small to make the image as full size is too large. So I am thinking 1/2 side would be good. Does anyone know the complete code for this and where it should go?
Here is the BASK page code:
Thanks for your help!
Ok = We have only about 380 products so this could be very cool to have small pictures of our CDs on the basket. I did everything up to step 3 of the instructions but i need some help with the code to add to the BASK page.
My costume code name for the picture is "invoiceimage". So I guess the basic code I would use is "&mvte:item:imagetypes:invoiceimage". But this does not say how small to make the image as full size is too large. So I am thinking 1/2 side would be good. Does anyone know the complete code for this and where it should go?
Here is the BASK page code:
Code:
<mvt:if expr="l.settings:basket:empty"> Your shopping basket is currently empty.<br /> <mvt:exit /> </mvt:if> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="listheader baskettext_left" colspan="2"><h4> Product Name</h4></td> <td class="listheader baskettext_right"><h4>Quantity</h4></td> <td class="listheader baskettext_right"><h4>Price/Ea.</h4></td> <td class="listheader baskettext_right"><h4>Total</h4></td> </tr> <tr><td colspan="5"> </td></tr> <mvt:foreach iterator="item" array="basket:items"> <tr> <td valign="top" width="50"> <form method="post" action="&mvt:global:sessionurl;"> <input type="hidden" name="Screen" value="BASK"> <input type="hidden" name="Action" value="RPRD"> <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;"> <input type="hidden" name="Basket_Line" value="&mvte:item:line_id;"> <mvt:item name="buttons" param="Remove" /> </form> </td> <td class="baskettext_left"> <a href="http://&mvt:global:domain:name;/&mvta:item:code;">&mvt:item:name;</a> <mvt:if expr="l.settings:item:upsold"> (Special Offer) </mvt:if> </td> <td class="baskettext_right" style="white-space: nowrap; padding: 0"> <mvt:if expr="l.settings:item:upsold"> &mvt:item:quantity; <mvt:else> <form method="post" action="&mvt:global:sessionurl;"> <input type="hidden" name="Screen" value="BASK"> <input type="hidden" name="Action" value="QNTY"> <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;"> <input type="hidden" name="Basket_Line" value="&mvte:item:line_id;"> <mvt:item name="cim_qmin" param="bask" /> <mvt:item name="buttons" param="Update" /> </form> </mvt:if> </td> <td class="baskettext_right"> &mvt:item:formatted_price; </td> <td class="baskettext_right"> &mvt:item:formatted_subtotal; </td> </tr> <mvt:foreach iterator="option" array="item:options"> <tr> <td></td> <td class="baskettext_left"> <mvt:if expr="l.settings:option:option_id"> &mvt:option:attr_prompt;: &mvt:option:opt_prompt; <mvt:elseif expr="NOT ISNULL l.settings:option:data"> &mvt:option:attr_prompt;: &mvt:option:data; <mvt:elseif expr="NOT ISNULL l.settings:option:data_long"> &mvt:option:attr_prompt;: &mvt:option:data_long; <mvt:else> &mvt:option:attr_prompt; </mvt:if> </td> <td></td> <td class="baskettext_right"> <mvt:if expr="l.settings:option:price"> &mvt:option:formatted_price; </mvt:if> </td> <td class="baskettext_right"> <mvt:if expr="l.settings:option:price"> &mvt:option:formatted_subtotal; </mvt:if> </td> </tr> </mvt:foreach> </mvt:foreach> <mvt:foreach iterator="charge" array="basket:charges"> <tr> <td></td> <td colspan="2" class="baskettext_left"> <i>&mvt:charge:descrip;</i> </td> <td class="baskettext_right"> &mvt:charge:formatted_disp_amt; </td> </tr> </mvt:foreach> <tr> <td colspan="5" id="total"> <h5>Total:</h5> <h5>&mvt:basket:formatted_total;</h5> </td> </tr> </table>
Comment