Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Sign in to follow this  

CCGV Select Payment Method error help

Recommended Posts

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?

Life Is Too Short,

Enjoy Your Coffee!


Share this post

Link to post
Share on other sites

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:


// Start - CREDIT CLASS Gift Voucher Contribution 

       $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(){
   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;
     } else {
} else { 

 function clearRadeos(){
 }<?php } ?>
<?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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this