Jump to content

Link to product list belonging to a specific Cart Rule


dformica2

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...