{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_promotions.priority",
"temporary_table": {
"table": {
"table_name": "cscart_promotions",
"access_type": "ALL",
"rows": 34,
"filtered": 100,
"attached_condition": "if(cscart_promotions.from_date,cscart_promotions.from_date <= 1789531159,1) and if(cscart_promotions.to_date,cscart_promotions.to_date >= 1789531159,1) and cscart_promotions.`status` in ('A','H') and cscart_promotions.zone = 'cart'"
},
"table": {
"table_name": "cscart_promotion_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["promotion_id", "lang_code"],
"ref": [
"orbit_cscart_orbit_cscart.cscart_promotions.promotion_id",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_promotion_descriptions.lang_code = 'ru')"
},
"block-nl-join": {
"table": {
"table_name": "storefronts_promotions",
"access_type": "index",
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["storefront_id", "promotion_id"],
"rows": 37,
"filtered": 100,
"using_index": true
},
"buffer_type": "flat",
"buffer_size": "256Kb",
"join_type": "BNL",
"attached_condition": "trigcond(storefronts_promotions.storefront_id = 1 or storefronts_promotions.storefront_id is null) and trigcond(storefronts_promotions.promotion_id = cscart_promotions.promotion_id)"
}
}
}
}
}
| promotion_id | company_id | conditions | bonuses | to_date | from_date | priority | stop | zone | conditions_hash | status | number_of_usages | users_conditions_hash | name | detailed_description | short_description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 41 | 1 | a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:2:{i:1;a:3:{s:8:"operator";s:2:"in";s:9:"condition";s:8:"products";s:5:"value";a:1:{i:2014026388;a:2:{s:10:"product_id";s:3:"291";s:6:"amount";s:1:"1";}}}i:2;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:11:"coupon_code";s:5:"value";s:9:"antivirus";}}} | a:4:{i:1;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:2:"13";}i:2;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:2:"14";}i:3;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:2:"12";}i:4;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:1:"1";}} | 0 | 0 | 0 | N | cart | products=2014026388;coupon_code=antivirus | H | 0 | Обеззараживатель воздуха ORBIT AERO | |||
| 27 | 1 | a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:2:{i:1;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:2000;}i:2;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:7:"payment";s:5:"value";s:2:"20";}}} | a:1:{i:2;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:2:"12";}} | 0 | 0 | 50 | N | cart | subtotal=2000;payment=20 | H | 0 | Покупка в кредит | <p>При покупке товара от 2000 у.е скидка будет составлять 12% при оплате в кредит. </p> |