I want to add to cart product with custom options. I added simple product, but can't able to add with custom options.
How to do it ?
Please help me.
Thanks.
addtocartcustom-optionsmagento2
I want to add to cart product with custom options. I added simple product, but can't able to add with custom options.
How to do it ?
Please help me.
Thanks.
Best Answer
Try to use this code in your controller. It's for specific product. If you want to add multiple products. Then, you need to save multiple product collection in $product variable.
Hope, It will helpful for you.