Error in invoices

WCMp PDF Invoice

Error in invoices Resolved

Tagged: ,

Viewing 12 reply threads
  • Author
    Posts
    • #69444
      Priyank Pandey
      Participant

      Hi Moumita, I’ve tried generating pdf invoices but currency symbol and GST number are not getting printed on the invoices.

    • #69447

      @Priyank Pandey, Sorry to hear that you have faced this issue. Please follow the code snippet provided here – https://wc-marketplace.com/support-forum/topic/rupee-symbol-broken-in-invoice-pdf/#post-40182

    • #69495
      Priyank Pandey
      Participant

      Thanks for the code, Moumita. Still, GST number is not getting printed. Please help!

    • #69498
    • #69500
      Priyank Pandey
      Participant

      Moumita, I followed the doc but the GST number the vendor has entered in the field is not visible in invoices.

    • #69503

      Use this code snippet to display the GST number in the invoice :

      // Show the extra field in vendor's pdf invoice - this example shows the GST Number Field in the invoice added previously.
      add_filter( 'after_wcmp_pdf_invoice_order_invoice_details', 'show_extra_fields_in_vendor_pdf_template' );
      function show_extra_fields_in_vendor_pdf_template($args){
          $settings = isset($args['settings']) ? $args['settings'] : array();
          if($settings['vendor_gst_number'] && !empty($settings['vendor_gst_number'])){ ?>
          <tr> <td> <?php _e('GST Number:', 'wcmp-pdf_invoices'); ?> </td></td> </tr>
          <?php }
      }
      copy
    • #69551
      Priyank Pandey
      Participant

      Moumita, I already entered this code but still, GST number is not printing on invoices.

    • #69552
      Priyank Pandey
      Participant

      Moumita, I also want that if we generate an “invoice for order” from the admin dashboard. Then it should print these details:

      1. Website logo
      2. Sold by the vendor name, vendor address, vendor GST number
      3. Shipping/billing address
      4. invoice number (it’s not autogenerating)
      5. All item details including prices and taxes

      And if we generate an “invoice for the vendor” from the admin dashboard. Then it should print these details:

      1. Website logo
      2. From website admin name, admin address, admin gst number
      3. to Vendor name, address, gst number
      4. Item price-admin commission+GST charged-TCS@1%-GST on admin commission@18%

    • #69634

      @Priyank Pandey, the above code should work.

      Now that you are facing this issue, please do share a temporary admin, vendor (who has order) and ftp access so we can check.

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

    • #69674
      Priyank Pandey
      Participant
      This reply has been marked as private.
    • #69729
      This reply has been marked as private.
    • #69796
      sumit singh
      Moderator

      There was an issue with the code. I have added the updated code in your site and updated the doc also. can you please check :-

      // Show the extra field in vendor's pdf invoice - this example shows the GST Number Field in the invoice added previously.
      add_filter( 'after_wcmp_pdf_invoice_order_invoice_details', 'show_extra_fields_in_vendor_pdf_template' );
      function show_extra_fields_in_vendor_pdf_template($args){
         $settings = isset($args['settings']) ? $args['settings'] : array();
         if($settings['vendor_gst_number'] && !empty($settings['vendor_gst_number'])){ ?>
         <tr> <td> <?php _e('GST Number:', 'wcmp-pdf_invoices'); ?> </td><td><?php echo $settings['vendor_gst_number']; ?></td></td> </tr>
         <?php }
      }
      copy
    • #75629
      susmita
      Moderator

      Hi @Priyank Pandey,

      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.

Viewing 12 reply threads

The topic ‘Error in invoices’ is closed to new replies.

WCMp bundle is available at a slashed price

Grab It Now