| Site Links |
|
|
| Merchant Resources |
|
|
| Newsletter |
|
|
|
|
|
OpenUI Tokens "Sample Examples"
|
 |
|
 |
Will let you display a different message for weekdays and weekends.
%IF((s.dyn_tm_wday LT 3) OR (s.dyn_tm_wday GT 6))%
Code to display mon-fri
%ELSE%
Code to display Sat/Sun
%IFEND%
|
This example, displays all of the categories, and the first 5 products in each category: ( Example )
%FUNC(Category_FindFirst())%
%WHILE(g.OUIX_FuncReturn)%
%VAR(Categories.d.code)% -- %VAR(Categories.d.name)%<br>
%SET(g.count|0)%
%FUNC(Customer_Product_FindOffset_Category(BasketList.d.cust_id,0,Categories.d.id))%
%WHILE(g.OUIX_FuncReturn)%
%VAR(Products.d.code)% -- %VAR(Products.d.name)%<br>
%SET(g.count|%EXPR(g.count + 1)%)%
%IF(g.count GE 5)% %BREAK% %IFEND%
%FUNC(Customer_Product_FindNext_Category(BasketList.d.cust_id,0,Categories.d.id))%
%WHILEEND%
%FUNC(Category_FindNext())%
%WHILEEND%
|
Displays basket messages depending on the status of the baskets contents:
%IF(EMPTY)%
Your basket is empty
%ELSE%
Your Basket is not empty
%IFEND%
|
Displays 100 products from the current category on the product display page. Category code must be included in the url on the Product Pages where this code is used. See example
%IF(g.Category_Code NE '')%
Other items in %catname%:
<ol>
%SET(g.MaxCount|100)%
%FUNC(Customer_Product_FindOffset_Category(BasketList.d.cust_id, 0,Categories.d.id))%
%WHILE((g.OUIX_FuncReturn GT 0) AND (g.MaxCount GT 0))%
<li><a href="="%VAR(g.sessionurl)%Screen=PROD&Product_Codee=%VAR(Products.d.code)%" title="%VAR(Products.d.name)%: %catname%">%VAR(Products.d.name)%</a>
%ASSIGN(g.MaxCount|g.MaxCount - 1)%
%FUNC(Customer_Product_FindNext_Category(BasketList.d.cust_id, g.Offset,Categories.d.id))%
%WHILEEND%
</ol>
%IFEND%
|
|
|
|
|
|