Home Forums WC Vendors Pro Support Show vendor address on cart for local pickup option

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #62955
    Pedro
    Participant

    Hello, does anyone know a way to display the vendor address on the cart page, preferably close to the local pickup option? I saw this reference on internet but I guess is not adapted for WC Vendors Pro:

    https://wordpress.org/support/topic/showing-vendor-address-in-checkout-or-view-cart/

    Thanks in advance. Regards
    Pedro

    #62973
    patrick
    Participant

    You might be able to modify this

    ADD MORE SELLER INFO

    Added vendor detials on order page including phone and email.
    Detials:https://www.wcvendors.com/help/topic/vendors-details-in-order_details_customer-php/

    From: Create child pages from:
    wp-content/plugins/woocommerce/templates/order/order-details.php
    wp-content/plugins/woocommerce/templates/order/order-details-customer.php

    To:
    rtheme/woocommerce/order/order_details.php
    rtheme/woocommerce/order/order_details-customer.php)

    Added this code to order_details-customer.php:

    <!-- datos del vendedor -->
    
    get_items() as $item_id => $item ) { ?>
    
    user_email;
    $vendor_name = WCV_Vendors::is_vendor( $vendor_id ) ? sprintf( WCV_Vendors::get_vendor_sold_by( 
    
    $vendor_id ) ): get_bloginfo( 'name' );
    $vendor_phone = get_user_meta($vendor_id, 'billing_phone', true);
    $vendor_details = ' Vehicle: ' . $product_name . '  Seller: '.$vendor_name . ' Email: ' . 
    
    $vendor_email . ' Phone: ' .$vendor_phone;
    echo $vendor_details;
    ?>
    
    <!-- /datos del vendedor -->
    
    And added this code to order_details.php:
    <?php wc_get_template( 'order/order-details-customer.php', array( 'order' =>  $order, 'item' => 
    
    $item  ) ); ?>
    #63302
    Pedro
    Participant

    Thank you very much Patrick. I will see what I can do.

    I found also this thread:

    Kind regards
    Pedro

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.