{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_promotions.stop_other_rules desc, cscart_promotions.priority",
"temporary_table": {
"table": {
"table_name": "cscart_promotions",
"access_type": "ALL",
"rows": 36,
"filtered": 100,
"attached_condition": "if(cscart_promotions.from_date,cscart_promotions.from_date <= 1773399306,1) and if(cscart_promotions.to_date,cscart_promotions.to_date >= 1773399306,1) and cscart_promotions.`status` in ('A','H') and cscart_promotions.zone = 'catalog'"
},
"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": ["vietpom_dev.cscart_promotions.promotion_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_promotion_descriptions.lang_code = 'vi')"
},
"block-nl-join": {
"table": {
"table_name": "storefronts_promotions",
"access_type": "index",
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["storefront_id", "promotion_id"],
"rows": 1,
"filtered": 100,
"using_index": true
},
"buffer_type": "flat",
"buffer_size": "134Kb",
"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 | stop_other_rules | zone | conditions_hash | status | number_of_usages | users_conditions_hash | ignore_promo_ids | name | detailed_description | short_description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 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:9:"condition";s:14:"special_prices";s:8:"operator";s:2:"eq";s:5:"value";s:1:"Y";}}} | a:1:{i:1;a:2:{s:5:"bonus";s:14:"special_prices";s:5:"value";s:1:"Y";}} | 0 | 0 | 0 | N | N | catalog | special_prices=Y | A | 8 | PRODUCT BONUS | ||||
| 32 | 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:"in";s:9:"condition";s:8:"products";s:5:"value";s:2:"67";}}} | a:1:{i:1;a:3:{s:5:"bonus";s:16:"product_discount";s:14:"discount_bonus";s:8:"to_fixed";s:14:"discount_value";s:4:"1000";}} | 1891915500 | 1703045100 | 0 | N | N | catalog | products=67 | A | 4 | Promooo |