Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Add region based fee customization #30

Merged
merged 4 commits into from
Aug 22, 2017

Conversation

shanavas786
Copy link
Contributor

No description provided.

@phoenix128 phoenix128 merged commit 327771a into magespecialist:master Aug 22, 2017
@phoenix128
Copy link
Contributor

Thank you for your contribution, we just merged it.

@phoenix128
Copy link
Contributor

@shanavas786 , just FYI there was an error we fixed in 1.2.1:

$region = $quote->getShippingAddress()->getRegion()

Only works for a free input text. If you have a region database you have to use getRegionModel().

$region = $quote->getShippingAddress()->getRegionModel()->getData('code');

if (!$region && is_string($quote->getShippingAddress()->getRegion())) {
    $region = $quote->getShippingAddress()->getRegion();
}

@shanavas786
Copy link
Contributor Author

@phoenix128 Thanks, I am pretty new to Magento World, :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants