I'm a very new to Magento2. I'm stuck with display the new shipment option show/hide.
I have created a new shipment method programmatically and name it "Same Day Delivery" and also I have created a Product Attribute programmatically and name it "Same Day Delivery Available: (Yes/No).
I would like to add the restriction on the Checkout page - If all items in CART have (Same Day Delivery Available as Yes). Then display the new shipment option or hide them in the shipment selection section.
Two things i have done,
- Shipment method programmatically
- Product Attribute programmatically
I need shipment option have to show based on product attribute.
Here is my coding:strong text https://github.com/balajimrv/app
Kindly help me. Thank you in advance.