How to call Main Image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coca cola
    Mini Mivite

    • Sep 2009
    • 82

    #1

    How to call Main Image

    We use Toolkit to call a quicklist of products (newest, featured, best selling etc.) The code calls for a thumbnail image which we no longer use. All our images are now main.

    <mvt:if expr="NOT ISNULL l.settings:sub_product:thumbnail">
    <a target="_blank" href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&mvta:sub_product:code;&Store_Code=&mvta:store :code;" rel="nofollow">
    <img src="http://&mvta:global:domain:name;/Merchant5/&mvt:sub_product:thumbnail;" border="0"></a> </mvt:if>

    I've tried replacing the &mvt:sub_product:thumbnail; with main, imageroot, and fullsize to no avail.

    Then I found this code using another toolkit function but it doesn't work either:
    <mvt:item name="toolkit" param="customimage|big|l.all_settings:item:product _id|fullsize" />
    <mvt:if expr="g.big">
    <img src="&mvt:global:imageroot;&mvte:global:big;">
    </mvt:if>

    Anyone found a way to fix this?
  • coca cola
    Mini Mivite

    • Sep 2009
    • 82

    #2
    Re: How to call Main Image

    I also tried without success:

    <mvt:item name="toolkit" param="customimage|big|l.all_settings:sub_products |fullsize" />

    Comment

    Working...
    X