:::: MENU ::::

Magento Tutorial | Magento Blog | Learn Magento 2

Cookies Consent Popup

When creating Shopping Cart Price Rules in Magento 2, you may encounter an issue where the Condition dropdown does not display product attributes. This can be frustrating when you want to create promotions based on SKU, category, or other product attributes.

Problem Scenario

  • You try to create a Cart Price Rule in Marketing > Cart Price Rules.
  • The condition dropdown only shows limited options like Price in cart, Quantity in cart, Row total, etc.
  • Product attributes such as SKU, Category, or custom attributes are missing.

Root Cause

By default, Magento only shows attributes in the Cart Price Rule condition dropdown if they are marked as usable for promotions. If this setting is disabled, the attribute will not appear in the list.

Step-by-Step Fix

  1. Go to Admin Panel: Navigate to Stores > Attributes > Product.
  2. Edit Attribute: Select the attribute you want to use in Cart Price Rules (e.g., SKU, Category, or a custom attribute).
  3. Enable Promo Usage: Under Frontend Properties, set Use for Promo Rule Conditions to Yes.
  4. Save Attribute: Click Save Attribute to apply changes.
  5. Reindex: Go to System > Index Management and reindex all data.
    
        php bin/magento indexer:reindex
        
  6. Clear Cache: Run:
    
        php bin/magento cache:flush
        

Verification

Now, when you go back to Marketing > Cart Price Rules and create a new rule, your attribute should appear in the condition dropdown list.

Practical Example

Suppose you want to create a rule: If there are 3 or more products with a specific SKU in the cart, apply a discount. After enabling Use for Promo Rule Conditions on the SKU attribute, you will be able to select SKU in the condition dropdown and configure the rule properly.

Best Practices

  • Always enable Use for Promo Rule Conditions for attributes you plan to use in promotions.
  • Keep attributes organized and documented for marketing teams.
  • Test rules in a staging environment before applying them to live.
  • Reindex and clear cache after making attribute changes.

SEO & UX Benefits

  • Allows you to create more targeted promotions based on product attributes.
  • Improves customer experience with personalized discounts.
  • Boosts conversion rates by offering relevant deals.

Troubleshooting

  • If attributes still don’t appear, double‑check that Use for Promo Rule Conditions is set to Yes.
  • Ensure you reindexed after saving the attribute.
  • Check for custom modules overriding Cart Price Rule logic.
  • Review var/log/system.log for errors if the dropdown is still incomplete.

Conclusion

The missing attributes in Magento 2 Cart Price Rule conditions are usually caused by disabled Use for Promo Rule Conditions settings. By enabling this option and reindexing, you can quickly fix the issue and create powerful, attribute‑based promotions that enhance both customer experience and sales.