MultivendorX Pro
-
AuthorPosts
-
-
June 13, 2023 at 3:42 PM #193299
Dhruv Jha
ParticipantThe invoice template is currently missing some essential fields, including the Product SKU, ex-GST prices, and total separate shipping cost.
-
June 13, 2023 at 6:14 PM #193305
Sangita Support Squad
KeymasterHello @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 .
-
June 20, 2023 at 6:09 PM #193629
Dhruv Jha
Participant1) 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.
-
June 21, 2023 at 2:18 PM #193663
Sangita Support Squad
KeymasterHi 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); }
Copy3) 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. -
June 21, 2023 at 3:54 PM #193666
Sangita Support Squad
KeymasterTo 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 -
June 22, 2023 at 9:04 PM #193727
Dhruv Jha
ParticipantWe have added both the code but SKU is still now displaying on invoices.
-
June 22, 2023 at 10:09 PM #193728
Sangita Support Squad
KeymasterDhruv kindly check carefully. The SKU is added to the product https://prnt.sc/AJC7dEK3fkHm
-
June 23, 2023 at 9:17 AM #193733
Dhruv Jha
ParticipantOhh 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.
-
June 23, 2023 at 3:59 PM #193765
GeekyCoder Abhirup
Moderatoradd_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 -
June 23, 2023 at 6:47 PM #193774
Sangita Support Squad
KeymasterKindly follow the below template overriding path to override the templates –
yourtheme/MultiVendorX/vendor-dashboard/vendor-billing.php
yourtheme/MultiVendorX/vendor-dashboard/vendor-policy.php -
June 23, 2023 at 7:20 PM #193775
Dhruv Jha
ParticipantSangita, As I told you earlier we followed the instruction but it didn’t work for us.
-
June 24, 2023 at 3:01 PM #193784
Sangita Support Squad
Keymaster@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. -
June 29, 2023 at 6:04 PM #193908
Dhruv Jha
ParticipantHi 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;
} -
June 29, 2023 at 8:35 PM #193918
Sangita Support Squad
KeymasterDhruv, 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.
-
June 30, 2023 at 1:00 AM #193935
Dhruv Jha
ParticipantThis reply has been marked as private. -
June 30, 2023 at 5:38 PM #193963
Sangita Support Squad
KeymasterAdd 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 -
July 4, 2023 at 5:25 PM #194082
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 4, 2023 at 9:06 PM #194088
NerdySupportExpert Moumita
KeymasterDhruv, 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; }
CopyNow please share a image explain what are you referring as “we want orders not to be seen”.
-
July 4, 2023 at 11:00 PM #194091
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 5, 2023 at 11:08 AM #194098
Sangita Support Squad
Keymaster@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. -
July 6, 2023 at 5:28 PM #194130
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 7, 2023 at 10:59 AM #194127
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 7, 2023 at 12:13 PM #194145
Sangita Support Squad
KeymasterFor 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. -
July 7, 2023 at 1:09 PM #194157
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 7, 2023 at 8:51 PM #194188
NerdySupportExpert Moumita
KeymasterOur 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. -
July 10, 2023 at 3:54 PM #194238
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 10, 2023 at 6:16 PM #194255
Sangita Support Squad
Keymaster@Dhruv Jha Can we make a test purchase to check the flow on your end?
-
July 10, 2023 at 11:28 PM #194265
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 11, 2023 at 11:19 AM #194269
Sangita Support Squad
KeymasterHi @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. -
July 11, 2023 at 4:53 PM #194284
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 12, 2023 at 1:09 PM #194298
Sangita Support Squad
KeymasterThanks 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. -
July 13, 2023 at 5:43 AM #194325
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 13, 2023 at 7:42 PM #194364
Sangita Support Squad
KeymasterDhruv, 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. -
July 14, 2023 at 12:23 PM #194398
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 14, 2023 at 2:55 PM #194411
Sangita Support Squad
KeymasterThe 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.
-
July 14, 2023 at 9:02 PM #194417
Dhruv Jha
ParticipantThis reply has been marked as private. -
July 17, 2023 at 11:26 AM #194441
Sangita Support Squad
KeymasterWe 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. -
September 1, 2023 at 8:17 AM #193732
Dhruv Jha
ParticipantThis reply has been marked as private. -
September 22, 2023 at 9:57 AM #196533
Sangita Support Squad
KeymasterIts 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.
-
-
AuthorPosts
The topic ‘Missing Essential Invoice Fields’ is closed to new replies.