Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.1.0][2.1.2][2.1.3] Adding a Configurable Product with options to cart leads to "You need to choose options for your item." #5882

Closed
Hawk30100 opened this issue Jul 29, 2016 · 31 comments

Comments

@Hawk30100
Copy link

@Hawk30100 Hawk30100 commented Jul 29, 2016

Adding a Configurable Product with options to cart leads to error message: "You need to choose options for your item.".

Preconditions

  1. Magento version CE 2.1.0 or CE 2.1.2
  2. PHP 7.0.6

Steps to reproduce

  1. Create a Configurable Product
  2. Add some products to Configurations
  3. Create Options for the Configurable Product
  4. Open Configurable Product in Browser
  5. Choose Options and e.g. Color and click "Add to Cart"-Button
  6. Error message will appear

Expected result

  1. The article should have been added to the cart

Actual result

  1. A message with "You need to choose options for your item." is displayed.

This problem does not affect the Simple Product with options.

@oserediuk

This comment has been minimized.

Copy link
Contributor

@oserediuk oserediuk commented Jul 29, 2016

Hello! Looks like you created product with required options. Could you check it? If yes, this is correct system behavior

@Hawk30100

This comment has been minimized.

Copy link
Author

@Hawk30100 Hawk30100 commented Jul 29, 2016

Yes, we did create a product with required options.

If I try to add the product to cart without choosing an option i will get the message "This is a required field." for every option that was not set.

If I choose a entry for all required options and click on "Add to Cart" I will get the message "You need to choose options for your item.".
I did choose options for this item... all required options have been chosen.

@Hawk30100 Hawk30100 changed the title [2.1.0] Adding an article with options to cart leads to "You need to choose options for your item." [2.1.0] Adding a Configurable Product with options to cart leads to "You need to choose options for your item." Jul 29, 2016
@Hawk30100

This comment has been minimized.

Copy link
Author

@Hawk30100 Hawk30100 commented Jul 29, 2016

Just changed the title and the problem description. I found out that my problem only happens with configurable products with options.

@veloraven veloraven self-assigned this Aug 18, 2016
@AVoskoboinikov

This comment has been minimized.

Copy link
Contributor

@AVoskoboinikov AVoskoboinikov commented Aug 18, 2016

Hi

Thank you for your request, but unfortunately I can't reproduce this issue. I have CE 2.1.0 and one configurable product with required and non required options (please, look at it on Pic 1) and there is no error like "You need to choose options for your item.".

Probably, issue is in details, so could you help me reproduce it and provide more detailed steps what you are doing to get such error? It would be great if you can provide screenshots with product configurations.

Thanks!

Pic 1
pic1

@epadmin

This comment has been minimized.

Copy link

@epadmin epadmin commented Aug 25, 2016

I have this issue also. Let me try to describe it better. On a CATEGORY page, products with configurable options are displayed with an ADD TO CART button along with the available options. See http://foxtrotboutique.com/brands-we-love/level-99.html
You should be able to select your option and then hit add to cart, and the item goes into your cart. Instead, what is happening is if you select the option and hit ADD TO CART it takes you to the PRODUCT page with a notification at the top of the page that states "You need to choose options for your item"

I believe this worked correctly in CE2.0.1 but cannot confirm. This is a seperate issue form the out of stock options beaing able to be selected (which there is a thread on) but related because you cannot tell which options are in stock on the category page prior to hitting the add to cart button. You get the notification regardless of whether or not the option you choose is in stock. Try it on my page to see the behavior for yourself. Select Size 27 on one of the items and then hit the add to cart button.

@Hawk30100

This comment has been minimized.

Copy link
Author

@Hawk30100 Hawk30100 commented Aug 25, 2016

I will try to setup a test system in the next few days and give you some more information.

@AVoskoboinikov

This comment has been minimized.

Copy link
Contributor

@AVoskoboinikov AVoskoboinikov commented Aug 25, 2016

@epadmin, thanks for help, we already have internal ticket for issue which you have described. But as I understand it is not the same as @Hawk30100 's issue.
@Hawk30100, I will appreciate for your effort, thanks.

@to8gal

This comment has been minimized.

Copy link

@to8gal to8gal commented Aug 29, 2016

Yes I do have this issue too, but some users here describe it as generated in the Category page, but to me is also generated in the product view page, I also wanna add I´ve noticed a reference to Percentage prices in the back end under the customazible options menu as warning, that I don´t really understand cause all my product have no options, just configurable with children

@AVoskoboinikov

This comment has been minimized.

Copy link
Contributor

@AVoskoboinikov AVoskoboinikov commented Aug 31, 2016

Hi @to8gal
Could you please create separate ticket for your problem with percentage prices? It is only for non mixing different stuff in one ticket. Thank you. But it seams to me that message "Custom options with price type "percent" is not available for configurable product." is just informative and it does not mean that you have any errors.

@to8gal

This comment has been minimized.

Copy link

@to8gal to8gal commented Aug 31, 2016

It is cause i do not have any price setting as anything but fixed

Sent from my phone

Luca Cagnassi
Media Designer at 5preview AB

(+46) 722111977

Luca Cagnassi is also: www.to8gal.com

“Think Green – Please do not print this email or any printable file attached unless you really need to“

On 31 Aug 2016, at 16:06, Andrii Voskoboinikov notifications@github.com wrote:

Hi @to8gal
Could you please create separate ticket for your problem with percentage prices? It is only for non mixing different stuff in one ticket. Thank you. But it seams to me that message "Custom options with price type "percent" is not available for configurable product." is just informative and it does not mean that you have any errors.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@veloraven veloraven removed their assignment Sep 2, 2016
@AVoskoboinikov

This comment has been minimized.

Copy link
Contributor

@AVoskoboinikov AVoskoboinikov commented Sep 5, 2016

Hi @to8gal,
Please, could you create separate ticket If you have any issues with that price settings? It would help you and us.

Thanks!

@to8gal

This comment has been minimized.

Copy link

@to8gal to8gal commented Sep 5, 2016

What I meant before is I don´t really care to open a ticket on that even if incorrect, the only reason I mention that, is cause I think is related to the main problem I have, othe than that is nothing to open a ticket for me

shall I modify the ticket already open?

Thanks

L

On 05 Sep 2016, at 09:27, Andrii Voskoboinikov notifications@github.com wrote:

Hi @to8gal https://github.com/to8gal,
Please, could you create separate ticket If you have any issues with that price settings? It would help you and us.

Thanks!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #5882 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AHQFEICUyHOPUr7_-ys_mXHykKe2zh1nks5qm8RJgaJpZM4JX-fV.

@AVoskoboinikov

This comment has been minimized.

Copy link
Contributor

@AVoskoboinikov AVoskoboinikov commented Sep 5, 2016

@to8gal, no need for that, thanks.

@epadmin

This comment has been minimized.

Copy link

@epadmin epadmin commented Sep 11, 2016

@AZVO @to8gal
I think I know the source of the Product Page issue.

I have found that on the PRODUCT page you get an error that says you must choose an option if you try to add an item to the cart where that OPTION is out of stock. The error is saying you must choose an option but should say "The option you have chosen is out of stock"

This is related to the out of stock options not being marked out. If they were marked out like they are supposed to be then there would be no need for an error that says "the option you have chosen is out of stock"

By fixing the issue with out of stock items not being marked out and unselectable, the issue on the PRODUCT page will be fixed. It will also help with the issue on the CATEGORY page but as I tested the CATEGORY page the behavior is the same regardless of if the product is in stock or not - it is going to the product page with the "you must select an option" message instead of just adding to the cart

@to8gal

This comment has been minimized.

Copy link

@to8gal to8gal commented Sep 12, 2016

I will give it a try

On 11 Sep 2016, at 23:14, epadmin notifications@github.com wrote:

@AZVO https://github.com/AzVo @to8gal https://github.com/to8gal
I think I know the source of the Product Page issue.

I have found that on the PRODUCT page you get an error that says you must choose an option if you try to add an item to the cart where that OPTION is out of stock. The error is saying you must choose an option but should say "The option you have chosen is out of stock"

This is related to the out of stock options not being marked out. If they were marked out like they are supposed to be then there would be no need for an error that says "the option you have chosen is out of stock"

By fixing the issue with out of stock items not being marked out and unselectable, the issue on the PRODUCT page will be fixed. It will also help with the issue on the CATEGORY page but as I tested the CATEGORY page the behavior is the same regardless of if the product is in stock or not - it is going to the product page with the "you must select an option" message instead of just adding to the cart


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #5882 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AHQFEPGpkbSn4mAhoDI6h8CbdlZ8_czwks5qpG8dgaJpZM4JX-fV.

@AVoskoboinikov

This comment has been minimized.

Copy link
Contributor

@AVoskoboinikov AVoskoboinikov commented Sep 12, 2016

Hi @epadmin.

Thanks for help with that. I've created internal ticket to fix this.
@Hawk30100 can you submit that this is your case too?

@AVoskoboinikov AVoskoboinikov removed their assignment Sep 16, 2016
@Hawk30100

This comment has been minimized.

Copy link
Author

@Hawk30100 Hawk30100 commented Sep 28, 2016

I just installed a fresh Magento 2.1.1 on our development environment and it seems like the problem was solved in 2.1.1.

@Hawk30100

This comment has been minimized.

Copy link
Author

@Hawk30100 Hawk30100 commented Nov 2, 2016

I just cloned our productive 2.0.8 system in order to update it to 2.1.2 and the problem is back.

If I want to add a configurable product (color) to the bag, the page gets reloaded and the message: "You need to choose options for your item." is displayed.

I updated the magento version using composer. In addition we are using the Porto theme 2.4.0.1 for Magento.

@rganin rganin closed this Nov 9, 2016
@Ctucker9233

This comment has been minimized.

Copy link

@Ctucker9233 Ctucker9233 commented Nov 19, 2016

@rganin Is this fix going to be released in a patch or as part of 2.1.3? I tried manually applying the fix, but it broke a lot of things.

@alobeejay

This comment has been minimized.

Copy link

@alobeejay alobeejay commented Dec 8, 2016

@rganin Could you please give us feedback in which future version this will be officially fixed?

@Hawk30100

This comment has been minimized.

Copy link
Author

@Hawk30100 Hawk30100 commented Jan 5, 2017

We updated now from 2.0.8 to 2.1.3 but still get the message "You need to choose options for your item.".
This problem exists for existing configurable products (existing before update) and new products (created after the update).

@Hawk30100 Hawk30100 changed the title [2.1.0][2.1.2] Adding a Configurable Product with options to cart leads to "You need to choose options for your item." [2.1.0][2.1.2][2.1.3] Adding a Configurable Product with options to cart leads to "You need to choose options for your item." Jan 5, 2017
@PieterCappelle

This comment has been minimized.

Copy link
Contributor

@PieterCappelle PieterCappelle commented Jan 25, 2017

Any update on this? In which version will this be fixed?

@SilvanLaroo

This comment has been minimized.

Copy link

@SilvanLaroo SilvanLaroo commented Jan 27, 2017

We also face this issue on Magento 2.1.3.

From the category page we select the required option and click the 'add to cart' button. After this we're redirected to the product with the message 'You need to choose options for your item.'. If i select the same option from the product page and then add it to my cart it works just fine. We do not face this issue on every category page, for same categories it does work.

@helicops

This comment has been minimized.

Copy link

@helicops helicops commented Feb 6, 2017

I have also this error message, has anyone a solution for this problem?

@mitcht

This comment has been minimized.

Copy link

@mitcht mitcht commented Feb 7, 2017

I am currently running 2.1.4 and running into this bug.

To replicate:

  1. Create configurable product
  2. Go to catalog, and click "Add To Cart"
  3. Magento should redirect to the product view page, asking you to make a choice.
  4. Upon making a choice, it will reload the page, showing the item in the cart, as well as a message to make a selection, and a message it has been added to the cart. It will clear the selection as well.

This is a little funny... On the onepage checkout success.... It says "You need to choose options".....

After checking out!

EDIT: After this, the message keep appearing on every page I navigate to.

I've cleaned the /var/www/var directory, the pub/static, magento cache:clean, reindexed. EVERYTHING.

@helicops

This comment has been minimized.

Copy link

@helicops helicops commented Feb 8, 2017

I upgrade to version 2.1.4. and this bug is not solved. I have exact the same error as mitcht described.

@mitcht

This comment has been minimized.

Copy link

@mitcht mitcht commented Feb 8, 2017

This issue was closed, so there is no telling if it will get any attention now.

@richardmlaws

This comment has been minimized.

Copy link

@richardmlaws richardmlaws commented Feb 10, 2017

Does anyone know if there is a solution for this? I have the issue with 2.1.3 - Someone says the issue is still in 2.1.4? Was this closed because there is a fix?

@benhath

This comment has been minimized.

Copy link

@benhath benhath commented Feb 11, 2017

2.1.4 and 2.1.3 same problem. Running MAMP. Issue only occurs when a file is uploaded as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.