Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Setting page error
- This topic has 27 replies, 2 voices, and was last updated 5 years, 9 months ago by Mustafa.
- AuthorPosts
- March 7, 2019 at 9:46 am #51512MustafaParticipant
Hi,
When I navigate to the setting page (https://website.com/store-manager/settings/) it is blank! After enable debug mode I see the following error:Fatal error: Uncaught Error: Call to a member function get_cities() on null in /home/company1/public_html/wp-content/plugins/wc-frontend-manager/core/class-wcfm-library.php:428 Stack trace: #0 /home/company1/public_html/wp-content/plugins/wc-frontend-manager/core/class-wcfm-frontend.php(884): WCFM_Library->load_scripts(‘wcfm-settings’) #1 /home/company1/public_html/wp-includes/class-wp-hook.php(286): WCFM_Frontend->wcfm_scripts(”) #2 /home/company1/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/company1/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/company1/public_html/wp-includes/script-loader.php(2463): do_action(‘wp_enqueue_scri…’) #5 /home/company1/public_html/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts(”) #6 /home/company1/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #7 /home/company1/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #8 /home/company1/public_html/wp-includ in /home/company1/public_html/wp-content/plugins/wc-frontend-manager/core/class-wcfm-library.php on line 428
- March 7, 2019 at 9:53 am #51515MustafaParticipant
It is fixed after remove this filter
add_filter(‘wcfmmp_city_select_dropdown_enabled’, ‘__return_true’ );But this disabled shipping by city
- March 7, 2019 at 9:56 am #51516WCFM ForumMember
Hi,
Yeah right, but there was a special plugin for this. Possibly you had disabled that by mistake. Kindly check.
Thank You
- March 10, 2019 at 6:55 am #51811MustafaParticipant
Is it the “WC City Select” plugin?
- March 10, 2019 at 7:03 am #51816WCFM ForumMember
Right, this is the plugin.
- March 11, 2019 at 7:14 am #51961MustafaParticipant
I don’t want to use that plugin and I’ve added cities using code below and made select field searchable so user can easily find their city:
/** * Change the checkout city field to a dropdown field. */ function change_city_to_dropdown( $fields ) { $city_args = wp_parse_args( array( 'type' => 'select', 'options' => array( 'city1' => 'city1', 'city2' => 'city2' ), 'input_class' => array( 'wc-enhanced-select', ) ), $fields['shipping']['shipping_city'] ); $fields['shipping']['shipping_city'] = $city_args; $fields['billing']['billing_city'] = $city_args; wc_enqueue_js( " jQuery( ':input.wc-enhanced-select' ).filter( ':not(.enhanced)' ).each( function() { var select2_args = { minimumResultsForSearch: 5 }; jQuery( this ).select2( select2_args ).addClass( 'enhanced' ); });" ); return $fields; } add_filter( 'woocommerce_checkout_fields', 'change_city_to_dropdown' );
How can those cities that were added as a checkout field be supported in WCfM shipping?
Regards,
- March 11, 2019 at 8:36 am #51977WCFM ForumMember
Hi,
Well, this is only for WC Checkout, certainly it has no effect on Shipping setting.
Better use that plugin and enable using filter – add_filter(‘wcfmmp_city_select_dropdown_enabled’, ‘__return_true’ );
Thank You
- March 11, 2019 at 8:57 am #51985
- March 11, 2019 at 9:04 am #51994WCFM ForumMember
Hi,
Well, that field become searchable select box only because of this custom code –
wc_enqueue_js( " jQuery( ':input.wc-enhanced-select' ).filter( ':not(.enhanced)' ).each( function() { var select2_args = { minimumResultsForSearch: 5 }; jQuery( this ).select2( select2_args ).addClass( 'enhanced' ); });" );
Now, you may add those anywhere to make that city field searchable!
Thank you
- March 11, 2019 at 9:13 am #51996MustafaParticipantThis reply has been marked as private.
- March 11, 2019 at 4:54 pm #52085WCFM ForumMember
Hi,
When user navigate to the checkout page and select their state, the city field does not refresh and not active and I have to refresh the entire page to take effect.
Your custom code was also not work like this, then how solve this?
Between, are you using this city plugin ? https://wordpress.org/plugins/wc-city-select/
Thank You
- March 11, 2019 at 5:36 pm #52101MustafaParticipant
The custom code was working but was not linked to states. I removed the custom code and now using this plugin
https://wordpress.org/plugins/wc-city-select/How can I resolve this issue?
- March 12, 2019 at 4:10 am #52179WCFM ForumMember
Well, this plugin supports state wise city list.
Do you have configured this correctly? Please re-check.
Thank You
- March 12, 2019 at 5:54 am #52200MustafaParticipant
I have double checked many times but same issue. Please support.
- March 13, 2019 at 5:51 am #52380MustafaParticipantThis reply has been marked as private.
- March 13, 2019 at 6:11 am #52384WCFM ForumMember
OK, send me. I will take a look at it.
Thank You
- March 13, 2019 at 6:41 am #52388MustafaParticipantThis reply has been marked as private.
- March 13, 2019 at 10:29 am #52418MustafaParticipantThis reply has been marked as private.
- March 17, 2019 at 4:47 am #53044MustafaParticipant
Still waiting for your support.
- March 17, 2019 at 8:45 am #53086WCFM ForumMember
HI,
Please, look into attached issue as well in the profile page edit. (See attached)
– Is this resolve for you after latest update ?
Thank You
- March 17, 2019 at 10:03 am #53097MustafaParticipant
The profile issue is resolved after the latest update. Thanks!
What about the wp city list?
- March 18, 2019 at 6:12 am #53184MustafaParticipant
Any update on wp city list issue? Please check
- March 18, 2019 at 10:11 am #53253WCFM ForumMember
We are checking this, I will know you soon!
Thank You
- March 18, 2019 at 12:52 pm #53287MustafaParticipant
Good to know. Please, expedite the fix 🙂
- March 19, 2019 at 3:22 pm #53526WCFM ForumMember
I am updating you over email.
- March 19, 2019 at 3:43 pm #53529WCFM ForumMember
Please check now!
- March 20, 2019 at 5:30 am #53611MustafaParticipant
Still issue is there.
- March 25, 2019 at 5:53 am #54403MustafaParticipant
Any update please?
- AuthorPosts
- The topic ‘Setting page error’ is closed to new replies.