Hi,
Okay, your problem is different than your first explanation let me think.
Regarding the current code ; I can't reproduce your issue. If there is no "product_tax_id" in the product, HikaMarket will copy the value from the product template.
In the HikaMarket product class, for the function "frontSaveForm"
if(!hikamarket::acl('product_edit_tax')) { unset($product->product_tax_id); }
will remove the product_tax_id for the product if the vendor does not have the right to edit it.
Below in the function, the product template is loaded if we are creating a new product ; and the copy of the template is made in the current product
if(!empty($template)) {
foreach($template as $k => $v) {
if(!in_array($k, array('product_code','product_alias')) && !isset($product->$k))
$product->$k = $v;
}
}
For what I read and what I tested ; I can't reproduce your issue so I think that there is a missing information which would explain what the real problem is.
Regards,