I have an attribute called direct delivery. Is there a way to display a message on the shipping method page tell the customer they have a direct delivery item in their cart. The attribute "direct delivery" is a yes/ no attribute.

thank you

  • Do you mean the shipping method checkout step?
    – Amasty
    Aug 26 '14 at 14:58
  • Yea the page they choose what delivery rate they want during the checkout
    – Adam Allen
    Aug 26 '14 at 15:04

on method.phtml file.you need get list of product and check it attribute value yes

$quote = Mage::getSingleton('checkout/session')->getQuote();
        $cartItems = $quote->getAllVisibleItems();
        foreach ($cartItems as $item)
            $productId = $item->getProductId();
            $product = Mage::getModel('catalog/product')->load($productId);
             //direct delivery possaible


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.