• Resolved steffanorampoldi

    (@steffanorampoldi)


    I want to show the region of the store in the single product so that the user when adding the product to the cart knows before where his product will come from. I would love it to show up in the “Sold by” “Advanced” Template.

    Thank you very much.
    PS: It is the most extraordinary plugin I have used.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Add this snippet to your site –

    add_action('after_wcfmmp_sold_by_label_single_product', function( $vendor_id ) {
    	$store_user        = wcfmmp_get_store( $vendor_id );
    	$address  = $store_user->get_address_string();
    		
    	if( $address ) {
    		echo '<div class="wcfm-clearfix"></div>';
    		echo $address;
    		echo '<div class="wcfm-clearfix"></div>';
    	}
    });

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin – https://wordpress.org/plugins/code-snippets/

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.