{
"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.stop_other_rules desc, cscart_promotions.priority",
"table": {
"table_name": "cscart_promotions",
"access_type": "ALL",
"rows": 33,
"filtered": 100,
"attached_condition": "if(cscart_promotions.from_date,cscart_promotions.from_date <= 1751737102,1) and if(cscart_promotions.to_date,cscart_promotions.to_date >= 1751737102,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": ["dev_db.cscart_promotions.promotion_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_promotion_descriptions.lang_code = 'en')"
}
}
]
}
}
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 | ref_promo_data | name | detailed_description | short_description |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
795 | 26 | 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:32:"1893,1894,1896,22401,22403,22404";}}} | a:1:{i:1;a:3:{s:5:"bonus";s:16:"product_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:1:"6";}} | 0 | 0 | 0 | N | N | catalog | products=1893,1894,1896,22401,22403,22404 | A | 0 | test 6% 3sp | ||||
797 | 570 | 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:83:"26956,26957,26959,26960,26962,26955,26958,26961,26963,26964,26965,26966,26967,26968";}}} | a:1:{i:1;a:3:{s:5:"bonus";s:16:"product_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:2:"10";}} | 0 | 0 | 0 | N | N | catalog | products=26956,26957,26959,26960,26962,26955,26958,26961,26963,26964,26965,26966,26967,26968 | A | 0 | Tân Nhiên 10% |