I have been trying to get my CCGV addon to work completely correct and I am kind of stumped for awhile. If the voucher is less than the order it works just fine, if order is same as voucher or order is less than voucher balance, my site will not get past checkout payment.
I have one page checkout installed too. Same results when I don't use the One Page Checkout. So this tells me it is in the core code someplace, correct?
So a recap:
If order is more than voucher it works great!
When voucher balance is more than order or equal to order it prompts for payment method but does not allow me to select both voucher and payment.
Anyone have an idea where/what the fix is?
Latest News: (loading..)
CCGV Select Payment Method error help
Started by ourcoffeebarn, Oct 19 2010, 15:45
1 reply to this topic
#1
Posted 19 October 2010, 15:45
Enjoy Your Coffee!
Pete
Pete
#2
Posted 28 August 2011, 09:50
Hi at all,
I'm new here. First I want apologize for my bad English.
I found this thread through google. I have the same problem with the CCGV contribution. If the order is more than the voucher, everything works fine.But if the voucher is more than the order, the customer can't choose a payment method (what sound logically). But on the checkout_confirmation, there is no payment method selected. And in the confirmation mail for the order, there is only a text "<-Payment_Modul_Text->".
I think the problem is somewhere in the code from the checkout_payment in this part. But I'm not a php crack:
Can someone help me out? I would prefer if the customer must choose a payment method also when the voucher balance is more than the the order value.
Thanks in advance
I'm new here. First I want apologize for my bad English.
I found this thread through google. I have the same problem with the CCGV contribution. If the order is more than the voucher, everything works fine.But if the voucher is more than the order, the customer can't choose a payment method (what sound logically). But on the checkout_confirmation, there is no payment method selected. And in the confirmation mail for the order, there is only a text "<-Payment_Modul_Text->".
I think the problem is somewhere in the code from the checkout_payment in this part. But I'm not a php crack:
<?php
// Start - CREDIT CLASS Gift Voucher Contribution
if (MODULE_ORDER_TOTAL_INSTALLED)
$temp=$order_total_modules->process();
$temp=$temp[count($temp)-1];
$temp=$temp['value'];
$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");
$gv_result = tep_db_fetch_array($gv_query);
if ($gv_result['amount']>=$temp){ $coversAll=true;
?>
function clearRadeos(){
document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;
for (counter = 0; counter < document.checkout_payment.payment.length; counter++) {
// If a radio button has been selected it will return true
// (If not it will return false)
if (document.checkout_payment.cot_gv.checked){
document.checkout_payment.payment[counter].checked = false;
document.checkout_payment.payment[counter].disabled=true;
} else {
document.checkout_payment.payment[counter].disabled=false;
}
}
}
<?php
} else {
$coversAll=false;?>
function clearRadeos(){
document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;
}<?php } ?>
//--></script>
<?php // echo $payment_modules->javascript_validation(); ?>
<?php echo $payment_modules->javascript_validation($coversAll); ?>
<?php // End - CREDIT CLASS Gift Voucher Contribution ?>
Can someone help me out? I would prefer if the customer must choose a payment method also when the voucher balance is more than the the order value.
Thanks in advance














