Syntax
createProduct( data )
Creates a product on Digistore24.
Access rights
Full access required.
Parameters
data – array with product properties to change. Accessible properties are (all are optional):
- name_de/en/es/...: string[63]
- name_intern: string[63]
- description_de/en/es/...: text (filtered html)
- salespage_url: string[255]
- upsell_salespage_url: string[255] (optional)
- thankyou_url: string[255]
- image_url: string[255]
- 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.
- approval_status: new|pending
- affiliate_commission: float
- buyer_type: consumer – prices include VAT/ business = prices exclude VAT
- is_address_input_mandatory: bool
- Y – the buyer must always enter their address.
- N – the buyer must only then enter their address, if it is required for delivery.
- add_order_data_to_thankyou_page_url: bool
- Y – order data is added to URL, when directing the buyer to the thankyou page
- N – no order data is added. You may use placeholders – see tooltip of this setting in the product editor, under the tab “Properties”
Return data
Array (
[product_id] => 1234
)