Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 151 forks source link

Error Create a new Product #324

Closed capricornius closed 5 years ago

capricornius commented 6 years ago

Hello. Ia have error in Add product. iam using a net core version (Prestasharp.netcore 1.06). I can't find a property 'low_stock_alert' and is required in Prestashop DB to insert a product

In Debug mode show this exception:

2 0 7 28 18 28 1 0 simple 1 demo_8 0.000000 0.000000 0.000000 0.000000 0 0 0 0 1 0 0 0.000000 1 12.900000 0.000000 0.000000 0.00 0 0 0 1 404 0 1 0000-00-00 0 new 1 1 both 0 2018-04-23 09:52:21 2018-04-23 09:52:21 3 mountain-fox-notebook Mountain fox notebook <p><span style="font-size:10pt;font-family:Arial;font-style:normal;">The Mountain fox notebook is the best option to write down your most ingenious ideas. At work, at home or when traveling, its endearing design and manufacturing quality will make you feel like writing! 90 gsm paper / double spiral binding.</span></p> <p><span style="font-size:10pt;font-family:Arial;font-style:normal;">120 sheets notebook with hard cover made of recycled cardboard. 16x22cm</span></p> 2 6 7 18 28 29 30 31 22 23 24 25 16 0 47 28 48 29 49 30 50 31

R87UUJPT57VDDEFYRWH44HUY5RDGAQQ

application/json, application/xml, text/json, text/x-json, text/javascript, text/xml, text/xml

<?xml version="1.0" encoding="UTF-8"?>

insert() Query was : INSERT INTO `ps_product` (`id_shop_default`, `id_manufacturer`, `id_supplier`, `reference`, `supplier_reference`, `location`, `width`, `height`, `depth`, `weight`, `quantity_discount`, `ean13`, `isbn`, `upc`, `cache_is_pack`, `cache_has_attachments`, `is_virtual`, `state`, `additional_delivery_times`, `id_category_default`, `id_tax_rules_group`, `on_sale`, `online_only`, `ecotax`, `minimal_quantity`, `low_stock_threshold`, `low_stock_alert`, `price`, `wholesale_price`, `unity`, `unit_price_ratio`, `additional_shipping_cost`, `customizable`, `text_fields`, `uploadable_files`, `active`, `redirect_type`, `id_type_redirected`, `available_for_order`, `available_date`, `show_condition`, `condition`, `show_price`, `indexed`, `visibility`, `cache_default_attribute`, `advanced_stock_management`, `date_add`, `date_upd`, `pack_stock_type`) VALUES ('1', '2', '0', 'demo_8', '', '', '0', '0', '0', '0', '0', '', '', '', '0', '0', '0', '1', '0', '7', '1', '0', '0', '0', '1', NULL, NULL, '12.9', '0', '', '0', '0', '0', '0', '0', '1', '404', '0', '1', '0000-00-00', '0', 'new', '1', '1', 'both', '28', '0', '2018-05-20 10:32:20', '2018-05-20 10:32:20', '3')]]> add() Query was : INSERT INTO `ps_product` (`id_shop_default`, `id_manufacturer`, `id_supplier`, `reference`, `supplier_reference`, `location`, `width`, `height`, `depth`, `weight`, `quantity_discount`, `ean13`, `isbn`, `upc`, `cache_is_pack`, `cache_has_attachments`, `is_virtual`, `state`, `additional_delivery_times`, `id_category_default`, `id_tax_rules_group`, `on_sale`, `online_only`, `ecotax`, `minimal_quantity`, `low_stock_threshold`, `low_stock_alert`, `price`, `wholesale_price`, `unity`, `unit_price_ratio`, `additional_shipping_cost`, `customizable`, `text_fields`, `uploadable_files`, `active`, `redirect_type`, `id_type_redirected`, `available_for_order`, `available_date`, `show_condition`, `condition`, `show_price`, `indexed`, `visibility`, `cache_default_attribute`, `advanced_stock_management`, `date_add`, `date_upd`, `pack_stock_type`) VALUES ('1', '2', '0', 'demo_8', '', '', '0', '0', '0', '0', '0', '', '', '', '0', '0', '0', '1', '0', '7', '1', '0', '0', '0', '1', NULL, NULL, '12.9', '0', '', '0', '0', '0', '0', '0', '1', '404', '0', '1', '0000-00-00', '0', 'new', '1', '1', 'both', '28', '0', '2018-05-20 10:32:20', '2018-05-20 10:32:20', '3')]]>

HttpStatusCode: InternalServerError

all helps is welcome !!

mowcixo commented 5 years ago

Hello, we just released the official NuGet release that fixes the related problem. Yo can find it searching by PrestaSharp in nuget repositories, or the release https://github.com/Bukimedia/PrestaSharp/releases/tag/1.0.0

Sorry for the delay and thanks for waiting.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.