Giter VIP home page Giter VIP logo

rvola / woo-stripe-fee-in-report Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 256 KB

Shows Stripe fees in WooCommerce charts. Calculates a correct net total.

Home Page: https://wordpress.org/plugins/woo-stripe-fee-in-report/

License: GNU General Public License v3.0

PHP 100.00%
stripe woocommerce woocommerce-plugin woocommerce-extension wordpress-plugin wordpress chart reporting report stripe-payments

woo-stripe-fee-in-report's People

Contributors

rvola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

woo-stripe-fee-in-report's Issues

Show fees in all reports

Is it possible to have the fees show up in all reports? Right now it only displays on the default 'Sales by date' report, not the 'Sales by product' or 'Sales by category' reports.
Happy to work on this myself if you can point me in the right direction.

Very useful, support for PayPal?

Hi!
Super useful plugin, thanks a lot!!
Is there by any chance a way to show the fees for PayPal as well? Can you pull them as easily?

Thank you so much for your work!

Double counting of Stripe fees in Net Sales calculation

The plugin is currently double counting Stripe fees when calculating Net Sales for the chart sidebar:
$this->report_data->net_sales = wc_format_decimal( $this->report_data->total_sales - $this->report_data->total_shipping - $this->report_data->total_stripe_fees - max( 0, $this->report_data->total_tax ) - max( 0, $this->report_data->total_shipping_tax ) - max( 0, $this->report_data->total_stripe_fees ), 2 );
should be
$this->report_data->net_sales = wc_format_decimal( $this->report_data->total_sales - $this->report_data->total_shipping - max( 0, $this->report_data->total_tax ) - max( 0, $this->report_data->total_shipping_tax ) - max( 0, $this->report_data->total_stripe_fees ), 2 );

$this->report_data->net_sales = wc_format_decimal( $this->report_data->total_sales - $this->report_data->total_shipping - $this->report_data->total_stripe_fees - max( 0, $this->report_data->total_tax ) - max( 0, $this->report_data->total_shipping_tax ) - max( 0, $this->report_data->total_stripe_fees ), 2 );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.