Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › add vendor's phone at checkout page
Tagged: checkout page, vendor's phone
- This topic has 3 replies, 2 voices, and was last updated 4 years, 5 months ago by Sarmistha Chakraborty.
Viewing 2 reply threads
- AuthorPosts
- June 2, 2020 at 11:28 am #137581emmagrimbergParticipant
Hi,
how can I add a vendor’s phone at checkout page? - June 3, 2020 at 12:07 pm #137927Sarmistha ChakrabortyMember
Hello,
Where you want to display the vendor’s phone number in the checkout page?
Please be advised in one order can have multiple vendor’s products.Thanks.
- June 3, 2020 at 12:12 pm #137934emmagrimbergParticipantThis reply has been marked as private.
- June 4, 2020 at 7:43 pm #138392Sarmistha ChakrabortyMember
Hello,
You can add Store phone number before store name –
add_action('after_wcfmmp_sold_by_label_cart_page',function($vendor_id, $product_id){ $store_user = wcfmmp_get_store( $vendor_id ); $phone = $store_user->get_phone(); echo '<br/>Store Phone :'.$phone; },50,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/
Thanks.
- AuthorPosts
Viewing 2 reply threads
- You must be logged in to reply to this topic.