Signatur | string product__modify_lfts( string $sid, product_modify_lft_params $lfts ) |
Parameter |
|
Returns | string array(ok=>TRUE/FALSE, errors=>will be returned in case of errors with following structure: array(art_nr=>error, art_nr2=>error2, ... ) ) |
Description | modify vendors the parameter $lfts must be an array of arrays - each sub-array has to be used to specify vendor specific attributes for a specific product: art_nr:string product number, mandatory lft_id:int vendor number, mandatory lft_params:product_lft_params this is a sub-array with following parameters: lft_ek, lft_ek_datum, lft_art_nr, lft_bemerkung, lft_losgroesse, lft_lieferzeit, lft_lbestand, lft_lbestand_datum, lft_undeliverable these parameters are described in the next few lines: lft_ek:double purchase price lft_ek_datum:string purchase date => mysql date format, for example: "2008-03-31" lft_art_nr:string vendor product number lft_bemerkung:string notice lft_losgroesse:double denominator lft_dropship_possible:int set to 1 if dropship possible, set to 0 if not (default) lft_lieferzeit:int time of delivery lft_lbestand:double vendor stock lft_lbestand_datum:string vendor stock date => mysql date format, for example: "2008-03-31" lft_undeliverable:int set to 0 if deliverable, set to 1 if undeliverable example structure for the parameter $lfts: array( array( 'art_nr'=>'abcd1234', 'lft_id'=>70000, 'lft_params'=>array( 'lft_ek'=>200.30, 'lft_ek_datum'=>'2008-10-20', ... ) ), array( 'art_nr'=>'efgh5678', ... ) ) keep in mind to specify every single parameter. for parameters you don't want to use, strings should be given an empty value ('') and integers should be set to null |