Admin name displayed instead of vendor name

WCMp PDF Invoice

Resolved
Viewing 9 reply threads
  • Author
    Posts
    • #113083
      Madalina
      Participant

      Hi there,

      I’m just trying to edit the customer PDF template that is coming with the order. In the “Sold By” field it is displayed the website name and not the vendor’s name.

      I’ve tried to fetch this code in the template: `<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>
      <p><?php echo $WCMp_PDF_Invoices->utils->invoice_to_address(‘vendor’, $user_id, ‘, ‘);?></p><br/>`
      but it still displays the website name instead of the vendor name on the Pdf.

      Can you please guide me on how to get the vendor name instead of the admin?

      Thanks a lot,

    • #113105

      Hi,
      As per our default flow the customer PDF invoice sold by field will display the vendor name.
      Check out the image – https://prnt.sc/whk56p , https://prnt.sc/whk746

      Can you please tell me what do you actually want with screenshot or a small video.

      Regards,

      • #113113
        Madalina
        Participant

        Hey, thanks for your reply

        Basically, I’m in the Admin dashboard, I open a Sub-order I go to the PDF Invoice tab on the right-hand sight of the screen. Here I click on “For order” and then on the “PDF Invoice” button. The PDF opens up and instead of seeing the vendor name where it says “Sold by” I only see the website name. Please see print screens with what I’m referring to: https://prnt.sc/whl2vc and https://prnt.sc/whl6x8

        My question is, could you please help me out to amend the necessary template that will give me the Vendor name instead of the website name on the PDF? I want for the Admin to see the same information as the Vendor on the PDF

        Many thanks,

    • #113114
      Madalina
      Participant

      Hey, thanks for your reply

      Basically, I’m in the Admin dashboard, I open a Sub-order I go to the PDF Invoice tab on the right-hand sight of the screen. Here I click on “For order” and then on the “PDF Invoice” button. The PDF opens up and instead of seeing the vendor name where it says “Sold by” I only see the website name. Please see print screens attached with what I’m referring to

      My question is, could you please help me out to amend the necessary template that will give me the Vendor name instead of the website name on the PDF? I want for the Admin to see the same information as the Vendor on the PDF

      Many thanks,

    • #113111
      Madalina
      Participant

      Hey, thanks for your reply

      Basically, I’m in the Admin dashboard, I open a Sub-order I go to the PDF Invoice tab on the right-hand sight of the screen. Here I click on “For order” and then on the “PDF Invoice” button. The PDF opens up and instead of seeing the vendor name where it says “Sold by” I only see the website name. Please see print screens with what I’m referring to: https://prnt.sc/whl2vc and https://prnt.sc/whl6x8

      My question is, could you please help me out to amend the necessary template that will give me the Vendor name instead of the website name on the PDF? I want for the Admin to see the same information as the Vendor on the PDF

      Many thanks,

    • #113172

      Hi,
      Our default template can not show the sold by on “for order” invoice template. Checkout the video – https://www.loom.com/share/6be349f782b147519c49c4c4ed726674 . If you want this you have to override the template and add your custom code on the template to show the sold by vendor name.

      Regards,

    • #113552
      Madalina
      Participant

      So what’s the point for the admin to see his details there? The vendor is the one selling on the website, so his details should be there and not the admin’s. The admin should be able to see the same invoice as the vendor and customer do, with the vendor’s details as sold by. The customer’s invoice shows the admin details and not the vendor’s. I ran into another support ticket by another user who has the same issue as me: https://multivendorx.com/support-forum/topic/invoice-requires-vendor-name-part-2/ and it seems that you solved the issue.

      I’ve tried adding a custom code but I can’t find a way around it to make it work. If this is not possible to achieve I’ll request a refund for it as it’s not working as expected.

      Regards,

    • #113604

      Hi,
      you can achieve this to override the template
      It’s need some good amount of custom code.

      Regards,

    • #113656
      Madalina
      Participant

      It seems that the problem has been solved previously, why you don’t just share the code here from this thread? https://multivendorx.com/support-forum/topic/invoice-requires-vendor-name-part-2/ So they can be accesible to other users who have the same issue as me.

    • #113713

      Hi,
      There is no code in the private reply.
      By default WCMp PDF Invoice shows the sold by vendor after the product. check out the video – https://prnt.sc/wnf4tn.
      If you want this from admin dashboard then override the selected template and add your custom code. check out the line no 38 (if you using the second templates).

      Regards,

    • #117607

      We have not received any update from you for a long. Hope this ticket is already been resolved.

      We are now closing this ticket. Kindly create a new one if you need any further help.

Viewing 9 reply threads

The topic ‘Admin name displayed instead of vendor name’ is closed to new replies.