• Resolved Jai

    (@trimastir)


    in shop page
    customer click one vendor right side the vendor product will display

    remaining vendor will hide???

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter Jai

    (@trimastir)

    how to show vendor name, city, pincode in product archieve shop page

    please help me regarding this

    Hi @trimastir, can you please share a screenshot of this: “customer click one vendor right side the vendor product will display”, so we can help you out further.

    Now, in order to show vendor’s name, city, pin code etc, you have to do some custom code. If you need reference of hook/filter let us know.

    Thread Starter Jai

    (@trimastir)

    show vendor’s name, city, pin code

    in product archive page send me the custom code

    Thread Starter Jai

    (@trimastir)

    vendor hide ref image link

    https://ibb.co/kJwU3U

    @trimastir, In order to display vendor’s name, city, pin code, add the following code in the function.php of the current active theme :

    add_filter('wcmp_sold_by_text', 'test_func', 10, 2);
    function test_func($text, $post_id) {
    $vendor = get_wcmp_product_vendors($post_id);
    $city = get_user_meta($vendor->id, '_vendor_city', true);
    $pin = get_user_meta($vendor->id, '_vendor_postcode', true);
    $new_text = 'City: ' . $city . ' ' . 'Pin: ' . $pin . ' ' . $text;
    return $new_text;
    }

    Regarding the Vendor Hide reference menu, are you asking that when the customer will click on the vendor’s name under More Offer tab (https://prnt.sc/kmqf46):https://wcmpdemos.com/WCMp/product/album-2/

    If you are referring to something else, please share the page url and screenshot of the modification you are looking for.

    Thread Starter Jai

    (@trimastir)

    its working fine thanks

    but it showing in oneline

    i need to show it as a separate line as per the below order

    1. vendor name :

    2. city :

    3. pincode :

    how to show this ???

    how to remove the sold by text in that page

    it will be really helpful for me

    i need to display these details after the product short description

    • This reply was modified 6 years, 3 months ago by Jai.
    • This reply was modified 6 years, 3 months ago by Jai.
    • This reply was modified 6 years, 3 months ago by Jai.
    • This reply was modified 6 years, 3 months ago by Jai.
    Thread Starter Jai

    (@trimastir)

    any update on my query
    its very urgent

    please help me regarding this

    Hi @trimastir, use this following code :

    add_filter('wcmp_sold_by_text', 'test_func', 10, 2);
    function test_func($text, $post_id) {
    	return 'Vendor Name: ';
    }
    
    add_filter('after_sold_by_text_shop_page', 'test_func1', 10, 1);
    function test_func1($vendor) {
    	$city = get_user_meta($vendor->id, '_vendor_city', true);
    	$pin = get_user_meta($vendor->id, '_vendor_postcode', true);
    	$html = '';
    	$html .= '<p><label>City: </label><span>'.$city.'</span></p>';
    	$html .= '<p><label>Pin: </label><span>'.$pin.'</span></p>';
    	echo $html;
    }
    Thread Starter Jai

    (@trimastir)

    thanks for your code it will worked well………..

    You are welcome @trimastir

    Thread Starter Jai

    (@trimastir)

    i added a location field in vendor registration

    how to display this field in vendor store information

    also i need to display this field in shop page as discussed later

    how to show newly added field ???

    Thread Starter Jai

    (@trimastir)

    when i edit vendor from wcmp menu

    it will not showing newly added vendor registration field

    Thread Starter Jai

    (@trimastir)

    update the solution of my query

    @trimastir, we save the information provided by the vendor in their user_meta. Hence you can fetch that to display. This support thread might help you out further – https://wc-marketplace.com/support-forum/topic/add-name-in-registration-form/#post-27943

    Thread Starter Jai

    (@trimastir)

    i already added the Location field in the vendor registration page

    in vendor store settings page location field not show, how to add that field

    i need to show the location field in the woocommerce shop archive page

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘hide vendor’ is closed to new replies.