diff --git a/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php b/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php index 70d34b01a..5c73d0602 100755 --- a/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php +++ b/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php @@ -67,7 +67,8 @@ class AssociatedContent extends Content /** * @param $pagination * - * @return \Thelia\Core\Template\Element\LoopResult + * @return LoopResult + * @throws \InvalidArgumentException */ public function exec(&$pagination) { diff --git a/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php b/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php index e6cc804da..42df69ea3 100755 --- a/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php +++ b/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php @@ -58,7 +58,7 @@ class AttributeCombination extends BaseLoop protected function getArgDefinitions() { return new ArgumentCollection( - Argument::createIntTypeArgument('product_sale_element', null, true), + Argument::createIntTypeArgument('product_sale_elements', null, true), new Argument( 'order', new TypeCollection( @@ -98,9 +98,9 @@ class AttributeCombination extends BaseLoop 'ATTRIBUTE_AV_ID' ); - $productSaleElement = $this->getProduct_sale_element(); + $productSaleElements = $this->getProduct_sale_elements(); - $search->filterByProductSaleElementsId($productSaleElement, Criteria::EQUAL); + $search->filterByProductSaleElementsId($productSaleElements, Criteria::EQUAL); $orders = $this->getOrder(); diff --git a/core/lib/Thelia/Core/Template/Loop/FeatureValue.php b/core/lib/Thelia/Core/Template/Loop/FeatureValue.php index 358b8d339..71070e25f 100755 --- a/core/lib/Thelia/Core/Template/Loop/FeatureValue.php +++ b/core/lib/Thelia/Core/Template/Loop/FeatureValue.php @@ -63,7 +63,7 @@ class FeatureValue extends BaseLoop Argument::createIntTypeArgument('product', null, true), Argument::createIntListTypeArgument('feature_availability'), Argument::createBooleanTypeArgument('exclude_feature_availability', 0), - Argument::createBooleanTypeArgument('exclude_default_values', 0), + Argument::createBooleanTypeArgument('exclude_personal_values', 0), new Argument( 'order', new TypeCollection( @@ -112,7 +112,7 @@ class FeatureValue extends BaseLoop $search->filterByFeatureAvId(null, Criteria::NULL); } - $excludeDefaultValues = $this->getExclude_default_values(); + $excludeDefaultValues = $this->getExclude_personal_values(); if($excludeDefaultValues == true) { $search->filterByByDefault(null, Criteria::NULL); } diff --git a/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php b/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php index 1db2bcda2..ec7cbc37f 100755 --- a/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php +++ b/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php @@ -42,7 +42,7 @@ use Thelia\Type; * * Product Sale Elements loop * - * @todo : manage currency + * @todo : manage currency and attribute_availability * * Class ProductSaleElements * @package Thelia\Core\Template\Loop @@ -56,7 +56,7 @@ class ProductSaleElements extends BaseLoop protected function getArgDefinitions() { return new ArgumentCollection( - Argument::createIntTypeArgument('devise'), + Argument::createIntTypeArgument('currency'), Argument::createIntTypeArgument('product', null, true), new Argument( 'attribute_availability', @@ -106,7 +106,7 @@ class ProductSaleElements extends BaseLoop } } - $devise = $this->getDevise(); + $currency = $this->getCurrency(); $search->joinProductPrice('price', Criteria::INNER_JOIN); //->addJoinCondition('price', ''); diff --git a/templates/default/category.html b/templates/default/category.html index 149238bef..8b52f0afc 100755 --- a/templates/default/category.html +++ b/templates/default/category.html @@ -1,6 +1,6 @@

Category page

-
+

CATALOG

@@ -73,7 +73,7 @@ {assign var=current_product value=#ID} {loop name="pse" type="product_sale_elements" product="#ID"}
- {loop name="combi" type="attribute_combination" product_sale_element="#ID"} + {loop name="combi" type="attribute_combination" product_sale_elements="#ID"} #ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE
{/loop}
#WEIGHT g @@ -161,7 +161,7 @@ {assign var=current_product value=#ID} {loop name="pse" type="product_sale_elements" product="#ID"}
- {loop name="combi" type="attribute_combination" product_sale_element="#ID"} + {loop name="combi" type="attribute_combination" product_sale_elements="#ID"} #ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE
{/loop}
#WEIGHT g @@ -187,7 +187,7 @@
-
+

ALL FEATURES AND THEIR AVAILABILITY

@@ -221,37 +221,4 @@ {/loop} -
- -
- -

SANDBOX

- - {*loop name="product" type="product" order="promo,min_price" exclude_category="3" new="on" promo="off"} -

PRODUCT : #REF / #TITLE

- {/loop*} - -{*loop name="product" type="product" new="on" promo="off"} -

PRODUCT : #REF / #TITLE

-{/loop*} - - - - {*loop name="product" type="product" order="ref" feature_availability="1: (1 | 2) , 2: 4, 3: 433"} -

PRODUCT : #REF / #TITLE

- price : #PRICE €
- promo price : #PROMO_PRICE €
- is promo : #PROMO
- is new : #NEW
- weight : #WEIGHT
- {/loop*} - - {*loop name="product" type="product" order="ref" feature_values="1: foo"} -

PRODUCT : #REF / #TITLE

- price : #PRICE €
- promo price : #PROMO_PRICE €
- is promo : #PROMO
- is new : #NEW
- weight : #WEIGHT
- {/loop*}
\ No newline at end of file