Tagged: Date picker, date range, Vendor Dashboard
- This topic has 4 replies, 4 voices, and was last updated 2 years, 10 months ago by
Sangita Support Squad.
-
AuthorPosts
-
-
May 4, 2023 at 4:07 AM #191691
Justin Harrison
ParticipantHi Support, can you instruct me on how to permanently change with a code snippet the default date range for the orders screen and the payment history screen from within the vendor dashboard? By default it only shows the current month, but if you’re in the first few days of the month, it’s very limiting. Is there a way to change those default dates to be the current year instead of the current month? Or the last 30 days or the last 90 days instead or anything more than just the current month? I’m just looking for some guidance on how that would be accomplished.
Please let me know. Thank you!
-
May 4, 2023 at 3:56 PM #191720
MVX Support Ninja
KeymasterHi,
For order table override dc-woocommerce-multi-vendor/templates/vendor-dashboard/vendor-orders.php template by copying it to yourtheme/MultiVendorX/vendor-dashboard/vendor-orders.phpthen change line no 37 instant of below code
<input type="date" name="mvx_start_date_order" class="pickdate gap1 mvx_start_date_order form-control" placeholder="<?php esc_attr_e('from', 'multivendorx'); ?>" value="<?php echo isset($_POST['mvx_start_date_order']) ? wc_clean($_POST['mvx_start_date_order']) : date( 'Y-m-d', strtotime('-90 days')); ?>" />For history table override dc-woocommerce-multi-vendor/templates/vendor-dashboard/vendor-transactions.php template by copying it to yourtheme/MultiVendorX/vendor-dashboard/vendor-transactions.php
then change line no 31 instant of below code
<input type="date" id="mvx_from_date" class="form-control" name="from_date" class="pickdate gap1" placeholder="From" value ="<?php echo date( 'Y-m-d', strtotime('-90 days')); ?>"/>Regards,
-
May 4, 2023 at 10:05 PM #191740
Chris
ParticipantI was coming across this problem as well. Thanks for the guidance and making it public.
-
May 5, 2023 at 11:24 AM #191750
Sangita Support Squad
KeymasterGreat to know that . Hope your problem is solved.
-
July 8, 2023 at 7:37 PM #194222
Sangita Support Squad
KeymasterIts been long and we have not heard back from you. Hope your query is solved now. We are closing this thread as of now. If you need help or face issue in future please open a new thread.
-
-
AuthorPosts
- The topic ‘How to Change Default Date Range in Orders + Payment History in Vendor Dashboard’ is closed to new replies.






