Git Product home page Git Product logo

Comments (7)

ps-PKrueger avatar ps-PKrueger commented on June 19, 2024

I have now verified that this is not just an issue with updating the cart, it has to do with any order that has quantities greater than 1.

If I add more than one of an item to the cart before checking out, I get a weird price value in the Fastspring window.

I am also not using coupons, or other discounting mechanisms.

from woocommerce-fastspring-payment-gateway.

ps-PKrueger avatar ps-PKrueger commented on June 19, 2024

In a further update to this issue, it looks like the gateway is sending the value = price / number of items, and not price * number of items. At least, that is consistent with what I am getting.

My Price: $25

Fastspring Checkout

Qty 1 - $25.00
Qty 2 - $12.50
Qty 3 - $8.33

from woocommerce-fastspring-payment-gateway.

cyberwombat avatar cyberwombat commented on June 19, 2024

Thank you. I patched things temporarily - indeed the quantity was applied wrong but I am running into issues with rounding errors. The gist of the problem is that FS doesn't handle discounts so I have to adjust item prices to create a fake discount but this creates issues with rounding (i.e. 3 * $20 with a $10 discount yields $50.01 in FS). I will explore creating a fake discount item if FS lets me do negatives but I am not sure yet. I will leave this issue open to remind me to address that.

from woocommerce-fastspring-payment-gateway.

ps-PKrueger avatar ps-PKrueger commented on June 19, 2024

I am solving this by not allowing coupons on Woo, only on Fastspring checkout. That way, they have to calculate the discounts, and no rounding error will be produced. It is too bad that fastspring won't let you reference a coupon code on their site, and apply that.

from woocommerce-fastspring-payment-gateway.

ps-PKrueger avatar ps-PKrueger commented on June 19, 2024

1.1.2 seems to have solved the dividing error, but now there is an error when updating the cart. This happens when I am in the cart, and I have selected multiple items with quantities. When I first go to the checkout page, add my info and click the "Place Order" button, I get a price value in the pop up that is for quantity 1 of each item in the cart. When I cancel and click the "Place Order" button again, it updates to the correct value for all items and quantities in the cart.

If I go back to the cart, it resets with this same behavior, so I think that it may be pulling incorrect quantity information from the cart. I added a picture so that you could see the different prices.

these prices dont match

from woocommerce-fastspring-payment-gateway.

ps-PKrueger avatar ps-PKrueger commented on June 19, 2024

Moved the above issue to a new issue, as I am not sure that they are related in the plugin.

from woocommerce-fastspring-payment-gateway.

cyberwombat avatar cyberwombat commented on June 19, 2024

Thanks for update. Closing this issue and addressing the other asap.

from woocommerce-fastspring-payment-gateway.

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.