PrestaSharp
PrestaSharp copied to clipboard
Error adding product
Hello, i have null reference error when add new product
this is my data
<prestashop> <product> <id_manufacturer>3</id_manufacturer> <id_category_default>12</id_category_default> <id_tax_rules_group>53</id_tax_rules_group> <id_shop_default>1</id_shop_default> <on_sale>0</on_sale> <online_only>0</online_only> <ean13>1234</ean13> <ecotax>0</ecotax> <minimal_quantity>0</minimal_quantity> <price>5</price> <wholesale_price>0</wholesale_price> <unit_price_ratio>0</unit_price_ratio> <additional_shipping_cost>0</additional_shipping_cost> <width>0</width> <height>0</height> <depth>0</depth> <weight>0</weight> <customizable>0</customizable> <uploadable_files>0</uploadable_files> <text_fields>0</text_fields> <active>1</active> <id_product_redirected>0</id_product_redirected> <available_for_order>1</available_for_order> <show_price>1</show_price> <indexed>0</indexed> <cache_is_pack>0</cache_is_pack> <cache_has_attachments>0</cache_has_attachments> <is_virtual>0</is_virtual> <advanced_stock_management>0</advanced_stock_management> <meta_description /> <meta_keywords /> <meta_title /> <link_rewrite> <language id="3">ciao caro come stai</language> <language id="4">ciao caro come stai</language> </link_rewrite> <name> <language id="3">ciao caro come stai</language> <language id="4">ciao caro come stai</language> </name> <description /> <description_short /> <available_now /> <available_later /> <associations> <categories /> <images /> <combinations /> <product_option_values /> <product_features /> <tags /> <stock_availables /> <product_bundle /> <accessories /> </associations> </product> </prestashop>
in this method of library public Entities.product Add(Entities.product Product) aux value is null
thanks
Hi @mirasolutions Are you using PrestaShop 1.7? If yes, please update PrestaSharp. Regards.