Home Forums WC Vendors Pro Support Modifying Template of Orders Page

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #38821
    JCD
    Participant

    Is it possible to drop the orders.php into a themes’ wc-vendors directory and modify its behavior in that way? I’m having a hard time figuring out how to modify the table containing vendors’ order information; I can’t tell if a dev who worked on the site before did something weird or if I am just having a hard time wrapping my head around the operation of WC Vendors.

    I want to modify the display of the order page to make it a bit more friendly for managing a subscription-based marketplace. Anyhow, any guidance would be much appreciated.

    #38834
    Anna
    Member

    @jake
    Are you referring to the pro vendor dashboard orders page? If you can show me a screenshot of the specific page you wish to change, that would help.

    There are some templates that you can move to your child theme to work with them, but I am not sure which of the orders files you need.

    In addition, I’m not clear whether you are looking to add merely styling or if you actually wish to change the behavior of the orders page. You said you wish to modify the display, but I do not know if this means both style and content.

    Thank you-

    #38886
    JCD
    Participant

    Hey Anna,

    I’m attaching a screen shot. On this page, I want to change the presented information about each order (to show when the next subscription is due, for instance). I know I will need the order_details.php, and what should be the orders.php, but there must be a hook I am missing or something, because just dropping in the orders.php into Porto’s wc-vendors folder does not override what is producing the page now.

    Thanks,
    Jake

    #38936
    JCD
    Participant

    Is there documentation on the functionality of filters for the Pro Dashboard? What do you guys recommend for tying in hooks or filtering the behavior of the orders page? I know I don’t want to touch the core stuff… but I wonder which filters or functions you recommend tying in to for modifying functionality on the Pro Dashboard’s Order page (the front facing page that vendors see when they are logged in, screenshotted in my previous comment).

    #38942
    Anna
    Member

    At this time, documentation for this is incomplete. Since Pro was released in Oct 2015, there have been so many filers, features and enhancements added with each update… so full documentation has not yet been completed. Likely after version 1.4 is released, documentation will be updated and completed. 🙂

    I believe this is the template you would work with for the orders page shown: wp-content/plugins/wc-vendors-pro/templates/dashboard/order/order_details.php
    so you would copy it to your child theme with this path: wp-content/themes/your-child-theme/wc-vendors/templates/dashboard/order/order_details.php to edit.

    This is what I can provide at the moment for you as far as any actions and filters for the orders layout and functions.
    I know this is a jumble, and if you cannot make sense of what goes where by comparing to the orders_details.php, I can work through it a bit with you. See if any of these at least give you a place to start:

    actions:
    public/class-wcvendors-pro-order-controller.php:             do_action( 'wcv_orders_add_new_row', $new_row ); 
    public/class-wcvendors-pro-order-controller.php:             do_action( 'wcvendors_vendor_ship', $order_id, $vendor_id );
    
    filters:
    public/class-wcvendors-pro-order-controller.php:                $this->start_date       = ( !empty( $_SESSION[ 'PV_Session' ][ '_wcv_order_start_date_input' ] ) )      ? $_SESSION[ 'PV_Session' ][ '_wcv_order_start_date_input' ] : strtotime( apply_filters( 'wcv_order_start_date', $default_start ) ); 
    public/class-wcvendors-pro-order-controller.php:                $this->end_date         = ( !empty( $_SESSION[ 'PV_Session' ][ '_wcv_order_end_date_input' ] ) )        ? $_SESSION[ 'PV_Session' ][ '_wcv_order_end_date_input' ] : strtotime( apply_filters( 'wcv_order_end_date', 'now' ) ); 
    public/class-wcvendors-pro-order-controller.php:                self::$billing_fields = apply_filters( 'wcv_order_billing_fields', array(
    public/class-wcvendors-pro-order-controller.php:                self::$shipping_fields = apply_filters( 'wcv_order_shipping_fields', array(
    public/class-wcvendors-pro-order-controller.php:                $columns = apply_filters( 'wcv_order_table_columns', array( 
    public/class-wcvendors-pro-order-controller.php:                                $row_actions = apply_filters( 'wcv_orders_row_actions_' . $order->get_order_number(), array( 
    public/class-wcvendors-pro-order-controller.php:                return apply_filters( 'wcv_orders_table_rows', $rows ); 
    public/class-wcvendors-pro-order-controller.php:                $notice = apply_filters( 'wcv_orders_table_no_data_notice', __( 'No orders found.', 'wcvendors-pro' ) ); 
    public/class-wcvendors-pro-order-controller.php:                $order->add_order_note( apply_filters( 'wcvendors_pro_vendor_shipped_note', __( $store_name . ' has marked as shipped. ', 'wcvendors') ), $vendor_id ) ; 
    public/class-wcvendors-pro-order-controller.php:                wc_get_template( 'shipping-label.php', apply_filters( 'wcvendors_pro_order_shipping_label', array(
    public/class-wcvendors-pro-order-controller.php:                $csv_headers    = apply_filters( 'wcv_order_export_csv_headers', $csv_headers ); 
    public/class-wcvendors-pro-order-controller.php:                $csv_rows               = apply_filters( 'wcv_order_export_csv_rows', $csv_output->format_orders_export( WCVendors_Pro_Vendor_Controller::get_orders2( get_current_user_id(), $date_range ) ) );  
    public/class-wcvendors-pro-order-controller.php:                $csv_filename   = apply_filters( 'wcv_order_export_csv_filename', 'orders' ); 
    public/class-wcvendors-pro-order-controller.php:                return $shipping_providers = apply_filters( 'wcv_shipping_providers_list', array(
    
    public/partials/order/wcvendors-pro-order-table-actions.php:                   WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_order_start_date_input', array( 
    public/partials/order/wcvendors-pro-order-table-actions.php:                   WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_order_end_date_input', array( 
    public/partials/order/wcvendors-pro-order-table-actions.php:                   WCVendors_Pro_Form_helper::submit( apply_filters( 'wcv_order_update_button', array( 
    
    templates/dashboard/order/order_details.php:                       if ( in_array( $meta['meta_key'], apply_filters( 'woocommerce_hidden_order_itemmeta', array(
    templates/dashboard/order/order_details.php:                       $meta['meta_key']   = apply_filters( 'woocommerce_attribute_label', wc_attribute_label( $meta['meta_key'], $_product ), $meta['meta_key'] );
    

    Please let me know if I can help further.

    #38985
    JCD
    Participant

    Thanks Anna! I’ll give this a crack and see what I can do. If I have further questions I’ll @ you with a reply here.

    #65644
    waqas
    Participant

    Hi
    I want to show original product price in vender dashbourd
    plz help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.