diff --git a/local/modules/Recettes/Loop/ProductsLoop.php b/local/modules/Recettes/Loop/ProductsLoop.php index 1fcabbdb..33ec5f65 100644 --- a/local/modules/Recettes/Loop/ProductsLoop.php +++ b/local/modules/Recettes/Loop/ProductsLoop.php @@ -36,6 +36,7 @@ class ProductsLoop extends BaseLoop implements PropelSearchLoopInterface foreach ($loopResult->getResultDataCollection() as $product) { $pse = ProductSaleElementsQuery::create()->findOneById($product->getPseId()); + $productId = $pse->getProductId(); $productLabel = ProductI18nQuery::create()->findOneById($pse->getProductId())->getTitle(); $attributeCombination = AttributeCombinationQuery::create()->findOneByProductSaleElementsId($product->getPseId()); $unity = AttributeAvI18nQuery::create()->findOneById($attributeCombination->getAttributeAvId())->getTitle(); @@ -45,6 +46,7 @@ class ProductsLoop extends BaseLoop implements PropelSearchLoopInterface $loopResultRow ->set("RECIPE_ID", $product->getRecipeId()) ->set("PSE_ID", $product->getPseId()) + ->set("PRODUCT_ID", $productId) ->set("IN_STOCK", $inStock > 0) ->set("PRODUCT_LABEL", $productLabel) ->set("QUANTITY_NEEDED", $product->getQuantity()) diff --git a/local/modules/Recettes/templates/backOffice/default/ajax/related-products.html b/local/modules/Recettes/templates/backOffice/default/ajax/related-products.html new file mode 100644 index 00000000..cb5b6bd0 --- /dev/null +++ b/local/modules/Recettes/templates/backOffice/default/ajax/related-products.html @@ -0,0 +1,37 @@ +
| {intl l="Product" d="recettes"} | -{intl l="Quantity" d="recettes"} | - - -
|---|