eCom:Related.SavedForLater

 

Summary

The eCom:Related.SavedForLater loop lets you display various information about the products that is removed from the cart and added to a saved for later list that is saved for a configurable number of days - in a setting in Management center - eCommerce - Advanced - Shopping cart - Saved for later valid time (days)).

Examples

Basic usage

Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop. Similarly, you have to use @item.GetLoop to use loops inside a loop.

<table> <tr> @foreach (LoopItem item in GetLoop("eCom:Related.SavedForLater") { <td> @item.GetValue("Relevant.Tag") </td> } </tr> </table>

Check if the loop exists

@if (Loops.Contains("eCom:Related.SavedForLater")) { ... }

Example of usage
The following general example illustrates how to use a loop construct.

<table> <!--@LoopStart(eCom:Related.SavedForLater)--> <tr> <td><!--@Loop:Tag--></td> </tr> <!--LoopEnd(eCom:Related.SavedForLater)--> </table>

Check if the loop exists

<!--@If LoopDefined(eCom:Related.SavedForLater)--> ... <!--@EndIf(eCom:Related.SavedForLater)-->

Available tags

 

 

 

Available loops