Invoice requires vendor name (part 2)

WCMp PDF Invoice

Invoice requires vendor name (part 2) Open

Viewing 27 reply threads
  • Author
    Posts
    • #56370
      Matt
      Participant

      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:
    • #56399

      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>
      
    • #57327
      Matt
      Participant

      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.

    • #57443

      @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.

    • #57532
      Matt
      Participant

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

    • #57737

      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.

    • #58001
      Matt
      Participant
      This reply has been marked as private.
    • #58037
      Aditya Hazra
      Moderator
      This reply has been marked as private.
      • #58039
        Matt
        Participant
        This reply has been marked as private.
      • #58040
        Matt
        Participant
        This reply has been marked as private.
    • #58073
      Aditya Hazra
      Moderator
      This reply has been marked as private.
      • #58412
        Matt
        Participant

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

    • #58771

      Sure, Keep us posted.

    • #65949
      Matt
      Participant

      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:
    • #66045

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

      Also, share vendor access, who has orders.

      • #66050
        Matt
        Participant
        This reply has been marked as private.
    • #66129
      This reply has been marked as private.
    • #66407
      Matt
      Participant

      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:
    • #66427

      @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.

    • #66432
      Matt
      Participant

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

    • #66623

      @Matt, our team will check the issues.

      I will keep you posted.

    • #66879

      @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.

      • #66949
        Matt
        Participant
        This reply has been marked as private.
    • #67093
      This reply has been marked as private.
      • #67453
        Matt
        Participant
        This reply has been marked as private.
    • #67547
      This reply has been marked as private.
      • #67583
        Matt
        Participant

        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.

    • #67586

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

    • #67623

      @Matt, thanks for the staging link.

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

    • #68465
      This reply has been marked as private.
    • #68472
      Matt
      Participant

      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!!!!!!!

    • #68475

      @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?

    • #75630
      susmita
      Moderator

      Hi @Matt,

      I presume that your issue is resolved, since, we haven’t heard back from you.

      We are marking this thread as resolved.

      Kindly open a new thread if you face any further query.

    • #79353
      Matt
      Participant
      This reply has been marked as private.
    • #79404
      susmita
      Moderator

      Hi Matt, sure.

      Send us the email at @wc-marketplace.com">contact@wc-marketplace.com.

Viewing 27 reply threads

Please LOGIN to reply to this topic