- Posts: 74
- Thank you received: 1
Hiding Country in Cart Registration form
- Southcoaster
-
Topic Author
- Offline
By default the country shows up when registering a customer with a drop down box of 1, so I would like to get rid of the Country box from the registration.
If I go into Menus/Display/Custom Fields and edit 'address_country' by selecting Published to 'No' & Required to 'No', the Country field is no longer displayed, but now my County drop down box field is now missing.
Many thanks.
Please Log in or Create an account to join the conversation.
- Southcoaster
-
Topic Author
- Offline
- Posts: 74
- Thank you received: 1
I have set up my site just to have the UK as a country, as I will only be dealing with UK based customers.
By default the country shows up when registering a customer with a drop down box of 1, so I would like to get rid of the Country box from the registration.
If I go into Menus/Display/Custom Fields and edit 'address_country' by selecting Published to 'No' & Required to 'No', the Country field is no longer displayed, but now my County drop down box field is now missing.
Many thanks.
Please Log in or Create an account to join the conversation.
You should keep the country field published. Instead, just add that CSS in the front end CSS file of HikaShop via the Display tab of the configuration in order to hide it:
#address_country{display:none;}
Please Log in or Create an account to join the conversation.
- Southcoaster
-
Topic Author
- Offline
- Posts: 74
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- Southcoaster
-
Topic Author
- Offline
- Posts: 74
- Thank you received: 1
Actually I have just solved it, by setting the 'address_country' field, Required flag to 'No', and clearing out the Label Name.
Thanks again.
Please Log in or Create an account to join the conversation.
.hikashop_registration_address_country_line{display:none;}
Please Log in or Create an account to join the conversation.
- Southcoaster
-
Topic Author
- Offline
- Posts: 74
- Thank you received: 1
I think I may be getting the hang of this now.
May I ask some related questions please:
- When I first edit the 'frontend_default.css' file and save it, it creates a 'frontend_custom.css' file, and I understand the reasons for this.
- Can I make what changes I need to my 'frontend_custom.css' file anywhere in the file?
- The supplied editor in Configuration/Display is quite simple, for example it has no search facility, so is it OK to edit my 'frontend_custom.css' file directly with something like Notepad++?
- What happens during an HikaShop update, as I assume you may change the 'frontend_default.css' file, so there could be new/modified elements in the new 'frontend_default.css' file not present in my old custom file?
Many thanks.
Please Log in or Create an account to join the conversation.
3. Yes, you can directly edit it with your preferred text editor.
4. That's indeed the case. You might need to copy new CSS from the new CSS file to your custom CSS file.
Otherwise, you can also add your CSS in your template's CSS file and keep the default CSS file of HikaShop. That way, you always get the new CSS of HikaShop.
But then you might loose your CSS when you update your template...
Please Log in or Create an account to join the conversation.
- Southcoaster
-
Topic Author
- Offline
- Posts: 74
- Thank you received: 1
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
.hikashop_registration_address_country_line{display:none;}
If the county (state) is not displayed there that two possible reasons.
One is that you unpublished/deleted all the counties (states) of UK. You should check that via the menu System->Zones.
The second one is that you have javascript errors on your page:
www.hikashop.com/en/support/documentatio...ty-issues.html#modal
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
1. If you want to change the width of your country drop-down of your registration form, you'll have to use some CSS code like :
Please Log in or Create an account to join the conversation.