Comments (7)
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.
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.
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.
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.
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.
from woocommerce-fastspring-payment-gateway.
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.
Thanks for update. Closing this issue and addressing the other asap.
from woocommerce-fastspring-payment-gateway.
Related Issues (20)
- Error if product is a woo-commerce variable product HOT 2
- how to send license key in email
- Error Message HOT 3
- API is not working => woocommerce "order cancelled" HOT 16
- setup perfectly but it's not working HOT 17
- Error processing checkout. Please try again. HOT 1
- Regular payment works, but popup doesn't. HOT 3
- Shipping price not working on Fastspring HOT 4
- New Product Tax Categories HOT 1
- Integration with WooCommerce subscriptions HOT 18
- Does this plugin still work? HOT 1
- Fatal Error HOT 1
- Adding subscription products to cart works, checkout does not HOT 5
- 'expired' error
- Subscription renewal orders are on-hold HOT 5
- WebHooks are failing to complete some order but not all. HOT 9
- A lot of fields from checkout dissapear HOT 4
- Storefront popup opens and close immediately. HOT 7
- Compatibility with Woocommerce Subscriptions? HOT 5
- Not working with Woocommerce Versión 8.3.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from woocommerce-fastspring-payment-gateway.