Home Forums WC Vendors Pro Support Dashboard > Report > Show total with taxes

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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #66330
    Axel
    Participant

    Hi

    I’m using the last version of WC Pro and I’m looking for a way to show on the dashboard, in the recent_orders_table the price paid with the tax.
    Currently it shows the selling price without the taxes.

    I found the function in class-wcvendors-pro-reports-controller.php (recent_orders_table() ).

    Question 1 : how can I change the price without taxes to the price with taxes ?
    It must be by changing line 349
    $totals_html .= wc_price( $order->product_commissions[ $item_product_id ] );
    by something like
    totals_html .= wc_price( $order->product_commissions+taxes[ $item_product_id ] );

    Question 2 : how can I override this function in my child theme to avoid to have to rewrite everything at the next plugin update ?

    thanks !

    #66393
    Anna
    Member

    @axelpg
    Hello,
    I will have to look into this to see how you would correctly show the taxes as well.
    However, this cannot be altered via a template, so they only way to write this (code this)and have it be update safe would be to write a filter or function that would replace the current code.
    I am not presently sure how to do this so I will have to take a look at this and see if I can sort through it..

    #66724
    Axel
    Participant

    Thanks.
    I will use a filter, i guess 🙂
    Any luck finding which function to call ?

    Thx

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.