Skip to content
Permalink
Browse files

Add sub_product_parent_id to childproduct list.

  • Loading branch information
fappels committed Sep 27, 2019
1 parent c2e9adb commit ad9c4cb0847b0f74f1531ce6f8141c50d9490a01
Showing with 2 additions and 0 deletions.
  1. +2 −0 extdirect/class/ExtDirectProduct.class.php
@@ -1741,6 +1741,7 @@ public function fetchSubProducts(&$results, $row, $photoFormat = '') {
global $conf;
if (! empty($conf->global->PRODUIT_SOUSPRODUITS)) {
$product_id = $this->id;
$this->get_sousproduits_arbo();
if (isset($this->sousprods)) {
$prods_arbo = $this->get_arbo_each_prod($row->qty_asked);
@@ -1750,6 +1751,7 @@ public function fetchSubProducts(&$results, $row, $photoFormat = '') {
foreach($prods_arbo as $key => $value) {
$row->id = $rowId.'_'.$value['id'];
$row->is_sub_product = true;
$row->sub_product_parent_id = $product_id;
$row->product_id = $value['id'];
$row->ref = $value['ref'];
$row->product_label = $value['label'];

0 comments on commit ad9c4cb

Please sign in to comment.
You can’t perform that action at this time.