News:

Support the VirtueMart project and become a member

Main Menu

[solved]Cart: Coupon error on checkout / confirm

Started by okgrowin, January 27, 2015, 20:37:13 PM

Previous topic - Next topic

okgrowin

When i save a coupon, the cart page finds it and applies the discount.
Now the input box says "Change your Coupon code"

joomla 3.3.6
virtuemart 2.9.9b
OS Linux b
PHP 5.4.34
MySQLi 5.5.40-36.1-log

Problem: when user tries to checkout it says Coupon code not found and doesn't allow the user to checkout.....

Workaround: don't save the coupon, just enter the coupon code into the input and checkout / confirm order

Hypothesis: it's trying to process the "Change your Coupon code" string as a coupon?

Test: comment out the coupon text fill in

cart\view.html.php

private function lSelectCoupon() {

$this->couponCode = (!empty($this->cart->couponCode) ? $this->cart->couponCode : '');
/*
$this->coupon_text = $this->cart->couponCode ? vmText::_('COM_VIRTUEMART_COUPON_CODE_CHANGE') : vmText::_('COM_VIRTUEMART_COUPON_CODE_ENTER');
*/
}


Results: No error...

Conclusion: there must be a bug, its processing COM_VIRTUEMART_COUPON_CODE_CHANGE as a coupon or something..
My site wasn't getting orders with my new coupon for a month before someone told me... oops

jenkinhill

VM2.9.9b was a test/development version which was not intended for use on a live site - and contained a lot of bugs.

The current stable version of VM3 is 3.0.3 - and 3.0.4 will be released very soon. Suggest you update and then see if your problem is solved.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Three_d

I get the same error as okgrowin but I use VirtueMart 3.0.3 on Joomla 3.3.6.

If you save the Coupon code in the cart it doesn't work.
But if you enter the Coupon code in the input field and confirm the order it works.

Jeroen

okgrowin

installed 3.0.3 overtop of my version. (wow so many database changes lol)

it appears the view was overwritten.
private function lSelectCoupon() {

$this->couponCode = (!empty($this->cart->couponCode) ? $this->cart->couponCode : '');
$this->coupon_text = $this->cart->couponCode ? vmText::_('COM_VIRTUEMART_COUPON_CODE_CHANGE') : vmText::_('COM_VIRTUEMART_COUPON_CODE_ENTER');
}


Checkout now goes through withe the alt text there, so it appears to be fixed in this version.

Three_d


Milbo

Quote from: okgrowin on January 28, 2015, 17:30:25 PM
installed 3.0.3 overtop of my version. (wow so many database changes lol)

It looks a lot, but most of them, just do int(11) to in(1).
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/