WCMp bundle is available at a slashed price

Grab It Now

Invoice requires vendor name (part 2)

Invoice requires vendor name (part 2)2019-03-18T07:44:52-05:00

Home Support Forum WCMp PDF Invoice Invoice requires vendor name (part 2)

WCMp PDF Invoice

Invoice requires vendor name (part 2) Open

  • Author
    Posts
  • Matt
    Participant
    Post count: 21

    Hi there,
    I’m following up on the previous submitted ticket (https://wc-marketplace.com/support-forum/topic/invoice-requires-vendor-name-display-issues/) as I’m still having issues with this. The “Vendor” name is not displaying, and in its place is the website companies name (Riviera Cbay). Can you please tell me how I can display the vendors name (person selling/attached to product) and address in the invoice.

    I have the following in my child theme:
    /wcmp-pdf-invoices/wcmp_pdf_invoice_second_template.php

    The above file shows:

    <p class="invoice-text"><strong><?php _e('Sold By:', 'wcmp-pdf_invoices'); ?> <?php echo $WCMp_PDF_Invoices->utils->company_name($user_id, 'vendor', $order) ?></strong></p>

    Attachments:
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    Hello,

    Thanks for your query. Kindly use the code below to display vendor name instead of company name

    
    if($user_type == 'customer'){
                       $vendor_info = get_user_by("ID", $user_id);
                       ?>
                       <p class="invoice-text"><strong><?php _e('Sold By:', 'wcmp-pdf_invoices'); ?> <?php echo $vendor_info->data->display_name; ?></strong></p>
    
  • Matt
    Participant
    Post count: 21

    Hi there,
    I’ve tried the code however this only gives me the buyers details, when I need to add the vendors details.

    So in essence the invoice will show the following details.

    Seller: Vendor display name
    Seller address: Vendor address
    Receipt to: Buyer name (this part works fine)
    Buyer address (this part works fine)

    How do I insert the vendors information like this? Thanks in advance.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @mattbingham, can you please explain which invoice are you referring to i.e. vendor invoice/ customer invoice/admin invoice?

    Also, please do share a temporary admin, vendor and ftp access so we can check.

    While sharing the access, don’t forget to mark the response as private.

  • Matt
    Participant
    Post count: 21

    Hi,
    This is for the customer/buyer. We need the seller/vendor name on the invoice.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    The code we have given is working in our end, as you can see here – https://prnt.sc/n5pmno.

    So, in order to check why this code is not working, please do share a temporary admin, vendor and ftp access so we can check.

    While sharing the access, don’t forget to mark the response as private.

  • Matt
    Participant
    Post count: 21
    This reply has been marked as private.
  • Aditya Hazra
    Moderator
    Post count: 28
    This reply has been marked as private.
    • Matt
      Participant
      Post count: 21
      This reply has been marked as private.
    • Matt
      Participant
      Post count: 21
      This reply has been marked as private.
  • Aditya Hazra
    Moderator
    Post count: 28
    This reply has been marked as private.
    • Matt
      Participant
      Post count: 21

      Okay thanks for taking a look at that. I’ll check this out and see whether the issue is now resolved.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    Sure, Keep us posted.

  • Matt
    Participant
    Post count: 21

    Hello,
    Unfortunately this still appears to be an issue. Please see the attached.

    The order by email (shown on the right) has the correct details (“yacht” for vendor name), however the PDF is incorrect.

    Where “Receipt To: Riviera Cbay” – this should be the customer, not the shop name.
    There is also no vendor name on the invoice at all. Can you check this please?

    Attachments:
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, the admin access is not working, can you please check.

    Also, share vendor access, who has orders.

    • Matt
      Participant
      Post count: 21
      This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600
    This reply has been marked as private.
  • Matt
    Participant
    Post count: 21

    Hello again, so this is definately not working as required. We performed some tests yesterday and today and have the following comments (please read with the attached PDF file).

    For clarity, I’ll refer to persons in the following ways:

    • Website owner: “admin”
    • Purchasing an item on the website: “buyer”
    • Selling the item (attached to the product): “vendor”.

    Email sent to buyer (PDF page 1)
    Page 1 shows the lower half of the email. The vendor name is correct, however we would also like to have the vendor address if possible.

    PDF for admin (PDF page 2)
    When going to Order > PDF invoice > For order > PDF invoice button.

    • The “Sold by” is currently showing the buyer, not the vendor (we need this to show the vendor)
    • The “Seller address” is not showing (we need this to show the vendor address)
    • The “Receipt to” is showing the buyer, which is correct
    • The “Receipt to” address section is showing the buyer address, which is correct
    • We need to show VAT / tax details for the order

    PDF for buyer (PDF Page 3)
    This is the PDF that the buyer is seeing on attached emails, and when logging into their dashboard > Orders > PDF invoice.

    This receipt needs to be the same as the above. Currently it is showing/not showing:

    • “Receipt to” is showing admin name (this should be buyer name)
    • No buyer address (we need to show “Buyer address” details)
    • No vendor name or address (we need to show “Sold by” and “Seller address”, which should be the vendor name and vendor address, as per PDF page 2)

    I hope this is all understandable. I look forward to you reply.

    Attachments:
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, can you please share the site access, so we can check.

    While sharing the access, don’t forget to mark the response as private.

  • Matt
    Participant
    Post count: 21

    Hi there,
    You should be able to use the details I added in a previous reply. Let me know if they are not working.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, our team will check the issues.

    I will keep you posted.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, I checked some orders, it seems like some products (which was ordered) are deleted also.

    Can you please share a fresh vendor order number, so we can check.

    • Matt
      Participant
      Post count: 21
      This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600
    This reply has been marked as private.
    • Matt
      Participant
      Post count: 21
      This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600
    This reply has been marked as private.
    • Matt
      Participant
      Post count: 21

      Hi there,
      Unfortunately not as the site is live! I can prepare a staging area so we can test that. Will that work for you? Once we prove this is working then we can copy the code to the live site.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, please do share a staging site, where we can test the flow.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, thanks for the staging link.

    I am testing the flow. I will keep you posted.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600
    This reply has been marked as private.
  • Matt
    Participant
    Post count: 21

    I would like to say that I am extremely annoyed that you did not use the staging site I set up. I had a very angry phone call from the client this morning telling me the site was down – all plugins and themes had been disabled.

    In future can you please ensure you follow agreed upon instructions carefully. I have now restored the site from a backup that was performed yesterday. Please do not use the live production site for testing!!!!!!!

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4600

    @Matt, sorry for this inconvenience. Somehow we got confused with the site links.

    We will carefully check the link from next time, that I can assure.

    So, can you check the recipient name in the customer’s mail?

Please LOGIN to reply to this topic