won't be able to add product to cart. I always got "You need to choose options for your item.". I am sure i have select all the required options.

This is the parameters i got when submitting the add to cart form.

         array(10) {
          string(80) "aHR0cDovLzIwNi4xODkuMjA5LjYzLzIwLTktb3otaDJnby1jb25jb3JkLXRoZXJtYWwtYm90dGxlcw,,"
          string(5) "15343"
          string(0) ""
          string(0) ""
          string(16) "88DObwCS6oMd7vJj"
          array(1) {
            string(3) "469"
          array(3) {
            string(3) "524"
            string(3) "526"
            array(3) {
              string(0) ""
              string(0) ""
              string(0) ""
          string(2) "24"
          string(0) ""
          string(8) "save_new"

1 Answer 1


I think after you did a reimport / configuration of configurable product , you messed with the attributes assigned . It means one /many of simple products dont have the attribute assigned, but the main configurable have 2 attributes required. For solving that:

  1. If you aren`t using the second attr on configurable product, remove it from database.

  2. If you are using the second attr, then you should assign the attributes on each simple product

  3. You can Delete the products and do the reimport correctly .

  • is there a way to print that attribute on addProduct function? so i know which attribute to check.
    – Tora
    Oct 11, 2018 at 1:59
  • 1
    The best way for doing that is to search for the product id in this table : catalog_product_super_attribute , opening the id will show the attributes that configurable product has . If you dont know exactly what name correspond those attributes , go to eav_attribute table , search the attribute and see what name has , than you delete the one you dont want to be assigned on the catalog_product_super_attribute table for the specific product you already searched , and should be good to add your products to cart . Oct 12, 2018 at 7:13
  • I found only 1 attribute_id. It is 983 the same as above.
    – Tora
    Oct 12, 2018 at 12:07
  • 1
    What about simple products , how much attributes has each of them ?Have you created any additional attribute to show on Product Edit ? If so try to disable it and check. Oct 12, 2018 at 12:27
  • for the simple product, I only have 1 attribute. The color attribute.
    – Tora
    Oct 15, 2018 at 5:30

Your Answer

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

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