Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Getting tired of issues
- This topic has 5 replies, 3 voices, and was last updated 4 years, 6 months ago by Sushobhan.
- AuthorPosts
- May 13, 2020 at 3:14 pm #130383HenrietteParticipant
Hi,
I’m sorry to say this but I’m getting a little tired of all the issues I’m facing.
Previous issues are not even resolved yet or another appears.
Looks like one step foreward and two steps back all the time.Trying not to bother you again I just spent another 1,5 hours to figure out how to delete the store address behind the local pickup option in the cart.
It looks ugly with no spaces and commas whatsoever and in a total wrong order.
I really don’t understand whats the use of this because vendor can add store address everywhere; in store header, in About tab, in Store Invoice.
So why this overkill of putting it again after the local pickup option?I searched in woocommerce cart.php files and the only way to remove vendor address is to remove the whole label in woocommerce shipping-cart.php file.
Somehow this must has to do also with WCFM because otherwise how can store address that vendor adds in his dashboard be a part of this label?It would be very appreciative if you would help me remove this.
Please see attachment.
Thank youAttachments:
You must be logged in to view attached files. - May 15, 2020 at 5:55 pm #131384HenrietteParticipant
Hi Team, any news on this?
I know you extra busy right now but to be honest I think it’s fair to handle open topics first before answering to much newer ones. - May 15, 2020 at 10:11 pm #131490SushobhanKeymaster
Hi,
Please use the following snippet-add_filter('wcfmmp_local_pickup_shipping_option_label', function($label) { return trim(explode("(", $label)[0]); });
Add this code to your child theme’s functions.php
In case you do not have a child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how this goes.
Thanks! - May 15, 2020 at 10:55 pm #131494Auhouse.ruParticipant
A good feature, there is only a comment, how to display the streets, cities and countries not in a heap, but with spaces and commas?
Attachments:
You must be logged in to view attached files.- May 16, 2020 at 10:44 am #131685SushobhanKeymaster
Hi,
In that case, you can use this modified snippet-add_filter( 'wcfmmp_local_pickup_shipping_option_label', function($label, $user_id) { if ( wcfm_is_vendor( $user_id ) ) { $store_user = wcfmmp_get_store( $user_id ); $address = $store_user->get_address_string(); if($address) return trim( explode( "(", $label )[0] ) . ' (' . $address . ')'; return trim( explode( "(", $label )[0] ); } return $label; }, 10, 2 );
Add this code to your child theme’s functions.php
In case you do not have a child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how this goes.
Thanks!
- May 16, 2020 at 7:59 am #131645HenrietteParticipant
Let me know how this goes.
Perfect! Thank you @sushobhan
- AuthorPosts
- You must be logged in to reply to this topic.