Using Shadows, I tried adding the related_products item to the BASK page, but that didn't seem to do much. So I threw together some manual code to pull the related items and print out a basic list, but since I'm new to these frameworks / themes I'm wondering if this is the 'right' way to do it, or if there's a built-in thing that I should use instead?
HTML Code:
<div class="relatedProducts"> <mvt:foreach array="basket:groups" iterator="group"> <mvt:do file="g.Module_Feature_RPD_DB" name="l.success" value="RelatedProductList_Customer_Load_Product(g. basket:cust_id, l.settings:group:product:id, l.settings:relatedProducts)" /> <mvt:foreach array="relatedProducts" iterator="relatedProduct"> <mvt:assign name="l.uri:store_id" value="g.Store:id" /> <mvt:assign name="l.uri:screen" value="''" /> <mvt:assign name="l.uri:page_id" value="0" /> <mvt:assign name="l.uri:cat_id" value="0" /> <mvt:assign name="l.uri:product_id" value="l.settings:relatedProduct:id" /> <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.uri, l.settings:canonical_uri )" /> <mvt:if expr="l.have_uri"> <a href="&mvt:canonical_uri:uri;" class="relatedProduct"> <div> <mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:relatedProduct:id, 1, l.settings:main)" /> <mvt:do file="g.Module_Library_DB" name="l.success" value="GeneratedImage_Load_ID(l.settings:main:image_id, l.settings:thumb)" /> <img src="&mvt:thumb:image;" alt="&mvte:relatedProduct:name;"> <br><b>&mvte:relatedProduct:name;</b> <br>&mvte:relatedProduct:price; </div> </a> </mvt:if> </mvt:foreach> </mvt:foreach> </div>
Comment