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, 6 months ago by Sushobhan.
- AuthorPosts
- April 6, 2020 at 11:32 pm #116056contatoappParticipant
Is 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 #117368contatoappParticipant
Hi. Could someone help me? Thanks.
- April 12, 2020 at 12:27 pm #118324WCFM ForumMember
Hi,
Do you want to show this all the time or only for “Local Pickup” shipping?
Thank You
- April 12, 2020 at 10:41 pm #118511contatoappParticipant
Hi. All the time if possible. Thank you.
- April 13, 2020 at 1:13 pm #118664Suvopam MalakarParticipant
Do 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 #119854contatoappParticipant
Hi. Any updates on this? Thank you.
- April 22, 2020 at 6:31 pm #121832SushobhanKeymaster
Hello,
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 #121947Auhouse.ruParticipant
cool
- April 23, 2020 at 11:06 am #122067SushobhanKeymaster
Let 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.