copyProduct
Syntax
copyProduct( product_id, data )
Copies a product on Digistore24.
Access rights
Full access required
Parameters
product_id – the id of the product to be copied
data – array with product properties to change. Accessible properties are (all are optional):
- name_de/en/es/...: string[63]
- name_intern: string[63]
- product_type_id: int – call up API function getGlobalSettings for valid product type IDs (see array element product_types). If you need a special product type, ask us: we will set it up for your community.
- language: csv list – comma seperated list of languages, e.g. en,de - default: the current vendor's language
-
is_active: bool
- Y
- N
- product_group_id: int
Return data
Array
(
[product_id] => 1234
)
Was this helpful?