Query time 0.02637
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "storefronts_promotions",
"access_type": "system",
"possible_keys": ["PRIMARY", "idx_storefront_id"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
}
},
{
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_promotions.priority",
"table": {
"table_name": "cscart_promotions",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 9,
"filtered": 100,
"attached_condition": "if(cscart_promotions.from_date,cscart_promotions.from_date <= 1776233811,1) and if(cscart_promotions.to_date,cscart_promotions.to_date >= 1776233811,1) and cscart_promotions.`status` = 'A' and cscart_promotions.promotion_id not in (25,26,27)"
}
}
}
},
{
"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": ["cscart.cscart_promotions.promotion_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_promotion_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_promotion_images",
"access_type": "eq_ref",
"possible_keys": ["promo"],
"key": "promo",
"key_length": "10",
"used_key_parts": ["promotion_id", "lang_code"],
"ref": ["cscart.cscart_promotions.promotion_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_promotion_images.promotion_id = cscart_promotions.promotion_id and cscart_promotion_images.lang_code = 'en')"
}
}
]
}
}
Result
| promotion_id |
company_id |
conditions |
bonuses |
to_date |
from_date |
priority |
stop |
stop_other_rules |
zone |
conditions_hash |
status |
number_of_usages |
users_conditions_hash |
name |
detailed_description |
short_description |
promotion_image_id |
| 24 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:1:{i:1;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:3000;}}} |
a:3:{i:1;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:1:"1";}i:2;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:2:"11";}i:3;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:2:"10";}} |
0 |
0 |
1 |
N |
N |
cart |
subtotal=3000 |
A |
0 |
|
Бесплатная доставка |
<p>Заказы от 3000 рублей доставим бесплатно</p> |
|
15 |
| 23 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:1:{i:5;a:3:{s:8:"operator";s:2:"in";s:9:"condition";s:8:"products";s:5:"value";a:1:{i:1267114885;a:2:{s:10:"product_id";s:3:"248";s:6:"amount";s:1:"1";}}}}} |
a:1:{i:3;a:4:{s:5:"bonus";s:20:"discount_on_products";s:5:"value";s:3:"248";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";d:5;}} |
0 |
0 |
2 |
N |
N |
cart |
products=1267114885 |
A |
0 |
|
Скидка на X-Box |
<p>При покупке X-Box вы получите скидку 5%</p> |
|
14 |
| 15 |
0 |
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:3000;}i:2;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:11:"coupon_code";s:5:"value";s:7:"sale-20";}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:2:"20";}} |
0 |
0 |
3 |
N |
N |
cart |
subtotal=3000;coupon_code=sale-20 |
A |
5 |
|
Скидка по купону |
<p>Получи скидку 20% по купону "sale-20".</p> |
|
11 |
| 19 |
0 |
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:"eq";s:9:"condition";s:8:"shipping";s:5:"value";s:2:"11";}i:2;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:3000;}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:8:"by_fixed";s:14:"discount_value";s:3:"500";}} |
0 |
0 |
4 |
N |
N |
cart |
shipping=11;subtotal=3000 |
A |
1 |
|
Скидка при самовывозе |
<p>Забери у нас в магазине и получи скидку 500 р.</p> |
|
13 |
| 18 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:1:{i:1;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:11:"coupon_code";s:5:"value";s:8:"EMAIL-10";}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:2:"10";}} |
0 |
0 |
5 |
N |
N |
cart |
coupon_code=EMAIL-10 |
A |
0 |
|
Скидка в ДЕМО-магазине |
<p>10% на весь ассортимент.</p> |
|
12 |