how to customize front end for Vendor
Home / Topic / WCMp Core / how to customize front end for Vendor
WCMp Core
how to customize front end for Vendor Open
- This topic has 19 replies, 3 voices, and was last updated 8 hours, 18 minutes ago by
iamonthemarketer.
-
AuthorPosts
-
-
July 23, 2022 at 5:14 AM #140820
iamonthemarketer
ParticipantHello and thank to everyone who will take the time to provide answers to this post.
Is it possible for the site admin to choose what item he needs to activate for vendor in Front end?
I would like to disable the StoreFront see picture
also disable management of order from vendor dashboard
– > from my test I see that Vendor needs to approve order
In my website, I just need to provide access to sales reports to vendor for products that are assign to them. they can upload product for approval but that’s all.
So on the dashboard they should be able to see sales for all products they have and they should be able to check as woocommerce will display sales reports for one product.
I also need to know how to display sales reports in woocommerce default currency.
Right now the order menu from dashboard show the default currency from woocommerce but not the sale report page.
I also made a test with a sale for the vendor in screenshot but the sale do not show for the vendor in his dashboard.
I am the one who is going to promote the website and take care of interactions or issue cx will face.
Attachments:
-
July 23, 2022 at 10:07 PM #140842
NerdySupportExpert Moumita
KeymasterHi, thanks for getting in touch with us.
Our replies are inline :
– I would like to disable the StoreFront see the picture
>> For this add this code in the function.php of your theme :
add_filter('wcmp_vendor_dashboard_header_right_panel_nav', 'wcmp_vendor_dashboard_header_right_panel_nav'); function wcmp_vendor_dashboard_header_right_panel_nav($right_nav){ if(isset($right_nav['storefront'])){ unset($right_nav['storefront']); } return $right_nav; }
Copy– So on the dashboard, they should be able to see sales for all products they have and they should be able to check as woocommerce will display sales reports for one product.
>> We do let vendors see all the sales in their order tab.
Now may I know what are you referring to as woocommerce will display sales reports for one product. some scrrenshot will be very much helpful.– In my website, I just need to provide access to sales reports to vendor for products that are assign to them. they can upload product for approval but that’s all.
>> Let us know which fields do you want to remove so we can assit you accordingly.
– I also need to know how to display sales reports in woocommerce default currency.
>> As you can see we display the report in the woocommerce currency: https://watch.screencastify.com/v/oYsdedc8oLLubtyQGx7q
So, may I know which currency are you using, so we can check the same on our end.
Right now the order menu from the dashboard shows the default currency from woocommerce but not the sale report page.
– I also made a test with a sale for the vendor in the screenshot but the sale do not show for the vendor in his dashboard.
>> We display data in the report for pending and completed orders only.
-
July 24, 2022 at 3:34 AM #140849
iamonthemarketer
ParticipantThank you for your reply.
So I will send screenshot with the idea I have for the vendor dashboard.
with the fist screenshot I need to hide menu in the red rectangle. screenshot 1 (dashboard)
and the first page vendor need to see will be the page of sale reports -> screenshot 2 (home for vendor), but you will see that now it display $ instead of CFA (default woocommerce currency).
And in the sales reports submenu banking screenshot 3 it still show currency in $. On this page there is link for order can I disabled it since orders are not going to be in the dashboard menu.
regarding this comment
####
– So on the dashboard, they should be able to see sales for all products they have and they should be able to check as woocommerce will display sales reports for one product.>> We do let vendors see all the sales in their order tab.
see pictures attached.
screnshoot 4.I hope this will give you a better understanding of my ideas.
Thank you.
Attachments:
-
July 24, 2022 at 5:15 AM #140852
iamonthemarketer
ParticipantJust realized I forgot some screenshots.
Attachments:
-
July 25, 2022 at 3:13 PM #140859
NerdySupportExpert Moumita
KeymasterHi @iamonthemarketer, can you please update the older code with this new code :
add_filter('wcmp_vendor_dashboard_header_right_panel_nav', 'wcmp_vendor_dashboard_header_right_panel_nav'); function wcmp_vendor_dashboard_header_right_panel_nav($right_nav){ unset($right_nav['storefront']); unset($panel_nav ['wp-admin']); return $right_nav; }
Copyadd_filter('wcmp_vendor_dashboard_nav', 'callback_wcmp_vendor_dashboard_nav', 99); function callback_wcmp_vendor_dashboard_nav($vendor_nav){ unset($vendor_nav['dashboard']); // for payments unset($vendor_nav['vendor-orders']); // for Stats / Reports unset($vendor_nav['vendor-tools']); // for Stats / Reports return $vendor_nav; }
Copyadd_filter( 'wcmp_vendor_dashboard_header_nav', 'filter_wcmp_vendor_dashboard_header_nav', 10, 1 ); function filter_wcmp_vendor_dashboard_header_nav( $header_nav ) { unset($header_nav['shop-link']); //remove Vendor Shop Link unset($header_nav['orders']); //remove Add Product Link return $header_nav; }
CopyNow our dashboard page is the default landing page for vendors, hence you need to set a default landing page too. May I know which page do you want to set as the default landing page? We will provide the code as per that.
For the currency issue, can you please share the scrrenshot of the WooCommerce >> settings page so we can check on our end also.
-
July 27, 2022 at 11:20 PM #140898
iamonthemarketer
ParticipantHello Thank you again for you response,
I was able to add the function in the theme child function files.
After some test I have the following request.
I will like to remove the page that let vendor add products, as this one as too many field for them and I prefer to care of it.
I would like to know if I create a form for vendor to upload product if that can be added to their dashboard.
If that will required a lot of work for you them I will create a page for them to do that.
For the currency the dashboard still display currency in $.
I will also add screenshot:
For the dasboard homepage we can keep the current page but I want to hide the section “Your Store report – last 7 days” see screenshot 1
I also want to hide the section for customer question on the same page see screenshot2on the section product manager we keep only all products and remove add product see screenshot 3, I also want to hide the delete product see screenshot 3.
-
July 27, 2022 at 11:43 PM #140902
iamonthemarketer
Participantone more thing I forgot to add here is I do not want vendor to approve order as they just need to see the sales that were made for product assign to them.
-
July 29, 2022 at 6:51 PM #140942
GeekyCoder Abhirup
ModeratorHi,
Kindly add below code to your function.php of the active current theme.I will like to remove the page that let vendor add products, as this one as too many field for them and I prefer to care of it.
add_filter('wcmp_vendor_dashboard_nav', 'callback_wcmp_vendor_dashboard_nav', 99); function callback_wcmp_vendor_dashboard_nav($vendor_nav){ unset($vendor_nav['vendor-products']['submenu']['add-product']); return $vendor_nav; }
CopyI would like to know if I create a form for vendor to upload product if that can be added to their dashboard.
>> For this you have to add custom code. Kindly let us know what do you want. So, we will share some hook and filter accordingly.
For the currency issue, can you please share the scrrenshot of the WooCommerce >> settings page so we can check on our end also.
kindly add below code to the function.php as per your screenshot.
add_action('init', 'wcmp_custom_changes'); function wcmp_custom_changes(){ global $WCMp; remove_action('wcmp_dashboard_setup', array($WCMp->vendor_dashboard, 'wcmp_dashboard_setup'), 5); add_action('wcmp_dashboard_setup', 'wcmp_dashboard_setup', 5); } function wcmp_dashboard_setup() { global $WCMp; $vendor = get_wcmp_vendor(get_current_user_id()); $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_stats_reports', '', array($WCMp->vendor_dashboard, 'wcmp_vendor_stats_reports'), 'full'); $trans_details_widget_args = array(); if (apply_filters('wcmp_vendor_dashboard_menu_vendor_withdrawal_capability', false)) { $trans_details_widget_args['action'] = array('title' => __('Withdrawal', 'dc-woocommerce-multi-vendor'), 'link' => esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings('wcmp_vendor_withdrawal_endpoint', 'vendor', 'general', 'vendor-withdrawal')))); } $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_transaction_details', __('Transaction Details', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_transaction_details'), 'side', array(), $trans_details_widget_args); $visitor_map_filter_attr = apply_filters('wcmp_vendor_visitors_map_filter_attr', array( '7' => __('Last 7 days', 'dc-woocommerce-multi-vendor'), '30' => __('Last 30 days', 'dc-woocommerce-multi-vendor'), )); $visitor_map_filter = '<div class="widget-action-area pull-right"> <select id="wcmp_visitor_stats_date_filter" class="form-control">'; if ($visitor_map_filter_attr) { foreach ($visitor_map_filter_attr as $key => $value) { $visitor_map_filter .= '<option value="' . $key . '">' . $value . '</option>'; } } $visitor_map_filter .= '</select> </div>'; if(!apply_filters('wcmp_is_disable_store_visitors_stats', false)) $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_visitors_map', __('Visitors Map', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_visitors_map'), 'normal', '', array('action' => array('html' => $visitor_map_filter))); if ($vendor->is_shipping_enable()): $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_pending_shipping', __('Pending Shipping', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_pending_shipping')); endif; if (current_user_can('edit_products')) { $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_product_stats', __('Product Stats', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_product_stats'), 'side', ''); $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_product_sales_report', __('Product Sales Report', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_product_sales_report')); } if (get_wcmp_vendor_settings('is_sellerreview', 'general') == 'Enable') { $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_customer_reviews', __('Reviews', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_customer_review')); } // Vendor followeres list if ( get_wcmp_vendor_settings('store_follow_enabled', 'general') && get_wcmp_vendor_settings('store_follow_enabled', 'general') == 'Enable' ) { $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_follower', __('Followers', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_followers')); } $WCMp->vendor_dashboard->wcmp_add_dashboard_widget('wcmp_vendor_products_cust_qna', __('Customer Questions', 'dc-woocommerce-multi-vendor'), array($WCMp->vendor_dashboard, 'wcmp_vendor_products_cust_qna'), 'side', '', array('action' => array('title' => __('Show All Q&As', 'dc-woocommerce-multi-vendor'), 'link' => esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings('wcmp_vendor_products_qnas_endpoint', 'vendor', 'general', 'products-qna')))))); }
Copyadd_filter( 'wcmp_vendor_dashboard_header_nav', 'filter_wcmp_vendor_dashboard_header_nav', 10, 1 ); function filter_wcmp_vendor_dashboard_header_nav( $header_nav ) { unset($header_nav['add-product']); //remove Add Product Link return $header_nav; } add_filter( 'before_wcmp_dashboard_widget', 'filter_before_wcmp_dashboard_widget', 10, 1 ); function filter_before_wcmp_dashboard_widget( $vendor_dashboard_widget ) { unset($vendor_dashboard_widget['side']['wcmp_vendor_products_cust_qna']); //remove Customer Questions widget return $vendor_dashboard_widget; }
Copy>> one more thing I forgot to add here is I do not want vendor to approve order as they just need to see the sales that were made for product assign to them.
>> Please explain to us what kind of modification are you looking for for this topic.
Regards,
-
August 1, 2022 at 6:11 PM #140981
iamonthemarketer
ParticipantSo when an order is made on he website with the plugin original configuration vendors needs to approve orders before the show as complete otherwise it only shows pending in the woocommerce orders details.(see screenshot : order is pending in admin dashboard and vendor )
I would like to know if it is possible to set up a zoom meeting with one of you to make sure I explain any questions you might have regard the customization I want to do.
And another thing I notice is that reports email sent to vendor includes orders details as file attached, I would like to have it removed and only keep the report.
And in the banking overview in the menu Stats / Reports is it normal to have 2 currencies? (See screenshot)
Attachments:
-
August 2, 2022 at 1:46 PM #140994
NerdySupportExpert Moumita
Keymaster@iamonthemarketer, let us know when you will be available tomorrow between 11 am IST to 5 pm IST?
-
August 6, 2022 at 5:00 AM #141094
iamonthemarketer
ParticipantHello I was offline for some days.
Can we reschedule it ?
what day of the week are you available? also I am in MST time zone
-
August 8, 2022 at 5:17 PM #141118
NerdySupportExpert Moumita
KeymasterSure @iamonthemarketer, how about tomorrow (10.08.22) at 9 pm IST
-
August 9, 2022 at 12:58 AM #141126
iamonthemarketer
Participantcan we make it around 7:30Pm for you?
this will be 8am for me on 10.08.2022 -
August 9, 2022 at 10:00 AM #141129
NerdySupportExpert Moumita
KeymasterSure @iamonthemarketer
-
August 9, 2022 at 7:53 PM #141150
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
August 9, 2022 at 7:57 PM #141151
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
August 12, 2022 at 3:05 AM #141195
iamonthemarketer
ParticipantHello,
after additional test I see that orders are not showing as sales for vendor until they are mark as completed by site admin.
Is there a way to set the status as completed by default for all orders for vendors? or just use they from admin dashboard?
I also want to remove attached files sent to vendors (sales reports). When I was looking in emails sent from woocommerce I found the template for Vendor orders stats report.can you confirm if by removing the following line from that php files
<?php if($attachments && count($attachments) > 0 && $report_data[‘order_data’] && count($report_data[‘order_data’]) > 0 ){ ?>
<p><?php echo esc_html__( ‘Please find your report attachment’, ‘dc-woocommerce-multi-vendor’ ); ?></p>
<?php }else{ ?>
<p><?php echo esc_html__( ‘There is no stats report available.’, ‘dc-woocommerce-multi-vendor’ ); ?></p>
<?php } ?>this will remove attached files?
Attachments:
-
August 12, 2022 at 12:01 PM #141201
NerdySupportExpert Moumita
Keymaster@iamonthemarketer, can you please create a staging site and share a temporary admin, FTP access so we can check?
While sharing the access, don’t forget to mark the response as private. -
August 12, 2022 at 12:01 PM #141202
NerdySupportExpert Moumita
Keymaster@iamonthemarketer, can you please create a staging site and share a temporary admin, FTP access so we can check?
While sharing the access, don’t forget to mark the response as private. -
August 13, 2022 at 8:23 PM #141222
iamonthemarketer
Participantok. sounds good
-
-
AuthorPosts
Please LOGIN to reply to this topic