Registration Edit

  • Posts: 35
  • Thank you received: 2
11 years 4 months ago #117767

Hi there.

I'm trying to get hikashop up and running @ retreatwell.com

I'm running Joomla 3.1.5.

I'm trying t edit the registration page, but I can't find the file to edit. It doesn't appear to be any of the standard view files. On the State and Country dropdowns, it first shows the "English" name and then the "Name" like this: EnglishCountry1 (Country1). But I need to get rid of the second half and only display the english names. Please help!

Thanks,
Graham

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #117795

Hi,
I think that you'll be able to do it by configuring your custom fields through "Hikashop->Display->Custom Fields->'YOUR CUSTOM FIELD'".
Also can you give more information about the fields that are causing you this problem ? I can't add any Item to my cart through your website, so I can't really test the Hikashop register form.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 2
11 years 4 months ago #117896

Can't do it through custom fields, because it has to do with how the code displays "zones". I can change the zones and the custom fields, but none of that fixes the code for displaying the zones on the registration page dropdowns.

The custom field is "address_country". On the registration page "address_country" calls upon Zone "Countries". The dropdown showing "Zone - Countries" displays the zone's "Name in English" followed by "Name." For example, Sweden shows up in the dropdown as Sweden (Sverige). I don't want to display the "(Sverige)".

Last edit: 11 years 4 months ago by dynamicvitality.

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #118043

Hi,

Simply edit each zone via the menu System>Zones and enter the english name for both the english name field and the name field and the system will only display it once automatically.
Editing the code is not recommended as you will have to change it again each time you update.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 2
11 years 4 months ago #118918

This doesn't work for me because I also need to move the descriptive text from outside of the text boxes to the inside. Plus, it is less work for me to copy and paste code each update of hika than it is for me to go through over 1000 countries and states and manually switch the name to the English name. Could you please just point me to the file? I fully understand that it will require changing with each update.

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #118951

It is done in both administrator/components/com_hikashop/classes/field.php and administrator/components/com_hikashop/types/country.php files.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 2
11 years 4 months ago #118961

Great. Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum