actindo ->product__basic_create
actindo -> product__basic_create: create basic product, zuletzt geändert am __TICKET_NAME_RSFK-330__
Signaturstring product__basic_create( string $sid, product_params $params [, boolean $force_overwrite [, boolean $next_free_art_nr]] )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • product_params $params
    parameter array
     
  • boolean $force_overwrite
    if set to true, an eventually existing product (with given art_nr) will be overriden (defaults to false)
     
  • boolean $next_free_art_nr
    if set to true, the next free art_nr will be used (defaults to false)
     
Returnsstring
array(ok=>TRUE/FALSE, id=>int product id, error=>string error text)
 
Descriptioncreate basic product, zuletzt geändert am __TICKET_NAME_RSFK-330__

the parameter array $params has to be used to specify common attributes for product:
art_nr:string
product number

art_name:string
product name

type:string
product type => set this to 'Lief', or set to '' to do it automatically

langtext:string
product long description

wg:int
product group

ean:string
ean code

grundpreis:float
base price

is_brutto:int
1:price is brutto, 0:price is netto

weight:float
product weight

weight_unit:string
product weight unit

size_b:float
product width

size_l:float
product length

size_h:float
product height

size_unit:string
product size unit

size_volume:float
product size volume

mwst_stkey:int
products mwst stkey (you can get all possible stkeys with the function product__get_all_relevant_stkeys)

konto:int
products account of proceeds (Erlöskonto)

lager_active:int
1: product has stock, 0: product without stock

dropship_active:int
1: dropship active, 0: dropship inactive

kost1:int
cost center (Kostenstelle)

kost2:int
cost object (Kostenträger)

is_shop_artikel:string
comma separated list of shop account IDs
examples: Deactivate product for Shops -> is_shop_artikel=0
Activate product for Shop 1, 2 and 4 -> is_shop_artikel='1,2,4'

ek:float
products prime cost

ek_null:int
1: use prime cost (ek) calculated from the products supplier relations, 0: use prime cost (ek) specified in the product itself

warennummer:string
customs tariff number (Zolltarifnummer)

artikelsperre:int
1: disable product, 0: enable product

serialno_active: int
1: enable, 0: disable (Seriennummern-Artikel), verfügbar seit __TICKET_NAME_AC-6373__

is_abverkauf: int
1: enable, 0: disable (Abverkaufsartikel), verfügbar seit __TICKET_NAME_RSFK-330__