Skip to content

Commit

Permalink
Merge pull request opencart#14455 from stalker780/patch-10
Browse files Browse the repository at this point in the history
Reset rating on copyProduct
  • Loading branch information
danielkerr authored Jan 31, 2025
2 parents ff15006 + 12610f0 commit 3b92903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload/admin/model/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ public function copyProduct(int $product_id): int {

$product_data['sku'] = '';
$product_data['upc'] = '';
$product_data['rating'] = '0';
$product_data['status'] = '0';

$product_data['product_attribute'] = $this->model_catalog_product->getAttributes($product_id);
Expand Down

0 comments on commit 3b92903

Please sign in to comment.