Does anyone else also get this error after the upgrade to 1.3? We’ve checked all the template-changes and done the mentioned updates according to the diff-files but still the same error.
The related products have around 5-10 custom fields each.
Update: As a temporary solution we added new custom fields which stated “No thank you” and “None” but as required so that the customer need to select all custom fields, however there seems to be a bug with the system checking for “Required fields” (it “requires” all fields to include some data even though “Required” isnt selected in the admin).
I have an issue similar when I have a product with options that are not required so the default option is None and they try and add the product I get a “Fatal error: Call to a member function getSku() on a non-object in /code/core/Mage/Catalog/Model/Product/Option/Type/Select.php on line 205 “ But if you add the same product with an option selected that changes the price then it works fine. Dont know whats going on but it happened after an upgrade to 1.3 only bug I see so far.
Fatal error: Call to a member function getSku() on a non-object in /mydirectory/www/app/code/core/Mage/Catalog/Model/Product/Option/Type/Select.php on line 205
when i add a product with an optionnal custom option not set.
new magento install 1.3.0 when i use custom option “not required” i have this issue when in front end i try to add to cart: “Option validation failed to add product to cart”. i must check one custom option to make it work. it seems a new bug
I am getting the same error but only with downloadable products, simple products with options work fine.
Figured I would post here, guess my post is to similar to this one for anyone to reply.
UPDATE:
Got it working at least somewhat.
What I did was turn off both Flat Catalog and Products (go figure) Then changed the option is Required to Yes. This will allow one to select one of the checkboxes and if they fail to they will get the error message to select the other. Did a test sale and worked fine.
May not be the answer to everyone but might help some. Couple of thumbnails to show the settings I used.
Flat Catalog and Products are already disabled, still does not work in my case, and I need the option to be optional for extended warranty. Also removed all custom local code, no change. Cleared /var/cache manually, refreshed cache, disabled cache, no change.
I get the “Option validation failed to add product to cart” error, will not add to cart without requiring an optional option to be selected.
I installed this update to fix a minor issue with the date conversion on price rules, now a major issue is present; I had to remove all extended warranty options to continue business.
Did you use that the option is Required? As what I did in the post above was just to create a no cost option and by doing that the user ends up selecting both the item and one option.
Yes, it does work if it is Required and I add a None option, but this doesn’t allow the user to add with one click unfortunately.
I would like to use Radio Buttons without being Required so i get a None option automatically added on the product page and it is selected by default, but in that scenario I receive the getSku() fatal error that is mentioned in post #1.
Yes, it does work if it is Required and I add a None option, but this doesn’t allow the user to add with one click unfortunately.
I would like to use Radio Buttons without being Required so i get a None option automatically added on the product page and it is selected by default, but in that scenario I receive the getSku() fatal error that is mentioned in post #1.
Thanks for posting a workaround though.
No problem.... yes ONE click is important, as anymore than that will confuse some people resulting in loss sales.