wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
00Day 04Hr 03Min 30Sec
wcfm-santa

Change text – State

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 19 reply threads
  • Author
    Posts
    • #68046
      kaloomee
      Participant

      Hi
      Looking to change language file
      From State to County
      UK has – Country > County > City/Town

      Thanks
      Kaloomee

    • #68048
      sdel_nevo
      Participant

      Hi Mate

      you can change this with Loco translate

      steve

    • #68080
      kaloomee
      Participant

      Thank you sdel_nevo
      Installed loco but unable to find the correct file to edit
      I have tried .po for
      WCFM – WooCommerce Frontend Manager – Only has ‘English (United States)’ have made edits but no frontend update.
      WCFM – WooCommerce Frontend Manager – Ultimate – No english file
      WCFM – WooCommerce Multivendor Marketplace – No english file

      Any further help much appreciated
      Regards
      Kaloomee

    • #68095
      sdel_nevo
      Participant

      Hi Mate

      attached is a screenshot, I created a UK version and changed the text
      but I’m guessing you could amend the USA version to your liking

      Steve

      Attachments:
      You must be logged in to view attached files.
    • #68109
      kaloomee
      Participant

      HI Steve
      Thank you for taking thime to help, Much appreciated
      I have created a new .po file and edited that text
      Can you tell me how to make that new language file the default langauge please
      I have looked in WClovers forum, documentation and knowledgebase but unable to find instructions
      Regards
      Kaloomee

    • #68115
      sdel_nevo
      Participant

      Hi mate

      This may sound odd but I’m not sure to be honest, I just created an new .po and changed the text and it worked
      I’m not sure if it picks up the default site setting

      I’m really sorry if that’s a pretty vague answer
      But I can’t remember setting it as the default language

      Steve

    • #68136
      kaloomee
      Participant

      Hi Steve

      Okay, Thank you for taking the time to reply, Muxh pprecited – I will have a tinker and see if I can work it out
      Kaloomee

    • #68370
      WCFM Forum
      Keymaster

      Hi,

      Which text you want to change?

      Please know me that list.

      Thank You

    • #68409
      kaloomee
      Participant

      Just wanted to change the text from ‘State’ to ‘County’
      UK has – Country > County
      Not Country > State

    • #68923
      WCFM Forum
      Keymaster

      HI,

      Please add this code to your child theme’s functions.php –

      function wcfm_marketplace_custom_address_field( $address_fields ) {
      	if( isset( $address_fields['state'] ) ) { 
      	  $address_fields['state']['label'] = 'County';
      	}
      	return $address_fields;
      }
      add_filter( 'wcfm_marketplace_settings_fields_address', 'wcfm_marketplace_custom_address_field' );
      add_filter( 'wcfm_membership_registration_fields_address', 'wcfm_marketplace_custom_address_field' );
      add_filter( 'wcfm_wcmarketplace_settings_fields_customer_support', 'wcfm_marketplace_custom_address_field' );

      Thank You

    • #69177
      kaloomee
      Participant

      Thank you but still shows as ‘State’ in
      WCFM > Shop dashboard > Shipping > Shipping Rates by Country

      Or is the called from Woocommerce?

      Please see attachment

      Attachments:
      You must be logged in to view attached files.
    • #69779
      WCFM Forum
      Keymaster

      Hi,

      Please add this code as well –

      function wcfm_custom_2406_translate_text( $translated ) {
      	$translated = str_ireplace( 'State', 'County', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_2406_translate_text');
      add_filter('ngettext', 'wcfm_custom_2406_translate_text');

      Thank You

    • #69998
      kaloomee
      Participant

      Thank you – Now working
      It may well have been my error
      I have WP multisite and add code using the ‘snippets’ plugin
      I did not have that code set to network enabled – As soon as I figured this out and set to ‘Shared on network’ then enabled on that particular site – It all worked
      Adding this here in case it helps others
      Thank you again for your great support, Much appreciated

      Kaloomee

    • #70244
      WCFM Forum
      Keymaster

      Thank you for sharing the information 🙂

    • #82727
      Gary Funk
      Participant

      since it relates and further to this post, how do we also change the labels for

      Postcode/Zip to Postal Code

      also is there a way to REMOVE country completely OR make it so its not actually a drop down and just shows my country?

      Thanks!

    • #82920
      WCFM Forum
      Keymaster

      HI,

      Use this revised function –

      function wcfm_custom_2209_translate_text( $translated ) {
      	$translated = str_ireplace( 'State', 'County', $translated );
      	$translated = str_ireplace( 'Postcode/Zip', 'Postal Code', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_2209_translate_text');
      add_filter('ngettext', 'wcfm_custom_2209_translate_text');

      also is there a way to REMOVE country completely OR make it so its not actually a drop down and just shows my country?
      – Restrict countries form wp-admin -> WooCommerce -> Setting – https://ibb.co/Tkh1nhR

      Thank You

    • #83227
      Gary Funk
      Participant

      thanks, only problem is it changes all instances of the word State so

      Statement became Provincement

      how to solve that?

      thanks

    • #83228
      Gary Funk
      Participant

      also for the country I have set the country there already but it still shows as a drop down for just one country… i would like to just remove the field completely or at minimum get rid of the drop down?

      thanks!

    • #83229
      Gary Funk
      Participant

      also i sorted out the state issue had to put in state/county and statement no longer gets replaced.

      do plugins like saywhat not work with wcfm?

      thanks
      John

    • #83787
      WCFM Forum
      Keymaster

      HI,

      You may check compatible plugins’ list – https://wclovers.com/wcfm-compatible-plugins/

      Thank You

Viewing 19 reply threads
  • You must be logged in to reply to this topic.