add vendor's phone at checkout page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 2 reply threads
  • Author
    Posts
    • #137581
      emmagrimberg
      Participant

      Hi,
      how can I add a vendor’s phone at checkout page?

    • #137927

      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.

    • #137934
      emmagrimberg
      Participant
      This reply has been marked as private.
      • #138392

        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.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.