Update product duplication

This commit is contained in:
Matt-Yorkley
2023-08-07 15:31:53 +01:00
parent 820f9530b2
commit e4a49f5d02
2 changed files with 1 additions and 22 deletions

View File

@@ -20,7 +20,6 @@ module Spree
def duplicate_product
product.dup.tap do |new_product|
new_product.name = "COPY OF #{product.name}"
new_product.taxons = product.taxons
new_product.sku = ""
new_product.created_at = nil
new_product.deleted_at = nil