VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: sickenlysweete on August 03, 2014, 04:44:03 AM

Title: help with coupon use and zero priced cart
Post by: sickenlysweete on August 03, 2014, 04:44:03 AM
after a coupon has been used and the cart price is zero, how do i get it to finish and confirm payment and redirect back to the site
rather than just being stuck on the paypal payment page?
because of course no payment is needed with a zero priced cart.
what settings need to be changed and to what?
thanks
ss
Title: Re: help with coupon use and zero priced cart
Post by: sickenlysweete on August 03, 2014, 05:07:19 AM
i need it to confirm the order when a cart price is zero. and not go to the payment method of paypal page.
Title: Re: help with coupon use and zero priced cart
Post by: seyi on August 03, 2014, 18:26:08 PM
You would have to setup a different payment for 0 cart total:
- Payment 1: paypal, and set Minimum amount to 0.01
- Payment 2: Free Order, and set Maximum amount to 0.01

Then when the order total is 0, only the Free order payment should show.
Title: Re: help with coupon use and zero priced cart
Post by: sickenlysweete on August 03, 2014, 21:17:18 PM
thank you for the reply
what kind of payment method should i use for zero?
anouther paypal one? need more info to set it up
thankyou
Title: Re: help with coupon use and zero priced cart
Post by: seyi on August 03, 2014, 21:50:46 PM
No, not paypal again.  Just select 'VM Payment - Standard' for the free option.
Title: Re: help with coupon use and zero priced cart
Post by: sickenlysweete on August 03, 2014, 22:12:57 PM
ok did that, and now when i hit the final confirm payment button
i get a blank page that says
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 1966080 bytes) in  visionsonline/libraries/tcpdf/tcpdf.php on line 23580

what does this mean and how can i fix it??

thanks
ss
Title: Re: help with coupon use and zero priced cart
Post by: seyi on August 03, 2014, 23:00:41 PM
In the creation of your pdf invoice this error was thrown.  You just ran out of memory.  Increase your memory limit to at least 64megs and that error should go away.
Title: Re: help with coupon use and zero priced cart
Post by: sickenlysweete on August 03, 2014, 23:15:28 PM
thank you now i'll just have to get my host server to increase that memory limit.