Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CCGV Select Payment Method error help


ValleyRoaster

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!

Pete

Link to comment
Share on other sites

  • 10 months later...

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:

 

<?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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...