Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Missing Essential Invoice Fields

MultivendorX Pro

Resolved
Viewing 38 reply threads
  • Author
    Posts
    • #193299
      Dhruv Jha
      Participant

      The invoice template is currently missing some essential fields, including the Product SKU, ex-GST prices, and total separate shipping cost.

      https://prnt.sc/f0o3Cj0X-KUz

    • #193305

      Hello @Dhruv Jha.
      You need to go to admin dashboard >> MultiVendorX >>Settings >> Invoice , from here under Invoice fields you can select different invoice fields to be shown on the invoice https://prnt.sc/-xetBovniy5H .
      https://prnt.sc/yZCssgJImlvU ( invoice admin fields )
      https://prnt.sc/bhBNRlMsw0-6( invoice customer fields)

      Now if you want to add custom fields then you will have to do custom code for that .

    • #193629
      Dhruv Jha
      Participant

      1) Could you please provide an update from Moumita regarding the issue of the product SKU field not being displayed on the invoice?

      2) Why is the “Wholesale Item: yes” field appearing on invoices? Since we sell everything wholesale, it seems redundant and unnecessary. (Screenshot: https://prnt.sc/Tk_MSzkfYnxG)

      3) Is it possible to include the admin earnings in the vendor’s invoice? Currently, we display this information in the site owner’s invoice, but we also need it to be visible in the vendor’s invoice.

    • #193663

      Hi Dhruv,
      Our replies are inline with your queries –
      1) Could you please provide an update from Moumita regarding the issue of the product SKU field not being displayed on the invoice?
      >>Our team is working on the fix. We will soon provide you with the fix.
      2) Why is the “Wholesale Item: yes” field appearing on invoices? Since we sell everything wholesale, it seems redundant and unnecessary. (Screenshot: https://prnt.sc/Tk_MSzkfYnxG)
      >>We have checked on our end as well. In the invoice the field Wholesale item :Yes is added to indicate that the product has been bought/sold on wholesale and it is bought/sold on the wholesale price.
      Now in your case as you want to remove this field you just add the below code in the functions.php file in your active theme –

      
      add_filter('mvx_pdf_invoice_template_hidden_order_itemmeta', 'invoice_template_hidden_order_itemmeta'); function invoice_template_hidden_order_itemmeta($all_meta) {     $new_meta_marge = array('Wholesale Item', '_mvx_item_wholesale');     return array_merge($all_meta, $new_meta_marge); }
      
      Copy

      3) Is it possible to include the admin earnings in the vendor’s invoice? Currently, we display this information in the site owner’s invoice, but we also need it to be visible in the vendor’s invoice.
      >> If you want to add admin earnings in a vendor invoice then you will have to add custom code for that.

    • #193666

      To add the product SKU in the invoice kindly add the below code in the functions.php file of your current active theme –

      
      add_action( 'mvx_before_pdf_invoice_template_item_meta', 'mvx_before_pdf_invoice_template_item_meta_callback', 10, 3);
      function mvx_before_pdf_invoice_template_item_meta_callback( $pdf_type, $item, $order ){
          $product = $item->get_product();
          if ( $product && $product->get_sku() ) {
              echo '
      ' . esc_html__( 'SKU:', 'woocommerce' ) . ' ' . esc_html( $product->get_sku() ) . '
      '; } }
      Copy
    • #193727
      Dhruv Jha
      Participant

      We have added both the code but SKU is still now displaying on invoices.

      https://prnt.sc/iztefDPO2mDF

    • #193728

      Dhruv kindly check carefully. The SKU is added to the product https://prnt.sc/AJC7dEK3fkHm

    • #193733
      Dhruv Jha
      Participant

      Ohh I can see the SKU now. Can we move it to the next line, please?

      One last thing:
      Last month, we raised a request to hide two policy boxes on the vendor page and vendor dashboard. Currently, we have achieved this by hiding specific lines in the “vendor-policy.php” file of the MVX Core plugin. Similarly, we are also hiding certain fields on the billing page “vendor-billing.php”.

      However, for better maintainability, we would prefer a custom code solution that can be implemented in the child theme’s function.php file.

      Your team provided the following two links to override the vendor-policies template file and remove the fields:

      vendor-policy.php: https://github.com/multivendorx/MultiVendorX/blob/main/templates/vendor-dashboard/vendor-policy.php

      vendor-billing.php: https://github.com/multivendorx/MultiVendorX/blob/main/templates/vendor-dashboard/vendor-billing.php

      We attempted to follow the steps as per your instructions, but unfortunately, it is not working as expected.

      We kindly request your further assistance in resolving this issue. Your expertise and support are greatly appreciated.

    • #193765
      add_action( 'mvx_before_pdf_invoice_template_item_meta', 'mvx_before_pdf_invoice_template_item_meta_callback', 10, 3);
      function mvx_before_pdf_invoice_template_item_meta_callback( $pdf_type, $item, $order ){
          $product = $item->get_product();
          if ( $product && $product->get_sku() ) {
              echo '<div>' . esc_html__( 'SKU:', 'woocommerce' ) . ' ' . esc_html( $product->get_sku() ) . '</div>';
          }
      }
      Copy
    • #193774

      Kindly follow the below template overriding path to override the templates –
      yourtheme/MultiVendorX/vendor-dashboard/vendor-billing.php
      yourtheme/MultiVendorX/vendor-dashboard/vendor-policy.php

    • #193775
      Dhruv Jha
      Participant

      Sangita, As I told you earlier we followed the instruction but it didn’t work for us.

    • #193784

      @Dhruv Jha, please create a staging site and share the temporary admin and FTP access so we can check.
      While sharing the access, don’t forget to mark the response as private.

    • #193908
      Dhruv Jha
      Participant

      Hi team, thanks for your wonderful support so far.

      Your development team previously provided us with the code to hide the wholesaler price from non-logged-in users. After that, we implemented another custom code to hide the simple price, ‘Add to Cart,’ and ‘Buy Now’ buttons as well. However, we are facing an issue where these elements are not being hidden for variable products. This is the last remaining issue on our site. Could your dev team assist us with this? Once this is resolved, we won’t trouble your team any further.

      The code you provided earlier:
      add_action(‘init’, ‘custom_change’);

      function custom_change() {

      if ( !is_user_logged_in() ) {

      add_filter( ‘mvx_wholesale_price_loop’, ‘__return_false’ );

      add_filter( ‘mvx_product_wholesale_price_html’, ‘__return_false’ );

      }

      }

      remove_action( ‘woocommerce_after_variations_form’, array($MVX_Wholesale, ‘wholesale_content_display_variation_products’));

      add_action( ‘woocommerce_after_variations_form’, ‘wholesale_content_display_variation_products’);

      function wholesale_content_display_variation_products() {

      if ( is_user_logged_in() ) {

      $wholesale_price = __( ‘Wholesale Price’, ‘wcmp-afm’ );

      $currency_symbol = get_woocommerce_currency_symbol();

      $minimum_quantity = __( ‘Minimum Quantity’, ‘wcmp-afm’ );

      ?>

      <script>

      jQuery(function($) {

      var wholesale_price = ‘<?php echo $wholesale_price; ?>’;

      var currency_symbol = ‘<?php echo $currency_symbol; ?>’;

      var minimum_quantity = ‘<?php echo $minimum_quantity; ?>’;

      $(‘form.variations_form’).on(‘show_variation’, function(event, data) { // On selected variation

      if (“yes” == data._enable_wholesale) {

      var t =

      wholesale_price +

      “: ” +

      currency_symbol +

      data._wholesale_price +

      (” +

      minimum_quantity +

      “: ” +

      data._wholesale_quantity +

      )”;

      $(“.single_variation”).append(‘<div class=”woocommerce-variation-wholesale”>’ + t + “</div>”);

      } else $(“.single_variation”).find(“.woocommerce-variation-wholesale”).remove();

      }).on(‘hide_variation’, function() { /Not on selected variation/ });

      });

      </script>

      <?php

      }

      }

      The code which we added:
      /**
      Hide Price & Add to Cart for Logged Out Users
      */

      add_filter( ‘woocommerce_get_price_html’, ‘bbloomer_hide_price_addcart_not_logged_in’, 9999, 2 );

      function bbloomer_hide_price_addcart_not_logged_in( $price, $product ) {
      if ( ! is_user_logged_in() ) {
      $price = ‘<div>‘ . __( ‘Signup to Shop Wholesale’, ‘bbloomer’ ) . ‘</div>’;
      remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
      remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );
      add_filter( ‘woocommerce_is_purchasable’, ‘__return_false’ );
      }
      return $price;
      }

    • #193918

      Dhruv, checking the code line by line is quite difficult for our dev team.

      So kindly explain the exact flow you are looking for so that we can help you accordingly.

    • #193935
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #193963

      Add the below code in the functions.php file of your active theme –

      
      add_action('init', 'custom_change');
      function custom_change() {
          if ( !is_user_logged_in() ) {
              
              add_filter( 'mvx_wholesale_price_loop', '__return_false' );
              add_filter( 'mvx_product_wholesale_price_html', '__return_false' );
              remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
              remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
          }
      }
      
      remove_action( 'woocommerce_after_variations_form', array($MVX_Wholesale, 'wholesale_content_display_variation_products'));
      add_action( 'woocommerce_after_variations_form', 'wholesale_content_display_variation_products');
      function wholesale_content_display_variation_products() {
          if ( is_user_logged_in() ) {
              $wholesale_price = __( 'Wholesale Price', 'wcmp-afm' );
              $currency_symbol = get_woocommerce_currency_symbol();
              $minimum_quantity = __( 'Minimum Quantity', 'wcmp-afm' );
              ?>
              <script>
              jQuery(function($) {
                  var wholesale_price = '<?php echo $wholesale_price; ?>';
                  var currency_symbol = '<?php echo $currency_symbol; ?>';
                  var minimum_quantity = '<?php echo $minimum_quantity; ?>';
                  $('form.variations_form').on('show_variation', function(event, data) { // On selected variation
                      if ("yes" == data._enable_wholesale) {
                          var t =
                              wholesale_price +
                              ": <strong>" +
                              currency_symbol +
                              data._wholesale_price +
                              "</strong> (" +
                              minimum_quantity +
                              ": <strong>" +
                              data._wholesale_quantity +
                              "</strong>)";
                          $(".single_variation").append('<div class="woocommerce-variation-wholesale">' + t + "</div>");
                      } else $(".single_variation").find(".woocommerce-variation-wholesale").remove();
                  }).on('hide_variation', function() { /Not on selected variation/ });
              });
              </script>
              <?php
          }
      }
      
      Copy
    • #194082
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194088

      Dhruv, in order to remove trasaction details use this code

      add_filter( 'mvx_before_dashboard_widget', 'filter_mvx_before_dashboard_widget', 10, 1 );
      function filter_mvx_before_dashboard_widget( $vendor_dashboard_widget ) {
      	unset($vendor_dashboard_widget['side']['wcmp_vendor_transaction_details']); //remove Transaction Details widget
      	return $vendor_dashboard_widget;
      }
      Copy

      Now please share a image explain what are you referring as “we want orders not to be seen”.

    • #194091
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194098

      @Dhruv Jha You just need to simply delete the orders and commissions associated with those orders from the admin dashboard.
      Once you delete those from the admin dashboard the details associated with those orders will also be deleted from the vendor dashboard.

    • #194130
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194127
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194145

      For the issue with the Media tab on the vendor dashboard I have checked this on my end. There is no such issue on my end. Kindly check the video https://watch.screencastify.com/v/ClaTGclqNFrkAJr1MWRH
      There might be some theme / plugin conflict on your end. Kindly check by deactivating other plugins other than WooCommerce , MultiVendorX and MultiVendorX Pro.
      Also check by switching to some default theme such as twenty twenty three.
      We have also checked if you delete the order and commission of an order from the admin dashboard then the details of that will also be deleted from the vendor dashboard. Check the video for your reference https://watch.screencastify.com/v/UnWj08Xu4uKgVIhYJHqT .
      As it is showing that there is withdrawable balance, that means there are some commission data still there. Please delete them from the trash too.

    • #194157
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194188

      Our replies are inline with your queries –
      1) I am unable to view the shared video. Here is the link: https://prnt.sc/-2sbGkk9cY4X
      >>Check the video from here https://drive.google.com/file/d/1kBsInLJ_GWKTI7VIlXJKkiii9X6ekxeL/view?usp=drive_link.

      2) Despite deleting all previous orders and commissions from the trash, the statistics still appear in the vendor dashboard. Here is a screenshot: https://prnt.sc/FcbKQPDd3PLt
      >>Check our video here https://drive.google.com/file/d/1l2PwFgRvwnVOme0hknIU61oPcTIJsUvU/view?usp=drive_link. We are not facing any such issue on our end.
      Can you please share a temporray admin access so we can check. .

      3) A new vendor registered on our website today, but their information is not appearing in the Vendors list. Here is a screenshot: https://prnt.sc/8shDDmPgS5Gh
      >> There is some issue with paypal while paying for recurring plans. The issue is on paypal’s end.
      you need to make payments for the recurring plans with Stripe and for non recurring plans you can use both Stripe and paypal.
      Now can you please check which payment mode is your vendor using and type of the plan.

      4) We are still encountering difficulties in deleting pending vendors under the “MVX Multivendor” section. Specifically, the “Pending Vendors” option does not function as expected. Path: Multivendors >> Pending Vendors
      >>We are able to recreate this on our end. We will fix this in our next update. It is taking time as we are also adding some enhancement in the flow.

      5) We would like to use MVX Stripe and MVX Paypal marketplace, but we prefer to manually pay all vendors through bank transfers instead of using Stripe or Paypal for vendor payments. Is it possible to still utilize MVX Stripe and MVX Paypal for other functionalities while handling vendor payments manually?
      >>Yes. If you enable Bank transfer, MVX Stripe marketplace and MVX PayPal marketplace under the payment section of modules then the vendors will have only the bank transfer option to receive their money from the admin.
      But you can use MVX PayPal checkout or MVX Stripe to get payments from the customer. All you have to do is let vendor select Bak transfer as payment mode.

    • #194238
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194255

      @Dhruv Jha Can we make a test purchase to check the flow on your end?

    • #194265
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194269

      Hi @Dhruv Jha
      The site you have shared is your live site. Hence it is really hard for us to do the tests on your end.
      It will be better to check the issue on your end if you create a staging site that should be an exact replica of the live site and share the access with us.

    • #194284
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194298

      Thanks for sharing the access.
      But the vendor dashboard is broken and not functioning properly. Kindly check the video https://watch.screencastify.com/v/3sq4ESTMONqDZ8mkqRmS.
      Please fix this and let me know so that i can check the above mentioned issue with orders and commissions on your end.

    • #194325
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194364

      Dhruv, To remove the withdrawable balance from the vendor dashboard you only have one solution which is to delete commissions from the database.
      Please share the cPanel access so we can check.

    • #194398
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194411

      The only solution is that you can delete those vendors who are having the balance showing on their dashboard and add them again on your site.

    • #194417
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #194441

      We save data in mvx vendor ledger table.
      Now you can delete the corresponding order, suborder, commission data from mvx vendor ledger table data from your database for those particular vendor ids .
      But it may happen that all the details of those vendors may get deleted.

    • #193732
      Dhruv Jha
      Participant
      This reply has been marked as private.
    • #196533

      Its been long and we have not heard back from you. We presume your query is solved now. We are closing this thread. If you need help or face issue in future please open a new thread.

Viewing 38 reply threads

The topic ‘Missing Essential Invoice Fields’ is closed to new replies.