Search code examples
magentoconditional-statementscouponpromotion-code

Is there a way to use item weight in a Shopping Cart Price Rule condition?


I have a product that has two weights options, 1lbs and 2lbs. Is it possible to set a Shopping Cart Price Rule condition for only the 2lbs item?


Solution

  • Here is a best way to apply Shopping Cart Price Rule condition.

    1. add new attribute (Catalog > Attributes > Manage Attributes) ex)item_att_weight at the properties : Input type = dropdown, Use for Promo Rule Conditions = yes.. (others can be set you want)

    enter image description here

    1. set weight value at the Manage Label / Options

    enter image description here

    1. New attribute that you made add to attribute set (Catalog > Attributes > Manage Attributes Sets)

    2. When you add a product, have to use Configurable Product and select attribute set that you made.

    under Shopping Cart Price rules.

    1. setup condition whatever you want

    2. Go to Actions and setup conditions as below

      • Select attribute "item_att_weight" that you made
      • Select Value 2(lb)

    enter image description here

    then It should be worked as you desired. I hope it helps you...