0

Set custom option value from cart to product view page in magento 2. i am using on add to cart event checkout_cart_product_add_before and set the option code add_option with option (is_available with yes) but on edit time and update the cart time custom option removed

1 Answer 1

0

you may check this link. https://webkul.com/blog/additional-options-cart-item-magento2/

It can be done by observing the catalog_product_load_after event and setting your custom option using the product->addCustomOptions() method.

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.