Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Product with a boolean option cannot be added to cart?
Hi all,
Still just kicking the tyres over here but if I add a boolean option like "include power supply" then I can't seem to get it to add an sku and price for a product variant that does not have the option selected.
I did make the boolean option mandatory at fist but this seems to imply that the option must be true rather than a default option of "null" and then forcing the user to explicitly deny they want the power supply included. I changed it to not mandatory but still can't set a price for the unit without power supply.
In addition the "add to cart" button remains disabled no matter what the user selects.
thanks
Still just kicking the tyres over here but if I add a boolean option like "include power supply" then I can't seem to get it to add an sku and price for a product variant that does not have the option selected.
I did make the boolean option mandatory at fist but this seems to imply that the option must be true rather than a default option of "null" and then forcing the user to explicitly deny they want the power supply included. I changed it to not mandatory but still can't set a price for the unit without power supply.
In addition the "add to cart" button remains disabled no matter what the user selects.
thanks
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™