dformica2 Posted October 14, 2016 Share Posted October 14, 2016 Is there a way to link to a list of products that belong to a specific cart rule?I'm looking to create home page advertisements to certain promotions that I'm running. Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 You can use something like this to get the products related to a cart rule: $result = Db::getInstance()->ExecuteS( 'SELECT `id_item` FROM `'._DB_PREFIX_.'cart_rule_product_rule_value` WHERE `id_product_rule` = 1' ); Change 1 to the ID of the product rule inside your cart rule. You can check the ps_cart_product_rule_value table in your database using phpMyAdmin to try to find the right ID. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now