Skip to content

magento man

How to validate the shipping methods in Magento 2 according to the custom checkbox created in shipping address for Local Pick-up

I have created a checkbox in the shipping form for local pick-up option. If user checks it, shipping address get populated as the store address. Now I want to show, the custom created, shipping method for Local Pick-up only if… Read More »How to validate the shipping methods in Magento 2 according to the custom checkbox created in shipping address for Local Pick-up

Total cart Weight how to show order summary in magento 2.4.6

How can We achieve this? We get total weight of products of cart in Magento 2 by MagentoCheckoutModelCart class With objectManager $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $cart = $objectManager->get(‘MagentoCheckoutModelCart’); $items = $cart->getQuote()->getAllItems(); $weight = 0; foreach($items as $item) { $weight += ($item->getWeight()… Read More »Total cart Weight how to show order summary in magento 2.4.6