Где возникла проблема: Multi-Vendor 4.15.1.SP2 RU, проблема также присутствует в демо.
Суть проблемы: При обновлении кол-ва товара в заказе через админ панель, исчезает поле “display_price” у товара в “product_groups”. Если вернуть значение в исходное, проблема все равно наблюдается.
GET: https://demo.cs-cart.ru/stores/6d484dd24eeb7940/api/2.0/orders/87
Ответ до обновления кол-ва:
// ... order_data
"product_groups": [
{
"name": "Simtech",
"company_id": 1,
"products": {
"530233946": {
"product_id": 128,
"product_code": "K0128RATX3",
"product": "Калькулятор Casio FX-115ES",
"amount": 1,
"product_options": [],
"price": 629.65,
"stored_price": "N",
"main_pair": {
"pair_id": "498",
"image_id": "0",
"detailed_id": "554",
"position": "0",
"detailed": {
"image_path": "http://localhost/cs_421/images/detailed/0/fx-115es_xlarge.jpg",
"alt": "",
"image_x": "500",
"image_y": "529",
"http_image_path": "http://localhost/cs_421/images/detailed/0/fx-115es_xlarge.jpg",
"absolute_path": "C:/xampp/htdocs/cs_421/images/detailed/0/fx-115es_xlarge.jpg",
"relative_path": "detailed/0/fx-115es_xlarge.jpg"
}
},
"extra": {
"product_options": [],
"unlimited_download": "N",
"points_info": {
"raw_price": 31482.5,
"price": 31483,
"display_price": 31483
}
},
"stored_discount": "N",
"company_id": "1",
"amount_total": 1,
"options_type": "P",
"exceptions_type": "F",
"modifiers_price": 0,
"is_edp": "N",
"edp_shipping": "N",
"discount": 0,
"promotions": [],
"base_price": 629.65,
"display_price": 629.65
},
"1659719199": {
"product_id": 178,
"product_code": "G0178014M3",
"product": "Папка на кольцах Wilson Jones® 364",
"amount": 2,
"product_options": [],
"price": 239.05,
"stored_price": "N",
"main_pair": {
"pair_id": "645",
"image_id": "0",
"detailed_id": "701",
"position": "0",
"detailed": {
"image_path": "http://localhost/cs_421/images/detailed/0/mbank30208_w550_h550.jpg",
"alt": "",
"image_x": "550",
"image_y": "550",
"http_image_path": "http://localhost/cs_421/images/detailed/0/mbank30208_w550_h550.jpg",
"absolute_path": "C:/xampp/htdocs/cs_421/images/detailed/0/mbank30208_w550_h550.jpg",
"relative_path": "detailed/0/mbank30208_w550_h550.jpg"
}
},
"extra": {
"product_options": [],
"unlimited_download": "N",
"points_info": {
"raw_price": 23905,
"price": 23905,
"display_price": 23905
}
},
"stored_discount": "N",
"company_id": "1",
"amount_total": 2,
"options_type": "P",
"exceptions_type": "F",
"modifiers_price": 0,
"is_edp": "N",
"edp_shipping": "N",
"discount": 0,
"promotions": [],
"base_price": 239.05,
"display_price": 239.05
}
},
// ... order_data
Ответ после обновления кол-ва:
// ... order_data
"product_groups": [
{
"name": "Simtech",
"company_id": 1,
"products": {
"530233946": {
"product_id": 128,
"product_code": "K0128RATX3",
"product": "Калькулятор Casio FX-115ES",
"amount": 2,
"product_options": [],
"price": 629.65,
"stored_price": "Y",
"main_pair": {
"pair_id": "498",
"image_id": "0",
"detailed_id": "554",
"position": "0",
"object_id": "128",
"object_type": "product",
"detailed": {
"object_id": "128",
"object_type": "product",
"type": "M",
"image_path": "https://demo.cs-cart.ru/stores/6d484dd24eeb7940/images/detailed/0/fx-115es_xlarge.jpg",
"alt": "",
"image_x": "500",
"image_y": "529",
"http_image_path": "http://demo.cs-cart.ru/stores/6d484dd24eeb7940/images/detailed/0/fx-115es_xlarge.jpg",
"https_image_path": "https://demo.cs-cart.ru/stores/6d484dd24eeb7940/images/detailed/0/fx-115es_xlarge.jpg",
"absolute_path": "/srv/projects/demo.cs-cart.ru/web/stores/6d484dd24eeb7940/images/detailed/0/fx-115es_xlarge.jpg",
"relative_path": "detailed/0/fx-115es_xlarge.jpg",
"is_high_res": false
}
},
"original_amount": "1",
"original_product_data": {
"cart_id": 530233946,
"amount": "1"
},
"extra": {
"product_options": [],
"unlimited_download": "N",
"points_info": {
"raw_price": 31482.5,
"price": 31483,
"display_price": 31483
},
"product": "Калькулятор Casio FX-115ES",
"company_id": "1",
"is_edp": "N",
"edp_shipping": "N",
"discount": 0,
"base_price": 629.65,
"stored_price": "N",
"updated_timestamp": "1328690844"
},
"stored_discount": "N",
"discount": 0,
"company_id": "1",
"amount_total": 2,
"options_type": "P",
"exceptions_type": "F",
"options_type_raw": "P",
"exceptions_type_raw": "F",
"modifiers_price": 0,
"is_edp": "N",
"edp_shipping": "N",
"base_price": 629.65,
"category_ids": [
251
],
"main_category": 251
},
"1659719199": {
"product_id": 178,
"product_code": "G0178014M3",
"product": "Папка на кольцах Wilson Jones® 364",
"amount": 2,
"product_options": [],
"price": 239.05,
"stored_price": "Y",
"main_pair": {
"pair_id": "645",
"image_id": "0",
"detailed_id": "701",
"position": "0",
"object_id": "178",
"object_type": "product",
"detailed": {
"object_id": "178",
"object_type": "product",
"type": "M",
"image_path": "https://demo.cs-cart.ru/stores/6d484dd24eeb7940/images/detailed/0/mbank30208_w550_h550.jpg",
"alt": "",
"image_x": "550",
"image_y": "550",
"http_image_path": "http://demo.cs-cart.ru/stores/6d484dd24eeb7940/images/detailed/0/mbank30208_w550_h550.jpg",
"https_image_path": "https://demo.cs-cart.ru/stores/6d484dd24eeb7940/images/detailed/0/mbank30208_w550_h550.jpg",
"absolute_path": "/srv/projects/demo.cs-cart.ru/web/stores/6d484dd24eeb7940/images/detailed/0/mbank30208_w550_h550.jpg",
"relative_path": "detailed/0/mbank30208_w550_h550.jpg",
"is_high_res": false
}
},
"original_amount": "2",
"original_product_data": {
"cart_id": 1659719199,
"amount": "2"
},
"extra": {
"product_options": [],
"unlimited_download": "N",
"points_info": {
"raw_price": 23905,
"price": 23905,
"display_price": 23905
},
"product": "Папка на кольцах Wilson Jones® 364",
"company_id": "1",
"is_edp": "N",
"edp_shipping": "N",
"discount": 0,
"base_price": 239.05,
"stored_price": "N",
"updated_timestamp": "1328701112"
},
"stored_discount": "N",
"discount": 0,
"company_id": "1",
"amount_total": 2,
"options_type": "P",
"exceptions_type": "F",
"options_type_raw": "P",
"exceptions_type_raw": "F",
"modifiers_price": 0,
"is_edp": "N",
"edp_shipping": "N",
"base_price": 239.05,
"category_ids": [
252
],
"main_category": 252
}
},
// ... order_data
Как воспроизвести проблему: Обновить кол-ва любого товара в заказе через админ панель.