Closed powrooz66 closed 6 years ago
Hi! I have problem when i try to duplicate a product. The new product has combinations(attributes) from old product, but old product has no any combinations. Why ? I want to get oldPorduct without changes and newProduct with no combinations
ProductFactory prdktFactory = new ProductFactory(sklepyPresta._Host, sklepyPresta._User, sklepyPresta._Pass); ; Bukimedia.PrestaSharp.Entities.product oldProduct = prdktFactory.Get(id_product); Bukimedia.PrestaSharp.Entities.product newProduct = new Bukimedia.PrestaSharp.Entities.product(); newProduct = oldProduct; newProduct .id = prdktFactory.GetIds().Max() + 1; newProduct .id_default_combination = null; newProduct .cache_default_attribute = 0; prdktFactory.Add(newProduct );
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi! I have problem when i try to duplicate a product. The new product has combinations(attributes) from old product, but old product has no any combinations. Why ? I want to get oldPorduct without changes and newProduct with no combinations