Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Change search criteria?
Tagged: change search criteria
- This topic has 2 replies, 3 voices, and was last updated 5 years ago by WCFM Forum.
Viewing 2 reply threads
- AuthorPosts
- November 1, 2019 at 10:40 pm #90166James SimoneParticipant
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. - November 2, 2019 at 1:20 am #90182sdel_nevoParticipant
Hi James
the easiest way I found was to change this with a translation plugin, loco translate works well
Steve
- November 6, 2019 at 4:23 pm #91107WCFM ForumMember
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
- AuthorPosts
Viewing 2 reply threads
- The topic ‘Change search criteria?’ is closed to new replies.