New: works with variants:
- Better function name
This commit is contained in:
parent
b57993e599
commit
1714bce8a1
@ -330,7 +330,7 @@ class ProductCombination
|
|||||||
$child->price_autogen = $parent->price_autogen;
|
$child->price_autogen = $parent->price_autogen;
|
||||||
$child->weight = $parent->weight + $this->variation_weight;
|
$child->weight = $parent->weight + $this->variation_weight;
|
||||||
$child->weight_units = $parent->weight_units;
|
$child->weight_units = $parent->weight_units;
|
||||||
$varlabel = $this->getLabelOfCombination($this->fk_product_child);
|
$varlabel = $this->getCombinationLabel($this->fk_product_child);
|
||||||
$child->label = $parent->label.$varlabel;
|
$child->label = $parent->label.$varlabel;
|
||||||
|
|
||||||
if ($child->update($child->id, $user) > 0) {
|
if ($child->update($child->id, $user) > 0) {
|
||||||
@ -690,7 +690,7 @@ WHERE c.fk_product_parent = ".(int) $productid." AND p.tosell = 1";
|
|||||||
* @param int $prod_child id of child
|
* @param int $prod_child id of child
|
||||||
* @return string combination label
|
* @return string combination label
|
||||||
*/
|
*/
|
||||||
public function getLabelOfCombination($prod_child)
|
public function getCombinationLabel($prod_child)
|
||||||
{
|
{
|
||||||
$label = '';
|
$label = '';
|
||||||
$sql = 'SELECT pav.value AS label';
|
$sql = 'SELECT pav.value AS label';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user