Forum Replies Created

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • Saif
    Participant

    Hi Anna,

    Thanks for your reply. Can you please check below code? looks like I have fixed myself. So not sure that is correct code or not. I filled Vendor billing and shipping data under user profile and it seems like working fine. Please check below code and see my Order summary screenshot.

    add_action( 'woocommerce_add_order_item_meta', 'bwd_add_vendor_to_order_item_meta', 10, 2);
    function bwd_add_vendor_to_order_item_meta( $item_id, $cart_item) {		
    		$vendor_id = $cart_item[ 'data' ]->post->post_author;
    		// build up address 
    		$address1 			= get_user_meta( $vendor_id , 'billing_address_1', true );
    		$address2 			= get_user_meta( $vendor_id , 'billing_address_2', true );
    		$city	 			= get_user_meta( $vendor_id , 'billing_city', true ); 
    		$store_postcode		        = get_user_meta( $vendor_id , 'billing_postcode', true ); 
                    $state		                = get_user_meta( $vendor_id , 'billing_state', true ); 
    		$address 			= ( $address1 != '') ? $address1 .', ' . $city .', ' . $state.', '. $store_postcode :''; 
    	
    	wc_add_order_item_meta( $item_id, apply_filters('wcvendors_sold_by_in_email', __('Address', 'wcvendors')), $address);
    }
    add_action( 'woocommerce_add_order_item_meta', 'email_add_vendor_to_order_item_meta', 10, 3);
    function email_add_vendor_to_order_item_meta( $item_id, $cart_item) {		
                   $vendor_id            = $cart_item[ 'data' ]->post->post_author;
                   $email_vendor 	= get_userdata( $vendor_id )->user_email;
           wc_add_order_item_meta( $item_id, apply_filters('wcvendors_sold_by_in_email', __('Email', 'wcvendors')), $email_vendor);
    }

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    Hope you are well. I think you are busy as I have not heard anything from you. So I updated James and Anne profile and added their billing and shipping address but unfortunately no address is displaying on Order summary page and email.

    See attached screenshot. Can you please kindly help as I am about to go LIVE.

    I will look forward to hear from you soon.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    I am very sorry to bother you again. I have a presentation to client on this Saturday. Is this possible if you update the code. Please I want to finish this project as it took so long.

    I appreciate your help.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    Thanks for your quick response. Can you please kindly update the code for me? I can update Vendor documentation so then when Vendor sign they can fill the Shipping and Billing address. So if shipping address and billing address are different which address it will display in Email and Order summary page.

    Please help me.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    Hope you are well. Can you please tell me ETA for this issue as my client is asking? We need to go LIVE soon. Please let me know.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    Hope you are well. Sorry to bother you. Just following up. I noticed that I logged this task in WC Vendors PRO support.

    Actually initially I was using WC Vendors Pro plugin but then my theme author said I dont need as his them only support free version. See my theme https://themeforest.net/item/food-delivery-restaurant-directory-wordpress-theme-foodpicky/17966079. It has builtin WC Vendors Free.

    Do you want me move this thread to FREE support or you can do it. Anyways I need the code to work on free version. Can you please tell me when you update the code.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    Thanks for your quick response. There is a bug I found and spent hours and hours to figure out. For some reason, after placed order Vendor address is showing wrong in Order Summary page and Email. See attached Screenshot 2. I checked Vendor profile and it is showing different address. See screenshot 1. Then I searched entire database and found the old address entry. See attached screenshot 3.

    Just for your information, currently I am using WC Vendors FREE version. Initially when I started building my website I was using WC Vendors Pro version so I activated again and then went to user profile and found old address. See attached screenshot 4.

    I think your code is for WC Vendors Pro, can you please update your code so it will show correct Vendor store address. Also can you fix the extra line spacing. See attached Screenshot 2, it is showing extra line space under Vendor details.

    I will look forward to hear from you soon.

    Regards,
    Saif

    Saif
    Participant

    Dear Anna,

    Hope you are well. It has been long time to talk. Finally we are going to LIVE and I did final testing. The address is showing fine on Order Summary page bu tin email it is showing in one line along with Vendor name. Is it possible if you update your code form Email so Vendor name, Vendor address and Vendor email address shows in seperate line.

    See attached screenshot.

    I will look forward your soonest reply.

    Regards,
    Saif

    Saif
    Participant

    Dear Anna,

    You are so cool. Tell me what can I do for you? I am so impressed for your work. Thank you very much for your help. In my last email, I was trying to attach functions.php file but I guess your system denied. So I attached screenshot fro my test order summary page. Have a look.

    It is working absolutely fine. I am getting email with Vendor address as well.

    Once again, good on you. Now I can launched the site and hand over to client.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    I attached function.php file in ZIP format. Can you please check and let me know I placed in the correct location.

    Thanks for the advise for child theme. I have already took backup.

    Waiting for quick reply.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    You are great. Thanks for your help. Just wondering, I added code under wp-content/themes/foodpicky/functions.php folder and it doesnot work.

    Can you please tell me where I have to add exactly this code? I think it should be under wp-content/plugins/woocommerce/templates/. I am not sure.

    If you go to https://www.wcvendors.com/help/topic/show-vendor-address-on-cart-for-local-pickup-option/ article , Patrick mentioned. I also followed this but it didnot work. Please help me.

    Regards,
    Saif

    Saif
    Participant

    Dear Author,

    Can you please advise me? I launched my site. Have a look at https://gourmairs.com/ but client is not happy. As it doesnot show Vendor address on Checkout page. Can you please help me? It shows Vendor name on Checkout page so why not display Vendor address. Please help.

    Regards,
    Saif

    Saif
    Participant

    Dear Anna,

    Do you have any updates. My site is almost finished. Have a look at https://gourmairs.com/shoaib/

    I need to display Local Pickup address at Checkout page and order page. You said you are working on that. Can you please help me?

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    Hope you are well. Do you have any updates?

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    You are great. Thanks for your reply. My site is nearly finished. I am not using WC Vendors PRO as all my necessary things are fulfill by using WC Vendors FREE plugin. Have a look my site at https://gourmairs.com/shoaib/

    I also finished LIVE transaction. The only thing I am waiting for Local Pickup Seller store address to display on Checkout page and also on Order Summary page. The checkout page shows the store name so I am sure there is a way to display Store address as well. If you need my website FTP details please let me know.

    Regards,
    Saif

    Saif
    Participant

    Dear Author,

    Can you please reply? I need to resolve this issue.

    Regards,
    Saif

    Saif
    Participant

    Hi Anna,

    I am waiting for my previous message. I fixed “Pro Dashboard Page: ✕ -Your pro dashboard page cannot be set to your free dashboard page. Click here to change” issue.

    Can you please help me my main issue that I want to display Vendor store address on Checkout and order summary page as shown in previous attached screenshot. Please help me.

    Regards,
    Saif

    Saif
    Participant

    Dear Anna,

    Thanks for your reply. How to I fix “Pro Dashboard Page: ✕ -Your pro dashboard page cannot be set to your free dashboard page. Click here to change” issue and why I am getting this.

    In regards to Vendor address, I know Pro Dashboard have option to enter Store address. My question is how to display Store address at Checkout page and Order summary page. Both pages show the product name and Sold by Storename which is fine then why not show vendor store address just under Shipping Method. See attached screenshot. I added message in the backend Local Pickup from Chef store and you can see in the screenshot and it also displays Sold by Store name but there is no link to Storename.

    How can I display Vendor address just after Shipping method? Of if it is not possible then how can I like Storename to Store page. In store page customer can find the store address.

    Please help me. I know it can achieve ny editing order-details.php or other PHP files.

    REgards,
    Saif

Viewing 18 posts - 1 through 18 (of 18 total)