WCMp Advanced Frontend Manager
-
AuthorPosts
-
-
June 24, 2021 at 8:40 PM #123698DragNfLyParticipant
Hi,
I have Vendor Shipping enabled, but do not want the Vendor to have access to Dashboard > Sore Settings > Shipping menu. I need this to be only for admin to set shipping zones for each vendor.
If I Disable Vendor Shipping then the Vendor does not have access to the Product > Shipping > Weight and Dimensions options.
Can you please assist with code to remove the Shipping Menu from the Vendor Dashboard.
I tried the code from this Support topic but it does not work > https://multivendorx.com/support-forum/topic/remove-shipping-from-side-menu/#post-78594
Kind regards,
Dale -
June 25, 2021 at 7:36 PM #123737NerdySupportExpert MoumitaKeymaster
Dale, please use this code :
add_filter('wcmp_vendor_dashboard_nav', 'callback_wcmp_vendor_dashboard_nav', 99); function callback_wcmp_vendor_dashboard_nav($vendor_nav){ unset($vendor_nav['vendor-shipping']); // for shipping return $vendor_nav; }
Copy -
June 25, 2021 at 7:59 PM #123741Raju The Cool GuyKeymaster
Hi,
Disable shipping option from the general settings. Then useadd_action('wcmp_disabled_product_shipping_tab', '__return_false');
Copythis code to access shipping tab from product.
Thanks -
June 26, 2021 at 6:09 PM #123821DragNfLyParticipant
Perfect thanks Raju
-
June 26, 2021 at 6:11 PM #123822Raju The Cool GuyKeymasterThis reply has been marked as private.
-
September 13, 2021 at 6:06 PM #127513DragNfLyParticipant
Hi Raju,
My setup has changed and I now have Vendor Shipping enabled as I need Vendors to choose either ‘Free Shipping’ or ‘Local Pickup’ as options when I have only “Vendor Shipping” enabled as a WooCommerce Shipping method.
How do I remove the ‘Flat Rate’ option from the Vendor Dashboard > ‘Store Settings’ > ‘Shipping’ > ‘Zones’ > ‘Add Shipping Method’ popup menu options as depicted in the attached pic?
I look forward to hearing from you.
Kind regards,
Dale -
September 14, 2021 at 6:25 PM #127583MVX Support NinjaKeymaster
Hi,
Please add this code in the function.php of the current active theme :add_filter( 'wcmp_vendor_shipping_methods', 'wcmp_remove_flatrate' ); function wcmp_remove_flatrate( $shipping_methods ) { unset( $shipping_methods['flat_rate'] ); return $shipping_methods; }
CopyRegards,
-
September 14, 2021 at 11:12 PM #127608DragNfLyParticipant
Fantastic, thank you so much.
You can close the ticket again.
#AllTheBest
-
September 15, 2021 at 12:12 AM #127609DragNfLyParticipant
Oh sorry, one more thing.
How do I change the wording of “Free shipping” to “Free national shipping” on the popup menu?
Kind Regards,
-
September 15, 2021 at 12:44 PM #127614MVX Support NinjaKeymaster
Hi DragNfly,
Our answers are in line with yours.
Using the loco plugin you can change the strings are per your need (Loco Translate – WordPress plugin | WordPress.org )
You can go through this documentation for a better understanding of the flow :
https://multivendorx.com/knowledgebase/wcmp-translation-guide/ -
September 15, 2021 at 3:36 PM #127618DragNfLyParticipant
Hi Ninja,
Why does WCMp not have a en_US.po language file that can be edited with POEDIT http://www.poedit.net/ like WooCommerce and most high-end plugins?
Adding another plugin to do these translations seems like overkill.
Kind regards,
Dale -
September 15, 2021 at 4:16 PM #127620DragNfLyParticipant
Hi Ninja,
I have installed the plugin and translated a phrase in the WCMp Dashboard which works fine. I am however unable to find the “Free shipping” text that translates that pop=up menu text. I found 1 instance of Free Shipping which i translated to my preferred text although this does not target the Pop-up.
Where do I change the wording of “Free shipping” to “Free national shipping” on the popup menu?
Kind regards,
Dale -
September 16, 2021 at 3:19 AM #127645DragNfLyParticipant
… it is a WooCommerce field. I managed to update the text with POEDIT and the WooCommerce language file located in the ‘/wp-content/languages/plugins/’ folder. I managed to create the .mo file with POEDIT and I am able to Update with POEDIT so all is good thanks.
Why does WCMp not keep the language file with the other plugin language files?
Kind regards,
Dale -
September 16, 2021 at 8:04 PM #127704NerdySupportExpert MoumitaKeymaster
Dale, generally the translation plugins are used to translating a whole site into the user’s desired language.
That is why we provided support of WooCommerce’s string, so the user doesn’t need to translate them again.
-
September 16, 2021 at 10:04 PM #127719DragNfLyParticipant
OK thanks Moumita,
I have managed to do my translations.
I just think the language file should be located with all the other plugin language files > in the ‘/wp-content/languages/plugins/’ folder.Perhaps in a future update.
All the best.
Kind regards,
Dale -
September 17, 2021 at 6:04 PM #127755NerdySupportExpert MoumitaKeymaster
Sure Dale, we have notified the team.
-
-
AuthorPosts
The topic ‘Enable Vendor Shipping Options’ is closed to new replies.