Adding messaging to cart based on Brand and Ship-to State

I am not very proficient at PHP and I am faced with a situation where if a specific brand is shipping to a specific state a message need to appear at the first stage of checkout. I am working in Theme/app/design/frontend/onecall/default/template/checkout and I have been successful at pulling back the brand, but not the 'region_id'

I am using this to call in the manufacturer

<?php
$cartItems = Mage::getSingleton('checkout/session')
          ->getQuote()
          ->getAllItems();
    foreach ($cartItems as $item) {
        $brand = Mage::getModel('catalog/product')->load($item->getProduct()->getId())->getAttributeText('manufacturer');
        echo $ean;
    }
    ?>

Any help would be greatly appreciated!

Solutions

You can only this code on the 3rd+ step of the checkout (Shipping Method) when the shipping address is selected and saved:

Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getRegionId();
Tags: Magento 1.x

Similar questions

How to hide country and state & state from cart page?
As I am new in Magento and I stuck with a problem for 4 days. I want to hide the country selection dropdown and state from cart page as My requirements to provide shipping only single country. How can I achieve this? I already tried this solution but it does not work for me solutions Thanks in advanced
PayPal gateway has rejected request. A match of the Shipping Address City, State, and Postal Code failed (#10736: Shipping Address Invalid City State
I have paypal as the defaultmethod payment and i have created an account with wrong information so when i procced to pay wiith paypal it show me this message : PayPal gateway has rejected request. A match of the Shipping Address City, State, and Postal Code failed (#10736: Shipping Address Invalid City State how can i fix this?!! thansk in advance
How to add one more state after order status and state processing
How to add one more state after order status and state processing. I want to add one custom state like delivery after order status and state processing in magento 2 Before order get completed (ship). accordingly i want to sent email "Out for delivery"
Magento 2: Need to remove Alaska and Hawaii state for shipping state dropdown on checkout page
How to remove Alaska and Hawaii states for shipping state drop down on checkout page?
Magento 2: Send different email templates for Ship, based on Shipping Method chosen
I am having a dilemma on how to send a different email content when an order is Shipped based on the Shipping Method chosen. For example: If there is Delivery / Pick Up / Shipping as shipping methods then: If Delivery: If Pickup: If Shipping: More details: I am using the FlatRate shipping method for Pickup orders and the Table Rates as Delivery. Th...
How do I add a custom message on magento's checkout page(right below the Country selector) based on the country that user selects to ship the product?
For example: If a user wants to ship to India, I want to show a small message below the country selector and before the shipping method saying that "custom duties and taxes has to be paid by customer". And for any other country "shipping is free".

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.