magento custom states for country - magento

Im working on Magento latest version .The store is for UK ,I need to add country like Manchester, London, Yorkshire etc..This should show in the shipping setting when I select UK from the dropdown viz :default is USA and also in the shipping and billing address. And the defaut country should always be UK as default
How can I do that ?

You can change the default country from magento admin->system->configuration->General->country options -> Default Country.
To add regions (counties) for UK I think you have to populate the directory_country_region table.

Take a look at the official UK translation here

I found a post you might appreciate. It concerns the "directory_country_region" tables.
http://www.magentocommerce.com/boards/viewreply/192387/

Related

Magento 2.2 and multiple currencies with fixed prices

Site requirement is that all products are available to purchase in either GBP, USD or EUR. However, pricing is fixed for each product - client does not want pricing based on current exchange rates. If they did it'd be easy!
We have customers assigned to groups (price bands) and for each product we set the price for each price band. GBP has 5 price bands, USD has 2 and EUR has 1.
This is where it gets tricky. With the main site base currency set to GBP, in order to set USD & EUR in advanced pricing (i.e. fixed by customer group), we have to create a US and EU website. It's the only way to select a different currency in Advanced Pricing. Fine, but we don't want different domain/URLs for the three sites. That would in effect duplicate the same site three times with the only difference being the currency symbol. That would play havoc with search engine ranking. So I've set all three sites with the same domain but it doesn't work.
The only way to select the website when creating a customer is to have Account Sharing Options set to "per website"; otherwise the option to select website is disabled. I create a customer in admin, assigned to say the US site. Customer get's a mail to set password. Follow the link and try to set the password and it comes up with an error "Something went wrong while saving the new password." I'm guessing this is because it's trying to set the account password on the main site when the customer is associated with the US site. I've tried this multiple times and it's always the same error.
Anyone have any idea how to configure Magento 2.2 to support multiple currencies where pricing is fixed in Advanced Pricing by Customer Group and without having three duplicate public sites?

Magento - tax rate based on selected currency

Have a Magento site ver. 1.7.0.2
We have one store set up for, primary is UK, but also want to offer global sales (without multiple stores setup).
So we offer 3 selectable currencies on the site: UK - GBP (main), EU - Euro, US - USD
All prices are excluding vat/tax with a vat breakdown displayed at the cart and checkout.
For UK there is 20% VAT
For EU there is also 20% with a option to add valid EU vat number (which removes the VAT)
This all works fine.
However if you select the USD currency and add a item to the cart it gives a vat breakdown (20%), even though we dont want to add tax when USD is selected.
I should note that once you do checkout and have told the site you are in the US then is correctly removes the vat/tax.
So to clarify, we want it so that if the USD currency is selected on the site no tax/vat is added to the product price in the cart.
Is this possible?
Thanks
D
I would suggest setting up multi-store configuration, using a store front for each location (UK/US/EU)
This will allow you to set the default country for each sub-store and then you can make the USA the default shipping destination / country for the US store, this will immediately apply the tax rules for this country when purchasing items from the US Store Front.
You said there's no multi-store, setup, but do you have a good reason why you don't want to use this kind of setup? it will allow you to do what you need.
The issue with your setup is that there's no way for the store to know where the customer is before they either login or select during the checkout, this is because you will only have one default location for all currencies.
There may well be a way of doing it like this, but not that I know of. This is what the store front and/or multistore is meant for and good at.

Add Country of manufacture from front-end for a product in Magento

I have a form that enables users to add products from front-end. I was able to get all the details uploaded except for the country of Manufacture.
Part of Code that I am using to add product from front-end
$product->setName($data['pro_name']);
$product->setDescription($data['pro_des']);
// Country of Manufacture (What is the correct way to add country of manufacture)
$product->setCountryOfManufacture($data['country']);
You have to set the data of country of manufacture as $product->setCountryOrigin($data['country']);
Make sure you are calling the data with 'country' then you have to set it as shown above.
$product->setCountryOfManufacture('DE');
2-letter country ISO code https://en.wikipedia.org/wiki/ISO_3166-1 ,
DE for Germany

Magento. Add gender and Date of birthday to registration form

I want to put 2 fields on user registration form, /customer/account/create/. Those fields are
gender selection and day of birth.
As I saw magento's customer module already has those 2 attributes, so If I don't mistake, I don't need to mess up with tables.
So how this can be done? Via observers? Or controller rewrite? What is better option?
My Magento is 1.5.
I only have a magento 1.6 version installed and there you have the options at:
Configuration → Customers → Cusotmers Configuration → Name and Address Options
Show Date of Birth
Show Gender

Code to retrieve selected country for shipping address from Magento user details

How would I retrieve this information from a users details when they save their account?
I found a tutorial online and followed that to build an observer for the customer before save event (I'm not sure this is the correct event to observe, but maybe!).
http://www.fontis.com.au/blog/magento/automatically-set-magento-customer-group
But how do I get the value the user has selected as the country of their shipping address?
The idea here is to assign a customer into a customer group based on their shipping address (country).
Any help appreciated!
It seems this question is redundant in my scenario as Magento's tax classes achieve what I was trying to work out here.
Tax based on shipping address :-)

Resources