Coding

Magento: import products SOAP v2 API

"additional_attributes" should not be including the following attributes.   

protected $_defaultProductAttributeList = array(

        'type_id',
        'category_ids',
        'website_ids',
        'name',
        'description',
        'short_description',
        'sku',
        'weight',
        'status',
        'url_key',
        'url_path',
        'visibility',
        'has_options',
        'gift_message_available',
        'price',
        'special_price',
        'special_from_date',
        'special_to_date',
        'tax_class_id',
        'tier_price',
        'meta_title',
        'meta_keyword',
        'meta_description',
        'custom_design',
        'custom_layout_update',
        'options_container',
        'image_label',
        'small_image_label',
        'thumbnail_label',
        'created_at',
        'updated_at'
    );
 
For the main attributes should be used as http://devdocs.magento.com/guides/m1x/api/soap/catalog/catalogProduct/catalog_product.update.html
 
And additional_attributes should be like this:
 
('additional_attributes' => array(
    'single_data' =>  array('key'=>'power', 'value'=>$power),
)
or
 
'additional_attributes' => array(
    'multi_data' =>  array('key'=>'power', 'value'=>$power),
)

0 Bình luận

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...