Banner Logo

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

How to Change Default Date Range in Orders + Payment History in Vendor Dashboard

MultivendorX Pro

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #191691
      Justin Harrison
      Participant

      Hi 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!

    • #191720

      Hi,
      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.php

      then 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')); ?>" />
      Copy

      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')); ?>"/>
      Copy

      Regards,

    • #191740
      Chris
      Participant

      I was coming across this problem as well. Thanks for the guidance and making it public.

    • #191750

      Great to know that . Hope your problem is solved.

    • #194222

      Its 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.

Viewing 4 reply threads

The topic ‘How to Change Default Date Range in Orders + Payment History in Vendor Dashboard’ is closed to new replies.