Jump to content
klifort

Заказы в админ-панеле

Recommended Posts

Доброе время суток

Возникла такая проблема

Prestashop 1.7.6.0

PHP 7.2

 

При создании нового заказу выберам пользователя на которого создаю заказ, далее выбераю продукт который хочу додать и внизу под продуктами ничего не появляется

images_1.thumb.jpg.001448c22f166b02d8d5a5d4d830f787.jpg

 

Продукты появляются только после обновлении страницы

images_3.thumb.jpg.8e2d83ad6bc13a8b75f0c3f8847ed54e.jpg

 

Когда включаю Debug ошибок непоказывает

Может кто сталкивался с таким

Edited by klifort (see edit history)

Share this post


Link to post
Share on other sites

После долгих манипуляции - появились хоть какие-то ошибки )

 

images_2.thumb.jpg.0b7af42026847c87133c70738f358232.jpg

 

Это все у тех же заказах

Share this post


Link to post
Share on other sites

И снова доброе время суток

повесил вывод ошибки в консоле и получил такой вот результат

responseText: "{\"summary\":{\"delivery\":{\"id_customer\":\"3\",\"id_manufacturer\":\"0\",\"id_supplier\":\"0\",\"id_warehouse\":\"0\",\"id_country\":\"14\",\"id_state\":\"0\",\"country\":\"Poland\",\"alias\":\"Stefan\",\"company\":\"\",\"lastname\":\"Tester\",\"firstname\":\"Pan\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"other\":\"\",\"phone\":\"\",\"phone_mobile\":\"\",\"vat_number\":\"\",\"dni\":\"\",\"date_add\":\"2019-10-23 11:10:18\",\"date_upd\":\"2019-10-23 11:10:18\",\"deleted\":\"0\",\"id\":5,\"id_shop_list\":[],\"force_id\":false},\"delivery_state\":false,\"invoice\":{\"id_customer\":\"3\",\"id_manufacturer\":\"0\",\"id_supplier\":\"0\",\"id_warehouse\":\"0\",\"id_country\":\"14\",\"id_state\":\"0\",\"country\":\"Poland\",\"alias\":\"Stefan\",\"company\":\"\",\"lastname\":\"Tester\",\"firstname\":\"Pan\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"other\":\"\",\"phone\":\"\",\"phone_mobile\":\"\",\"vat_number\":\"\",\"dni\":\"\",\"date_add\":\"2019-10-23 11:10:18\",\"date_upd\":\"2019-10-23 11:10:18\",\"deleted\":\"0\",\"id\":5,\"id_shop_list\":[],\"force_id\":false},\"invoice_state\":false,\"formattedAddresses\":{\"delivery\":{\"ordered\":[\"firstname lastname\",\"company\",\"vat_number\",\"address1\",\"address2\",\"postcode city\",\"Country:name\",\"phone\"],\"formated\":{\"firstname\":\"Pan\",\"lastname\":\"Tester\",\"company\":\"\",\"vat_number\":\"\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"Country:name\":\"Poland\",\"phone\":\"\"},\"object\":{\"id_customer\":\"3\",\"id_manufacturer\":\"0\",\"id_supplier\":\"0\",\"id_warehouse\":\"0\",\"id_country\":\"14\",\"id_state\":\"0\",\"country\":\"Poland\",\"alias\":\"Stefan\",\"company\":\"\",\"lastname\":\"Tester\",\"firstname\":\"Pan\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"other\":\"\",\"phone\":\"\",\"phone_mobile\":\"\",\"vat_number\":\"\",\"dni\":\"\",\"date_add\":\"2019-10-23 11:10:18\",\"date_upd\":\"2019-10-23 11:10:18\",\"deleted\":\"0\",\"id\":5,\"id_shop_list\":[],\"force_id\":false}},\"invoice\":{\"ordered\":[\"firstname lastname\",\"company\",\"vat_number\",\"address1\",\"address2\",\"postcode city\",\"Country:name\",\"phone\"],\"formated\":{\"firstname\":\"Pan\",\"lastname\":\"Tester\",\"company\":\"\",\"vat_number\":\"\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"Country:name\":\"Poland\",\"phone\":\"\"},\"object\":{\"id_customer\":\"3\",\"id_manufacturer\":\"0\",\"id_supplier\":\"0\",\"id_warehouse\":\"0\",\"id_country\":\"14\",\"id_state\":\"0\",\"country\":\"Poland\",\"alias\":\"Stefan\",\"company\":\"\",\"lastname\":\"Tester\",\"firstname\":\"Pan\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"other\":\"\",\"phone\":\"\",\"phone_mobile\":\"\",\"vat_number\":\"\",\"dni\":\"\",\"date_add\":\"2019-10-23 11:10:18\",\"date_upd\":\"2019-10-23 11:10:18\",\"deleted\":\"0\",\"id\":5,\"id_shop_list\":[],\"force_id\":false}}},\"products\":[{\"id_product_attribute\":\"0\",\"id_product\":\"1044\",\"cart_quantity\":\"1\",\"id_shop\":\"1\",\"id_customization\":null,\"name\":\"Adapter SC\\/APC, jednomodowy (SM), simplex, montowany na zatrzask\",\"is_virtual\":\"0\",\"description_short\":\"\",\"available_now\":\"\",\"available_later\":\"\",\"id_category_default\":\"64\",\"id_supplier\":\"1\",\"id_manufacturer\":\"1\",\"manufacturer_name\":\"InterOpto\",\"on_sale\":\"0\",\"ecotax\":\"0.000000\",\"additional_shipping_cost\":\"0.00\",\"available_for_order\":\"1\",\"show_price\":\"1\",\"price\":\"0,80\\u00a0\",\"active\":\"1\",\"unity\":\"szt\",\"unit_price_ratio\":\"1.000000\",\"quantity_available\":\"327\",\"width\":\"0.000000\",\"height\":\"0.000000\",\"depth\":\"0.000000\",\"out_of_stock\":\"2\",\"weight\":0,\"available_date\":\"2010-01-01\",\"date_add\":\"2019-10-04 10:18:13\",\"date_upd\":\"2019-10-30 15:02:13\",\"quantity\":1,\"link_rewrite\":\"adapter-sc-apc-jednomodowy-sm-simplex-montowany-na-zatrzask\",\"category\":\"adapterycouplery\",\"unique_id\":\"0000001044000000000050\",\"id_address_delivery\":\"5\",\"advanced_stock_management\":\"0\",\"supplier_reference\":\"\",\"customization_quantity\":null,\"price_attribute\":null,\"ecotax_attr\":null,\"reference\":\"IO-AD-SCAPC-SX\",\"weight_attribute\":null,\"ean13\":\"5907813980312\",\"isbn\":\"\",\"upc\":\"\",\"minimal_quantity\":\"1\",\"wholesale_price\":\"0.000000\",\"id_image\":\"1044-3298\",\"legend\":\"Adapter SC\\/APC, jednomodowy (SM), simplex, montowany na zatrzask-101863\",\"reduction_type\":0,\"is_gift\":false,\"reduction\":0,\"reduction_without_tax\":0,\"price_without_reduction\":0.984,\"specific_prices\":[],\"stock_quantity\":327,\"price_without_reduction_without_tax\":0.8,\"price_with_reduction\":0.984,\"price_with_reduction_without_tax\":0.8,\"total\":\"0,80\\u00a0\",\"total_wt\":0.984,\"price_wt\":0.984,\"reduction_applies\":false,\"quantity_discount_applies\":false,\"allow_oosp\":1,\"features\":[],\"rate\":23,\"tax_name\":\"PTU PL 23%\",\"price_without_quantity_discount\":0.984,\"reduction_formatted\":\"0,00\\u00a0z\\u0142\",\"numeric_price\":0.8,\"numeric_total\":0.8,\"image_link\":\"https:\\/\\/mydomena.com\\/3298-small_default\\/adapter-sc-apc-jednomodowy-sm-simplex-montowany-na-zatrzask.jpg\",\"attributes_small\":\"\",\"customized_datas\":false}],\"gift_products\":[],\"discounts\":[],\"is_virtual_cart\":0,\"total_discounts\":0,\"total_discounts_tax_exc\":0,\"total_wrapping\":0,\"total_wrapping_tax_exc\":0,\"total_shipping\":15.99,\"total_shipping_tax_exc\":13,\"total_products_wt\":0.98,\"total_products\":0.8,\"total_price\":16.97,\"total_tax\":3.169999999999998,\"total_price_without_tax\":13.8,\"is_multi_address_delivery\":false,\"free_ship\":false,\"carrier\":{\"id_reference\":null,\"name\":null,\"url\":null,\"delay\":null,\"active\":true,\"deleted\":0,\"shipping_handling\":true,\"range_behavior\":null,\"is_module\":null,\"is_free\":false,\"shipping_method\":1,\"shipping_external\":0,\"external_module_name\":null,\"need_range\":0,\"position\":null,\"max_width\":null,\"max_height\":null,\"max_depth\":null,\"max_weight\":null,\"grade\":null,\"id\":null,\"id_shop_list\":[],\"force_id\":false}},\"delivery_option_list\":[{\"name\":\"Odbi\\u00f3r z magazynu - przedp\\u0142ata - Natychmiast. Magazyn: ul. test, 55-300 Warszawa\\\u00f3w.\",\"key\":\"48,\"},{\"name\":\"Odbi\\u00f3r z magazynu - p\\u0142atno\\u015b\\u0107 przy odbiorze - Natychmiast. Magazyn: ul. test, 55-300 Warszawa\\u00f3w.\",\"key\":\"56,\"},{\"name\":\"Kurier DHL - przedp\\u0142ata - Dostawa nast\\u0119pnego dnia!\",\"key\":\"36,\"},{\"name\":\"Kurier DHL - pobranie - Dostawa nast\\u0119pnego dnia!\",\"key\":\"57,\"},{\"name\":\"Kurier DHL  do punktu DHL Parcel - przedp\\u0142ata - Dostawa nast\\u0119pnego dnia!\",\"key\":\"54,\"},{\"name\":\"Kurier DHL  do punktu DHL Parcel - pobranie - Dostawa nast\\u0119pnego dnia!\",\"key\":\"55,\"},{\"name\":\"Paczkomat InPost - przedp\\u0142ata - Do 2 dni roboczych\",\"key\":\"42,\"},{\"name\":\"Paczkomat InPost - pobranie, p\\u0142atno\\u015b\\u0107 kart\\u0105 - Do 2 dni roboczych\",\"key\":\"43,\"},{\"name\":\"Kurier DHL Mi\\u0119dzynarodowy EU - przedp\\u0142ata - 2-5 dni\",\"key\":\"59,\"}],\"cart\":{\"id\":72,\"id_shop_group\":\"0\",\"id_shop\":\"1\",\"id_address_delivery\":\"5\",\"id_address_invoice\":\"5\",\"id_currency\":\"1\",\"id_customer\":\"3\",\"id_guest\":\"0\",\"id_lang\":\"1\",\"recyclable\":\"0\",\"gift\":\"0\",\"gift_message\":\"\",\"mobile_theme\":\"0\",\"date_add\":\"2019-10-30 15:06:21\",\"secure_key\":\"75632cd89fe068461cf8e872a94ad360\",\"id_carrier\":48,\"date_upd\":\"2019-10-30 15:06:33\",\"checkedTos\":false,\"pictures\":null,\"textFields\":null,\"delivery_option\":\"{\\\"5\\\":\\\"48,\\\"}\",\"allow_seperated_package\":\"0\",\"id_shop_list\":[],\"force_id\":false},\"currency\":{\"id\":1,\"name\":\"Z\\u0142oty polski\",\"iso_code\":\"PLN\",\"iso_code_num\":\"985\",\"numeric_iso_code\":\"985\",\"conversion_rate\":\"1.000000\",\"deleted\":\"0\",\"active\":\"1\",\"sign\":\"z\\u0142\",\"symbol\":\"z\\u0142\",\"format\":null,\"blank\":1,\"decimals\":1,\"precision\":\"2\",\"prefix\":null,\"suffix\":null,\"id_shop_list\":[],\"force_id\":false},\"addresses\":[{\"id_address\":\"5\",\"id_country\":\"14\",\"id_state\":\"0\",\"id_customer\":\"3\",\"id_manufacturer\":\"0\",\"id_supplier\":\"0\",\"id_warehouse\":\"0\",\"alias\":\"Stefan\",\"company\":\"\",\"lastname\":\"Tester\",\"firstname\":\"Pan\",\"address1\":\"\\u0106wiartki 3\\/4\",\"address2\":\"\",\"postcode\":\"12-345\",\"city\":\"Atlantyda\",\"other\":\"\",\"phone\":\"\",\"phone_mobile\":\"\",\"vat_number\":\"\",\"dni\":\"\",\"date_add\":\"2019-10-23 11:10:18\",\"date_upd\":\"2019-10-23 11:10:18\",\"active\":\"1\",\"deleted\":\"0\",\"country\":\"Poland\",\"state\":null,\"state_iso\":null,\"formated_address\":\"Pan Tester<br \\/>\\u0106wiartki 3\\/4<br \\/>12-345 Atlantyda<br \\/>Poland\"}],\"id_cart\":72,\"order_message\":\"\",\"link_order\":\"http:\\/\\/mydomena.com\\/pl\\/zam\\u00f3wienie?step=3&recover_cart=72&token_cart=c8fc438c81a3e98deb0361065f8c7d11\",\"free_shipping\":0,\"errors\":[]}<br />\n<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /public_html/controllers/admin/AdminCartsController.php:494) in <b>/public_html/classes/controller/AdminController.php</b> on line <b>1913</b><br />\n"

linia 494 /controllers/admin/AdminCartsController.php

echo json_encode(array_merge($this->ajaxReturnVars(), array('errors' => $errors)));

linia 1913 /classes/controller/AdminController.php

header('Cache-Control: no-store, no-cache');

 

Это пока всё что смог получить.

 

Буду признателен за помощь

Share this post


Link to post
Share on other sites

Я так понимаю никто не поможет в решению даной проблемы

Share this post


Link to post
Share on other sites
On 10/30/2019 at 8:50 PM, klifort said:

После долгих манипуляции - появились хоть какие-то ошибки )

 

images_2.thumb.jpg.0b7af42026847c87133c70738f358232.jpg

 

Это все у тех же заказах

Dublicate Entry - это ошибка mysql, говорит о том, что, в таблице ps_orders уже есть запись с ключем 0. Покажите весь запрос в первом поле где ползунок двигать.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More