Latest Posts »
Latest Comments »
Popular Posts »

How to display related products on cart template

Written by Matt on July 22, 2008 – 4:38 pm

Just a quickie for today! :-) I’ve seen a few people using this already but I thought I’d share it with you all.

<ss:if test="$cart.Details">
<p>You may also be interested in the following products:</p> 

<ul>
<ss:foreach item="detail" within="$cart.Details">
  <ss:foreach item="relatedproduct" within="$detail.relatedProducts">
    <li><ss:link source="$relatedproduct"><ss:value source="$relatedproduct.name"/></ss:link></li>
  </ss:foreach>
</ss:foreach>
</ul>
</ss:if>
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Slashdot
  • StumbleUpon
  • Propeller
  • Live
  • Technorati
  • Facebook
  • YahooMyWeb
  • LinkedIn
  • TwitThis
  • E-mail this story to a friend!
  • Print this article!

Tags: , , ,
Posted in ProStores Coding, Tips |

Leave a Comment