Hi,
That's potentially because the value is edited in the module.
What can be done is to add this code before the submodules one:
if(isset($this->element->main)){
$product_id = $this->element->main->product_id;
}else{
$product_id = $this->element->product_id;
}
$tmpVar = $product_id;
And in the comment part, replace:
if(isset($this->element->main)){
$product_id = $this->element->main->product_id;
}else{
$product_id = $this->element->product_id;
}
$this->params->set('product_id',$product_id);
By:
$this->params->set('product_id',$tmpVar);