Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Show Vendor Location on Checkout
Tagged: checkout page, shipping location, show, vendor location
- This topic has 8 replies, 5 voices, and was last updated 4 years, 10 months ago by
Sushobhan.
- AuthorPosts
- April 6, 2020 at 11:32 pm #116056
contatoapp
ParticipantIs it possible to show the vendor’s location during checkout? That way clients can know where the product is coming from instead of going to the vendor’s page.
- April 9, 2020 at 9:45 pm #117368
contatoapp
ParticipantHi. Could someone help me? Thanks.
- April 12, 2020 at 12:27 pm #118324
WCFM Forum
MemberHi,
Do you want to show this all the time or only for “Local Pickup” shipping?
Thank You
- April 12, 2020 at 10:41 pm #118511
contatoapp
ParticipantHi. All the time if possible. Thank you.
- April 13, 2020 at 1:13 pm #118664
Suvopam Malakar
ParticipantDo you want to show this all the time or only for “Local Pickup” shipping?
Is it possible to enable it only for Local Pickup or all the time?
- April 16, 2020 at 10:22 pm #119854
contatoapp
ParticipantHi. Any updates on this? Thank you.
- April 22, 2020 at 6:31 pm #121832
Sushobhan
KeymasterHello,
Use the following snippet , it will add the vendor address below the store name. See the image- https://imgur.com/ZRNjEsgadd_filter( 'woocommerce_get_item_data', function( $cart_item_meta = array(), $cart_item ) { global $WCFM; $product_id = $cart_item['product_id']; if ( ! $product_id ) { $variation_id = sanitize_text_field( $cart_item['variation_id'] ); if ( $variation_id ) { $product_id = wp_get_post_parent_id( $variation_id ); } } $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); if( $vendor_id ) { $vendor_address = $WCFM->wcfm_vendor_support->wcfm_get_vendor_address_by_vendor( absint($vendor_id) ); if( !is_array( $cart_item_meta ) ) $cart_item_meta = (array) $cart_item_meta; $cart_item_meta = array_merge( $cart_item_meta, array( array( 'name' => 'Location', 'value' => $vendor_address ) ) ); } return $cart_item_meta; }, 60, 2 );
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/
Let me know how it goes.
Thanks! - April 22, 2020 at 10:13 pm #121947
Auhouse.ru
Participantcool
- April 23, 2020 at 11:06 am #122067
Sushobhan
KeymasterLet me know if there’s anything else we can help you with!
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- AuthorPosts
- You must be logged in to reply to this topic.