Copy product options

From Catglobe Wiki
Jump to: navigation, search



Copy product options

Resource Types that have this copy option:

  • Products

Short description of the information of this option:

One product can have many product options. Each product option is one kind of a specific product which the user really buys. Each product option has language text in many languages, and one language text can be the default language text to be shown. The important part is the number of items, based on this value, the system will calculate how many items are sellable, undelivered and in stock based on the order information. Click here to read more on product options.

How this information is actually copied:

All product options of the original product are gotten and we loop through each product option in the list of product options to duplicate all the properties, values, text languages with default check or not, also the status with how many items are in stock. After copying, the copied product should have all information in options tab when opening product resource as exactly as the original product.