Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Two problems!
Tagged: Store Name, store page
- This topic has 14 replies, 2 voices, and was last updated 5 years, 9 months ago by vraugul1.
- AuthorPosts
- February 7, 2019 at 6:39 pm #47080vraugul1Participant
Hello, I bought a license “Ultimate” and “Group & Staff”
I have two problems.
Tell me how to solve them.
1. When registering a Vendor Store, in the line “Store Name” when I write the name in Russian letters, it gives this…”%d1%80%d1%83%d1%81%d1%81″
The screenshot shows.
And when I click “VISIT” in [wcfm_store], the store page doesn’t open.
How to fix?
2. How to remove “header” and “page-footer” on a particular store page?Thank you!
Attachments:
You must be logged in to view attached files. - February 8, 2019 at 5:28 am #47152vraugul1Participant
During registration, no “user_nicename” is created in the database, and the store page is not created on the vendor.
If you write manually for example “5”, then the link will appear “https://naenote.ru/vendor-stores/5/”
How to fix it?Thank!
Attachments:
You must be logged in to view attached files. - February 8, 2019 at 6:57 am #47167WCFM ForumMember
Hi,
All problems comes due to “Non English” store name.
Thank You
- February 8, 2019 at 7:00 am #47168vraugul1Participant
How to fix this?
The site is in Russia, and the names of the shops are Russian.
Please help me.Thanks for the quick response!
- February 8, 2019 at 8:00 am #47185WCFM ForumMember
Hi,
Understand, only solution will be – Store name can be in Russian, but not store slugs.
Please add this code to your child theme’s functions.php –
add_filter( 'wcfm_generated_store_slug', function( $store_slug ) { global $WCFM, $WCFMvm, $wpdb, $wcfm_membership_registration_form_data; if( isset( $_POST['wcfm_membership_registration_form'] ) ) { $wcfm_membership_registration_form_data = array(); parse_str($_POST['wcfm_membership_registration_form'], $wcfm_membership_registration_form_data); $wcfmvm_registration_static_fields = get_option( 'wcfmvm_registration_static_fields', array() ); $is_user_name = isset( $wcfmvm_registration_static_fields['user_name'] ) ? 'yes' : ''; if( !$is_user_name ) { $user_email = sanitize_email( $wcfm_membership_registration_form_data['user_email'] ); $username = sanitize_user( current( explode( '@', $user_email ) ), true ); $append = 1; $o_username = $username; while ( username_exists( $username ) ) { $username = $o_username . $append; $append++; } $wcfm_membership_registration_form_data['user_name'] = $username; } $store_slug = $wcfm_membership_registration_form_data['user_name']; } return $store_slug; }); add_filter( 'wcfm_is_allow_store_slug', '__return_false' );
Thank You
- February 8, 2019 at 8:13 am #47186vraugul1Participant
This code helped, Super!
You are the best!Thank you for your plugin and technical support!
- February 8, 2019 at 8:14 am #47187
- February 8, 2019 at 8:26 am #47193WCFM ForumMember
Hi,
You are welcome 🙂
How to remove “header” and “page-footer” on a particular store page?
– Well, CSS will be best for this purpose.Thank You
- February 8, 2019 at 8:32 am #47198vraugul1Participant
Where can I find the css of this page?
What is the principle (template) to create a store page?
Why in” header ” written blog?Thank you!
- February 8, 2019 at 8:32 am #47199vraugul1ParticipantThis reply has been marked as private.
- February 8, 2019 at 8:55 am #47211WCFM ForumMember
Hi,
Please add this CSS to your site –
.wcfmmp-store-page .page-title, .wcfmmp-store-page .woodmart-prefooter { display: none !important; }
Thank You
- February 8, 2019 at 9:12 am #47212vraugul1Participant
You really are the coolest!
Thank you for the best technical support! - February 8, 2019 at 9:14 am #47213vraugul1Participant
Can you tell?
Can me in another subject write? - February 8, 2019 at 9:16 am #47214WCFM ForumMember
We are checking that.
Thank You
- February 8, 2019 at 9:26 am #47219vraugul1Participant
Good
Thank you!
- AuthorPosts
- The topic ‘Two problems!’ is closed to new replies.