Merge branch 'master' of https://github.com/thelia/thelia into coupon

# By Etienne Roudeix
# Via Etienne Roudeix
* 'master' of https://github.com/thelia/thelia:
  load test
  url output in loops
  backend loop translation
  backend trasnlation in loops
This commit is contained in:
gmorel
2013-08-28 15:46:56 +02:00
26 changed files with 641 additions and 319 deletions

View File

@@ -221,4 +221,16 @@
{/loop}
</ul>
<hr />
<h2>CURRENCIES</h2>
<ul>
{loop name="cur" type="currency"}
<li>
#NAME (#SYMBOL)
</li>
{/loop}
</ul>
</div>

View File

@@ -1,23 +1,14 @@
{*loop name="product" type="product" new="on" promo="on" min_stock="20" attribute_non_strict_match="min_stock,promo"}
<h3>PRODUCT : #REF / #TITLE (#ID)</h3>
{/loop*}
<h2>ALL ATTRIBUTES AND THEIR AVAILABILITY</h2>
{*loop name="product" type="product" min_weight="1000" max_weight="6000" attribute_non_strict_match="*"}
<h3>PRODUCT : #REF / #TITLE (#ID)</h3>
{/loop*}
{*loop name="product" type="product" min_price="100" max_price="300" min_stock="4" min_weight="6000" max_weight="7000" attribute_non_strict_match="*" promo="on"}
<h3>PRODUCT : #REF / #TITLE (#ID)</h3>
{/loop*}
{*loop name="product" type="product" promo="0" min_stock="4" order="promo,min_price"}
<h3>PRODUCT : #REF / #TITLE (#ID)</h3>
{/loop*}
{*loop name="product" type="product" order="promo,min_price"}
<h3>PRODUCT : #REF / #TITLE (#ID) / NEW : #NEW / PROMO : #PROMO / best price : #BEST_PRICE</h3>
{/loop*}
{loop name="product" type="product"}
<h3>PRODUCT : #REF / #TITLE</h3>
{/loop}
<ul>
{loop name="attr" type="attribute" order="manual" lang="2" backend_context="true"}
<li>
{if #IS_TRANSLATED == 1}#TITLE{else}to be translated{/if}
<ul>
{loop name="attrav" type="attribute_availability" order="manual" attribute="#ID" lang="3"}
<li>{if #IS_TRANSLATED == 1}#TITLE{else}to be translated{/if}</li>
{/loop}
</ul>
</li>
{/loop}
</ul>

11
templates/default/tester.html Executable file
View File

@@ -0,0 +1,11 @@
<ul>
{loop name="car" type="category"}
<li>
<ul>
{loop name="product" type="product" category="#ID"}
<li>#REF</li>
{/loop}
</ul>
</li>
{/loop}
</ul>