I know how to get the customer's default shipping address information, but how can I get a "one-time" shipping address before the order is submitted?


Customer from Georgia has default addresses in Georgia, but is shipping to Florida for this new order. If I want to know what their shipping address is for this case, how can I find out?

I need to this information for Tax Calculation purposes, so I can charge tax if the shipment is going to Florida. Is this even possible?


Based on R.S.'s suggestion, I'm trying to get an observer set up but it isn't working as I expected. Here is what I have currently:


<?xml version="1.0"?>



class Mbs_Tax_Model_Observer {
    public function salesQuoteCollectTotalsBefore($observer) {
        $quote = $observer->getQuote();
        $address = $quote->getShippingAddress();
        $region = $address->getData('region');
        Mage::log("Address from salesQuoteCollectTotalsBefore: region ".$region,null,"tax.log");
        if(strtoupper($region)==="FLORIDA") {

            Mage::log("Shipping to Florida: ".print_r($quote->getShippingAddress()->getData('tax_amount'), true),null,"tax.log");

1 Answer 1


Try creating an observer for <sales_quote_collect_totals_before>

Then in your observer

$quote = $observer->getQuote();
$address = $quote->getShippingAddress()
  • I set up an observer to simply write to tax.log (to ensure it's working first) but I either have it set up incorrectly or it's not firing where I think it is. I expect it would run after I add products to the order, before submitting the order. Is this correct?
    – travisw
    Jun 25, 2015 at 17:10
  • Not setup correctly ... take a look at stackoverflow.com/a/16423413/1191288 Jun 25, 2015 at 17:16
  • How do I save the data I'm changing (tax_amount)?
    – travisw
    Jun 25, 2015 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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