I have tried getting shipping address with both MagentoCheckoutModelSession and MagentoCheckoutModelCart, accessing the Quote object, yet it’s returning the default shipping address instead.
Pulling that data from my block class like so:
$statecode = $block->getCart()->getQuote()->getShippingAddress()->getRegionCode();
Switching addresses does not change the address this returns. Should I be calling a different object for this data?
Further info:
Putting an error_log in the Quote object’s getShippingAddress function show it pulls both default and current shipping address when I reload checkout but I’m not sure how to backtrack that to see what those different calls look like though.