Viewing 9 replies - 1 through 9 (of 9 total)
  • With WC Vendors Pro, yes! ??

    Thread Starter dassoubarna

    (@dassoubarna)

    I have checked the features list of the Pro but that is not there. I want the vendor address to add to the woocommerce’s default New Order email notification. I am using Email Customizer plugin.

    Thread Starter dassoubarna

    (@dassoubarna)

    Is it possible to use any kind of hook to display Seller Info in the item just below the “Sold By”?
    Then I may add the address in the Seller Info and display it in the Sold By.

    You would have to hook into the WooCommerce New Order email and send the data there for it. This is a custom action you would code.

    You can change the sold by of course, check wcvendors.com/kb/ for info on changing or removing the sold by.

    Thread Starter dassoubarna

    (@dassoubarna)

    I tried this to show the seller info in the single product page just below the Sold By:

    add_action( 'woocommerce_product_meta_start', array( 'WCV_Vendor_Shop', 'seller_info_tab' ));

    Please post on our forums, or here, but not both. Thanks.

    Thread Starter dassoubarna

    (@dassoubarna)

    Ok.. Thanks.. I’ll post in the forum.

    Thread Starter dassoubarna

    (@dassoubarna)

    Success at last:
    Sharing here for others

    add_action( 'woocommerce_add_order_item_meta', 'majemedia_save_item_sku_order_itemmeta', 10, 3 );
    function majemedia_save_item_sku_order_itemmeta( $item_id, $values, $cart_item_key ) {
    
            $item_sku  =  get_post_meta( $values[ 'product_id' ], '_sku', true );
    		$post_data = get_post( $values['product_id'] );
    		$seller_info = get_user_meta( $post_data->post_author, 'pv_seller_info', true );
    
            wc_add_order_item_meta( $item_id, 'Address:', $seller_info , false );
    
    }

    Great use of the woocommerece_add_order_item_meta action. Well done. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Vendor Address in Order and Invoice’ is closed to new replies.