Git Product home page Git Product logo

Comments (6)

MichaelBengtsson avatar MichaelBengtsson commented on June 21, 2024

This is how WooCommerce works as standard. A coupon is applied to all the products in the cart. If you want a discount to show up as its own discounted line, then you need to add it as a negative fee. But this is not the standard in WooCommerce

from billmate-checkout-for-woocommerce.

stefanliden avatar stefanliden commented on June 21, 2024

the discount code is not visible regardless of the type of discount code in the payment call to Billmate. This means that customers will never be able to see on their invoices that a discount code has been used. Example if a product has received a discount of 10%, it should be sent as this

$ values ["Articles"] [1] = array (
"artnr" => "B456",
"title" => "Article 2",
"quantity" => "3.5",
"aprice" => "56780",
"taxrate" => "25",
"discount" => "10",
"withouttax" => "178857",
);

If this is not included, customers will call and shop and ask us why they can not see the discount code on their receipts / invoices.We must also be sure that it is possible to give a discount for items even if they have different VAT rates such as 6% 25%

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on June 21, 2024

@stefanliden How should we add a discount in the request to Billmate if it is a fixed cart amount discount?

The API-docs mention that it should be sent in as %, but fixed amount coupons can also be created in WooCommerce.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on June 21, 2024

@MattiasNilsson Would it be ok to just add the discount on each order line for display/information? Not be a part of the totals calculation? I have tested and it seem to work ok like that.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on June 21, 2024

@OskarOstlund perhaps you can test this and see that it looks ok for you as well?

from billmate-checkout-for-woocommerce.

OskarOstlund avatar OskarOstlund commented on June 21, 2024

Tested and approved.

Discounts have now been included in the

from billmate-checkout-for-woocommerce.

Related Issues (20)

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.