How complicated will it be to add a customer attribute in shopping cart rule condition in action section just like it shows product attribute list which are set as yes for using in promotional rule condition, Any ideas to start with will be much appreciated! enter image description here

1 Answer 1


In Magento 2 (Community Edition), the only customer attributes you can use in a shopping cart price rule (using the default Magento functionality) are: - Shipping Postcode - Shipping Region - Shipping State / Province - Shipping Country

Magento 2 Shopping Cart Price Rule

With that, you can create special offers for someone in just a state (i.e. Colorado), or a country (i.e. Canada), or just a specific postcode - this could be helpful if you wanted to do a local offer for in-store pickup in the 80303 zip code, for example.

In the Magento Enterprise edition, you have the option to do cart rules based on customer segments: Magento 2 Enterprise - Customer Segment

Based on customer segments, you have the ability to do quite a bit of targeting, including total lifetime purchases, recency of purchases, categories of past purchases and lots of other great stuff.

Here's a view of the customer segmentation features here: Customer Segmentation

I don't know if there's an extenion that will replicate this same functionality on the community platform at this point, but if you're looking for this specific functionality, the Enterprise platform might be a good fit.

  • Thank you for your detailed answer i appreciate your help and suggestions :)
    – mp196
    Commented Feb 21, 2017 at 11:27
  • @mp196 - If the answer solves your problem, remember the mark it as accepted, it helps with the site to have correct answers marked. It's the check mark next the to answer.
    – circlesix
    Commented Feb 22, 2017 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.