1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Still being sent to payment provider if cart value is zero (Free product)
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 360 Views |
-
Still being sent to payment provider if cart value is zero (Free product)

15 September 2012 at 8:18am
I have an item in my cart which is set at zero price. When I add this to cart and checkout, I am still sent to Worldpay to process the payment for £0.00. Is there any way to modify the code so that the "thanks" page is shown immediately if the total amount of the cart is zero?
-
Re: Still being sent to payment provider if cart value is zero (Free product)

16 September 2012 at 4:44pm
what module / version are you using to do this?
-
Re: Still being sent to payment provider if cart value is zero (Free product)

17 September 2012 at 7:04am
Silverstripe 2.4.7
Ecommerce 0.7.0
Payment 0.3.0This may not be the latest version, but the module has been quite customised for this site and is working otherwise, so I would be nervous of making any updates.
-
Re: Still being sent to payment provider if cart value is zero (Free product)

17 September 2012 at 7:39am
You might have to code a fix of your own. Have a look at OrderForm.php, and perhaps introduce a check that the order total is above 0.
I'm not sure of the exact behaviour in later versions of the code, but I can understand if someone wanted to place an order that does total $0. Eg: some kind of 'free' promotion.
| 360 Views | ||
|
Page:
1
|
Go to Top |


