Change search criteria?

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 2 reply threads
  • Author
    Posts
    • #90166
      James Simone
      Participant

      Hi – we’re located in Canada, but the default search criteria seems to be “State” and “Zip” (ie US-based).

      …how can I change it to its Canadian counterparts of “Province” and “Postal Code”?

      Thanks!

      James.

      Attachments:
      You must be logged in to view attached files.
    • #90182
      sdel_nevo
      Participant

      Hi James

      the easiest way I found was to change this with a translation plugin, loco translate works well

      Steve

    • #91107
      WCFM Forum
      Member

      Hi,

      Please add this code to your site –

      function wcfm_marketplace_custom_address_field( $address_fields ) {
      	if( isset( $address_fields['state'] ) ) { 
      	  $address_fields['state']['label'] = 'Province';
      	}
      	if( isset( $address_fields['zip'] ) ) { 
      	  $address_fields['zip']['label'] = 'Postal Code';
      	}
      	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' );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thank You

Viewing 2 reply threads
  • The topic ‘Change search criteria?’ is closed to new replies.