Jump to content
Strider

Credit Class/Gift Vouchers/Discount Coupons 5.10

Recommended Posts

Unfortunately no clues so far.

I will let you know if I find anything.

 

 

Hi omidhz,

 

I tried to debug the php scripts. You have to do some configurations :

 

1- GO to catalog\includes\modules\payment\ccerr.php and enable the Gift Voucher credit class by :

 

$this->enabled = true;

 

2- Go to catalog\includes\languages\english\modules\payment\ccerr.php and change the Title of the Credit class , instead off ""Error credit Class" put "Gift Voucher "

 

3- Install the Gift Voucher credit class

 

After that, when a client buy something, he will have Gift Voucher as a paiement mode

 

But i dont know where you will enter the Gift code

Share this post


Link to post
Share on other sites
i have installed this contribution into a store with QTPro and Recover Cart Sales

in catalog/checkout_payment.php the right column is displayed below the "Continue Checkout Procedure" to the left. this only occurs on this page when i add the contribution.

 

when i click continue to go to catalog/checkout_confirmation.php i get the error

 

Parse error: syntax error, unexpected $end in checkout_confirmation.php on line 430

i have intalled the contribution twice with and without the bug fixes but i get the same results can any one help with this

cheers

Craig

 

It is a syntax error. It means you forget a bracket or ; or something else

 

Compare both files in CCGV5.16 contribution and your file. I am sure you will find whats wrong !!!

Share this post


Link to post
Share on other sites

I have a problem. CCGV is working as it should, I think. I have Purchase without account installed. Most of my gift vouchers are purchased by customers without an account for people with/without an account. I don't want to make a customer who may never shop at my 'store' make an account to buy a gift certificate. So, I was hoping someone here may have some ideas to help me integrate the two. It seems to me the only problem is where the GV goes after being purchased, either to an account as usual, or generate the code and send it to an email address.

 

Any ideas would be terrific.

 

Thanks again for a great contibution!

 

Todd

Share this post


Link to post
Share on other sites

This thread and the install instructions for the addon are so long, that I need to ask some questions please.

 

A ) Is it worth the effort? Is it a good/worthwhile addon?

 

B ) Where abouts on

http://oscommerce.com/community/contributions,282 is the latest complete download?

 

C ) Is there anyone out there prepared to install this addon for me for a small fee?

 

Thanks.

Share this post


Link to post
Share on other sites

Ulysses, if you want to offer gift certificates and coupons it is well worth it, in my opinion. It is a difficult install and long. As far as someone to install I can't personally recommend anyone, sorry.

Share this post


Link to post
Share on other sites

Hello, messing with CCGV and have another question. BTW, GV's purchased through Purchase without account don't get auto created and thus don't need an account to go into, thus I can spot these purchases and manually create a GV and send it out. For now...

 

My next question concerns amount input, when sending. Both in admin and in shopping cart-> send voucher. If you use a leading dollar sign it ignores the input, example $10.00 gets translated as $0.00 and 10.00 gets translated as $10.00. I am sure there is a function for this but don't know what it is.

 

Thanks,

Todd

Share this post


Link to post
Share on other sites

Umm...I guess I did not get the memo about the forums:) I was wondering if anyone could help exclude GV's from my most recent items list?

 

Thanks,

 

Todd

Share this post


Link to post
Share on other sites

Help needed please !!!,

 

I have been trying to resolve this for nearly a week but still not cracked it yet.

I hope I crack it first soon, before it cracks me.

 

I am getting this error on checkout

 

Fatal error: Call to undefined function: clear_posts() in /home/stockcon/public_html/catalog/checkout_payment.php on line 90

 

I have MS2 Nov 2005 with several contributions.

 

I have used the install instructions by Deathgod together with the package CCGV5.16 by BlueNoteMKVI.

I have gone through it several times but so far I have not got the result I need.

 

From my searching on PHP 'Call to undefined function' seems to mean that clear_posts() has not been defined yet or initialised to be available when that script runs. If this is so how do I call it so its available ?

 

Thank you for your anticipated help.

Edwin

Share this post


Link to post
Share on other sites

Edwin,

I am not a pro at this yet, but will help as much as possible. To me it looks like you must have an error in your clearposts define statement in catalog/includes/classes/order_total.php. Go through real carefully and make sure all the punctuation is correct. I know it is really frustrating and this mod is the most frustrating of all, but it does work....eventually. Also try looking in your servers scripts log to see where the error is generated.

 

 

Help needed please !!!,

 

I have been trying to resolve this for nearly a week but still not cracked it yet.

I hope I crack it first soon, before it cracks me.

 

I am getting this error on checkout

 

Fatal error: Call to undefined function: clear_posts() in /home/stockcon/public_html/catalog/checkout_payment.php on line 90

 

I have MS2 Nov 2005 with several contributions.

 

I have used the install instructions by Deathgod together with the package CCGV5.16 by BlueNoteMKVI.

I have gone through it several times but so far I have not got the result I need.

 

From my searching on PHP 'Call to undefined function' seems to mean that clear_posts() has not been defined yet or initialised to be available when that script runs. If this is so how do I call it so its available ?

 

Thank you for your anticipated help.

Edwin

Share this post


Link to post
Share on other sites

Todd,

 

Thank you for your response. I have checked my order_total.php (catalog/includes/classes/order_total.php)

And I cannot find any obvious mistakes in it: I have included the last part of my order_total.php which includes the clear_posts() defination I believe.

 

Any furher assistance is very welcome.

 

// Called in checkout process to clear session variables created by each credit class module.

//

function clear_posts() { global $HTTP_POST_VARS,$HTTP_SESSION_VARS;

if (MODULE_ORDER_TOTAL_INSTALLED) {

reset($this->modules);

while (list(, $value) = each($this->modules)) {

$class = substr($value, 0, strrpos($value, '.'));

if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) {

$post_var = 'c' . $GLOBALS[$class]->code;

if (tep_session_is_registered($post_var)) tep_session_unregister($post_var);

}

}

}

}

// Called at various times. This function calulates the total value of the order that the

// credit will be appled aginst. This varies depending on whether the credit class applies

// to shipping & tax

//

function get_order_total_main($class, $order_total) {

global $credit, $order;

// if ($GLOBALS[$class]->include_tax == 'false') $order_total=$order_total-$order->info['tax'];

// if ($GLOBALS[$class]->include_shipping == 'false') $order_total=$order_total-$order->info['shipping_cost'];

return $order_total;

}

// ############ End Added CCGV Contribution ##########

 

?>

Share this post


Link to post
Share on other sites

Ive installed this, and everything looks fine, except when i click on vouchers/coupons in my admin i get this error :

 

1146 - Table 'jaime.coupons' doesn't exist

 

select count(*) as total from coupons where coupon_active='Y' and coupon_type != 'G'

 

[TEP STOP]

 

 

can anyone help me ? Its a brand new install, maybe ive missed something ??

 

PLEASE! :-)

Share this post


Link to post
Share on other sites

Edwin,

Somewhere in your order total.php you have missed a punctuation mark or line of code that is preventing the clear_posts() from being defined.

 

ANYONE,

ANYONE here have any knowledge of using this contrib with Purchase without account?

Share this post


Link to post
Share on other sites

I have been looking for some feedback for using this contrib with PWA. But no answers to be found. Here is a start. This code disables the gift vouchers when a person checksout without account. They can still use coupon codes but no GV's as they are referred to by customer id in the SQL database. The PWA assigns customer id to 0. That means anyone who checks out without an account gets the same GV. I will be looking into this more and any advice is very welcome.

 

Edwin,

I am sorry for my brief message yesterday. I looked at you code you posted and it was OK, so there is something wrong somewhere else in order_total.php. Believe me I know it is frustrating. Have you peeked into your scripts log file? What does it say?

Share this post


Link to post
Share on other sites

I have also fixed the problem with the dollar sign. on the admin and customer side. It seems ridiculous to think a customer is NOT going to enter the $ before an amount to send a GV. If anyone cares, I will post the fix.

 

in catalog/gv_send.php

 

change:

$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);

$customer_amount = $gv_result['amount'];

$gv_amount = $HTTP_POST_VARS['amount'];

 

to:

$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);

$customer_amount = $gv_result['amount'];

$gv_amount = trim($HTTP_POST_VARS['amount'],"\$,?");

//$gv_amount = trim($gv_amount, "\$,?");

 

change:

<td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")), stripslashes($HTTP_POST_VARS['to_name']), $HTTP_POST_VARS['email'], stripslashes($HTTP_POST_VARS['to_name']), $currencies->format($HTTP_POST_VARS['amount']), $send_name); ?></td>

 

to:

<td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")), stripslashes($HTTP_POST_VARS['to_name']), $HTTP_POST_VARS['email'], stripslashes($HTTP_POST_VARS['to_name']), $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")), $send_name); ?></td>

 

 

change:

<td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")), stripslashes($HTTP_POST_VARS['to_name']), $HTTP_POST_VARS['email'], stripslashes($HTTP_POST_VARS['to_name']), $currencies->format($HTTP_POST_VARS['amount']), $send_name); ?></td>

 

to:

<td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")), stripslashes($HTTP_POST_VARS['to_name']), $HTTP_POST_VARS['email'], stripslashes($HTTP_POST_VARS['to_name']), $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")), $send_name); ?></td>

 

 

in admin/gv_mail.php

 

change:

$message .= "\n\n" . TEXT_GV_WORTH . $currencies->format($HTTP_POST_VARS['amount']) . "\n\n";

 

to:

$message .= "\n\n" . TEXT_GV_WORTH . $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")) . "\n\n";

 

 

change:

$message .= "\n\n" . TEXT_GV_WORTH . $currencies->format($HTTP_POST_VARS['amount']) . "\n\n";

 

to:

$message .= "\n\n" . TEXT_GV_WORTH . $currencies->format(trim($HTTP_POST_VARS['amount'],"\$,?")) . "\n\n";

 

change:

$insert_query = tep_db_query("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $id1 . "', 'G', '" . $HTTP_POST_VARS['amount'] . "', now())");

 

to:

$insert_query = tep_db_query("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $id1 . "', 'G', '" . trim($HTTP_POST_VARS['amount'],"\$,?") . "', now())");

 

 

change:

<td class="smallText"><b><?php echo TEXT_AMOUNT; ?></b><br><?php echo nl2br(htmlspecialchars(stripslashes($HTTP_POST_VARS['amount'],"\$,?"))); ?></td>

 

to:

<td class="smallText"><b><?php echo TEXT_AMOUNT; ?></b><br><?php echo nl2br(htmlspecialchars(stripslashes(trim($HTTP_POST_VARS['amount'],"\$,?")))); ?></td>

Share this post


Link to post
Share on other sites

Having some trouble with the coupon code part. The code seems to apply correctly on the checkout_payment.php page. The new total shows correctly. However, when the user submits the payment - the full price gets submitted to Paypal (I am also using the PayPal Pro Direct Payments & Express Checkout contribution).

 

 

I also have a problem with the credit card being required to submit the coupon code - then the user has to re enter their information after they redeem the code...

 

 

Anyone have similar problems? If so - where should I start looking?

 

 

Thanks!

Share this post


Link to post
Share on other sites

In order total check the sort order.

It should be less then Total.

 

Secondly CCGV(trad) submitted by vger is more compatible with paypal WPP.

 

 

Satish Mantri

 

Having some trouble with the coupon code part. The code seems to apply correctly on the checkout_payment.php page. The new total shows correctly. However, when the user submits the payment - the full price gets submitted to Paypal (I am also using the PayPal Pro Direct Payments & Express Checkout contribution).

I also have a problem with the credit card being required to submit the coupon code - then the user has to re enter their information after they redeem the code...

Anyone have similar problems? If so - where should I start looking?

Thanks!


Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Share this post


Link to post
Share on other sites

Todd,

 

I am grateful to your efforts to help me. I have so many Good Contributions already working so I was hoping to be able to fix this problem without having to start again.

 

scripts log file Where would I find this please ? (I have looked on the options available under CPanel and all thats provided are error logs.)

 

Any more help please ? and this is the error I get.

Fatal error: Call to undefined function: clear_posts() in /home/sxxxxx/public_html/catalog/checkout_payment.php on line 90

 

 

Edwin,

I am sorry for my brief message yesterday. I looked at you code you posted and it was OK, so there is something wrong somewhere else in order_total.php. Believe me I know it is frustrating. Have you peeked into your scripts log file? What does it say?

Share this post


Link to post
Share on other sites

hiho @ all ,

im sorry for asking help but i don't find the solution for this my problem:

 

i have installed the last oscommerce version available,

i installed only a grafic template,

i installed the last version of CCGV 5.16 by BlueNoteMKVI (8 Feb 2006)

i used the CCGV Manual Instructions Version 2 by deathgod (30 Jun 2006) for a manual installation step by step

 

after all, here is my problem:

 

i do the login --> i buy something --> checkout --> select payment --> error

(i haven't used any redeem code)

 

Error:

 

Parse error: parse error, unexpected ')' in /checkout_confirmation.php on line 70

 

in the checkout_confirmation.php :

 

62 // ################# Added CGV Contribution ##################"

63 // CCGV Contribution

64 $order_total_modules = new order_total;

65 $order_total_modules->collect_posts();

66 $order_total_modules->pre_confirmation_check();

67

68 // if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) &&

69

70 ($$payment->enabled == false)) ) {

71 if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers) ) {

72 // ################# End Added CGV Contribution ##################"

 

 

in the CCGV Manual Instructions Version 2 by deathgod (30 Jun 2006) for this step is reported:

Right Under:

$order = new order;

$payment_modules->update_status(); (around line 61)

 

Replace:

if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); (around line 55) (is not possible because we are after 61

}

 

With:

// ################# Added CGV Contribution ##################"

// CCGV Contribution

$order_total_modules = new order_total;

$order_total_modules->collect_posts();

$order_total_modules->pre_confirmation_check();

 

// if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {

if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers) ) {

// ################# End Added CGV Contribution ##################

 

[my domain is hosting linux and i have SSL 128 if maybe can help you...]

 

thanks@all for your attention

best regards @all

Share this post


Link to post
Share on other sites
68 // if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) &&

69

70 ($$payment->enabled == false)) ) {

71 if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers) ) {

72 // ################# End Added CGV Contribution ##################"

If what you quoted above is true reflection of what's acutally in your code, then the error is pretty obvious: lines 68 & 70 are ONE line whereas you broke it into two lines. Just change it to:

 

68 // if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {

69 if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers) ) {

70 // ################# End Added CGV Contribution ##################

 

Or, simply add "//" (without the quotes) in front of line 70, like this:

 

68 // if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) &&

69

70 // ($$payment->enabled == false)) ) {

 

 

Not sure that'd be all your problem, but at least that needs to be fixed.

 

Ken


commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Share this post


Link to post
Share on other sites

@GemRock: i fixed it, but now the problem is to :

 

Fatal error: Cannot redeclare class cod in /includes/modules/payment/cod.php on line 13

 

the line 13 in cod.php is:

 

13 class cod {

14 var $code, $title, $description, $enabled;

 

any solution please?

Share this post


Link to post
Share on other sites
I was getting this error after following the rtf installation instructions word for word... i think this...

 

--------------------

10) catalog/includes/classes/order_total.php

 

Right Above:

the last ?> at end of file

--------------------

 

should be

 

--------------------

10) catalog/includes/classes/order_total.php

 

Right Above:

the last

}

?>

at end of file

--------------------

otherwise those functions dont get included into the class, instead they just chill out in the file... i post this here in the hopes that it helps someone else...

i also think this line

 

----------------------------

----------------------------------------------------------------------------------------

Right Below:

<?php

$radio_buttons++;

}

?>

----------------------------------------------------------------------------------------

should be

 

----------------------------------------------------------------------------------------

Right Below:

<?php

$radio_buttons++;

}

-----------------------------------------------------------

Todd,

 

I am grateful to your efforts to help me. I have so many Good Contributions already working so I was hoping to be able to fix this problem without having to start again.

 

scripts log file Where would I find this please ? (I have looked on the options available under CPanel and all thats provided are error logs.)

 

Any more help please ? and this is the error I get.

Fatal error: Call to undefined function: clear_posts() in /home/sxxxxx/public_html/catalog/checkout_payment.php on line 90

 

 

I have now fixed the problem. For anyone interested the problem was in the catalog/includes.classes/order_total.php. The solution is on page 207 of this thread. and here is the link

 

http://forums.oscommerce.com/index.php?s=&...st&p=887831

 

In other words if what being recommnded there isn't working for you just change the position of where the code should be placed.

 

Thank you Todd for your support

Share this post


Link to post
Share on other sites

I have installed the CCGV and it mostly works. Just a couple of things that are not.

 

1. A coupon 'double discounts' in the payment page when redeemed.

2. No coupon discount info shows up in the invoice/order record, but the transaction works fine.

 

Any ideas where I might look to debug those?

Share this post


Link to post
Share on other sites
I have installed the CCGV and it mostly works. Just a couple of things that are not.

 

1. A coupon 'double discounts' in the payment page when redeemed.

2. No coupon discount info shows up in the invoice/order record, but the transaction works fine.

 

Any ideas where I might look to debug those?

 

Ok - I think I sorted them - this may help others who have the same problem, whether they were my errors or in the code I used to update this code...

 

1. I had a duplicate $order->info['total'] = $order->info['total'] - $od_amount; in includes\modules\ot_coupon.php !!

 

2. After 'Fred' had modified the system to use Globals instead of Sessions, the function apply_credit() in includes/moduls/order_total/ot_coupon.php still had the line

 

tep_session_unregister('cc_id');

 

in it, which was killing the the global as well, so the global 'cc_id' was lost on the checkout_process page and therefore a coupon was never applied to the final order creation.

 

 

Phew - after quite a lot of frustrating debugging I think this is all working now - I never had so much trouble with a contrib as this one. I even installed CCGV(trad) instead at one point and that seemed to cause more problems for me that I already had sorted out in the old version!

Edited by xmanflash

Share this post


Link to post
Share on other sites

This problem may have been answered, but this thread is very long. I have installed 5.16 using the manual install instructions. After doing so, the checkout_payment.php page appears blank, when I click view source; I get this

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Beach Glass Direct.com Beach Glass and Beach Glass Jewelry - Store</title>
<base href="http://eschnell.com:81/catalog/">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
var selected;
var submitter = null;
function submitFunction() {
  submitter = 1;
  }

function selectRowEffect(object, buttonSelect) {
 // #################### Begin Added CGV JONYO ######################
 if (!document.checkout_payment.payment[0].disabled){
 // #################### End Added CGV JONYO ######################
if (!selected) {
if (document.getElementById) {
  selected = document.getElementById('defaultSelected');
} else {
  selected = document.all['defaultSelected'];
}
 }

 if (selected) selected.className = 'moduleRow';
 object.className = 'moduleRowSelected';
 selected = object;

// one button is not an array
 if (document.checkout_payment.payment[0]) {
document.checkout_payment.payment[buttonSelect].checked=true;
 } else {
document.checkout_payment.payment.checked=true;
 }
// #################### Begin Added CGV JONYO ######################
 }
 // #################### End Added CGV JONYO ######################
}

function rowOverEffect(object) {
 if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

  </tr>
  <tr>
	<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b>Add Comments About Your Order</b></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td><textarea name="comments" wrap="soft" cols="60" rows="5"></textarea></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>
			<td class="main"><b>Continue Checkout Procedure</b><br>to confirm this order.</td>
			<td class="main" align="right"><input type="image" src="includes/languages/english/images/buttons/button_continue.gif" border="0" alt="Continue" title=" Continue "></td>
			<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%" align="right"><img src="images/pixel_silver.gif" border="0" alt="" width="1" height="5"></td>
			<td width="50%"><img src="images/pixel_silver.gif" border="0" alt="" width="100%" height="1"></td>
		  </tr>
		</table></td>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%"><img src="images/pixel_silver.gif" border="0" alt="" width="100%" height="1"></td>
			<td><img src="images/checkout_bullet.gif" border="0" alt="" width="11" height="11"></td>
			<td width="50%"><img src="images/pixel_silver.gif" border="0" alt="" width="100%" height="1"></td>
		  </tr>
		</table></td>
		<td width="25%"><img src="images/pixel_silver.gif" border="0" alt="" width="100%" height="1"></td>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%"><img src="images/pixel_silver.gif" border="0" alt="" width="100%" height="1"></td>
			<td width="50%"><img src="images/pixel_silver.gif" border="0" alt="" width="1" height="5"></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td align="center" width="25%" class="checkoutBarFrom"><a href="https://eschnell.com/catalog/checkout_shipping.php" class="checkoutBarFrom">Delivery Information</a></td>
		<td align="center" width="25%" class="checkoutBarCurrent">Payment Information</td>
		<td align="center" width="25%" class="checkoutBarTo">Confirmation</td>
		<td align="center" width="25%" class="checkoutBarTo">Finished!</td>
	  </tr>
	</table></td>
  </tr>
</table></form></td>
<!-- body_text_eof //-->
<td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<!-- shopping_cart //-->
	  <tr>
		<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading">Shopping Cart</td>
<td height="14" class="infoBoxHeading" nowrap><a href="http://eschnell.com:81/catalog/shopping_cart.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td class="boxText"><table border="0" width="100%" cellspacing="0" cellpadding="0"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td align="right" valign="top" class="infoBoxContents"><span class="infoBoxContents">1 x </span></td><td valign="top" class="infoBoxContents"><a href="http://eschnell.com:81/catalog/product_info.php?products_id=34{1}7"><span class="infoBoxContents">2 Ounces</span></a></td></tr><tr><td align="right" valign="top" class="infoBoxContents"><span class="infoBoxContents">1 x </span></td><td valign="top" class="infoBoxContents"><a href="http://eschnell.com:81/catalog/product_info.php?products_id=61"><span class="infoBoxContents">RegeniPET</span></a></td></tr></table></td>
 </tr>
 <tr>
<td class="boxText"><img src="images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td align="right" class="boxText">$64.50</td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
		</td>
	  </tr>
<!-- shopping_cart_eof //-->
<!-- best_sellers //-->
	  <tr>
		<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading">Bestsellers</td>
<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td class="boxText"><table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top">01.</td><td class="infoBoxContents"><a href="http://eschnell.com:81/catalog/product_info.php?products_id=31">Necklace</a></td></tr></table></td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
		</td>
	  </tr>
<!-- best_sellers_eof //-->
<!-- reviews //-->
	  <tr>
		<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading">Reviews</td>
<td height="14" class="infoBoxHeading" nowrap><a href="http://eschnell.com:81/catalog/reviews.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td class="boxText">There are currently no product reviews</td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
		</td>
	  </tr>
<!-- reviews_eof //-->
<!-- information //-->
	  <tr>
		<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading">We Accept</td>
<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td align="center" class="boxText"><img src="images/credit-cards-square.gif" border="0" alt="" width="94" height="96"></td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
		</td>
	  </tr>
<!-- information_eof //-->
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
<td class="footer">  Saturday 23 September, 2006  </td>
<td align="right" class="footer">    </td>
 </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center" class="smallText"><img src="images/oasislogo.gif" border="0" alt="" width="220" height="80"><br><br>Copyright © 2006 <a href="http://eschnell.com:81/catalog/index.php">Beach Glass Direct.com</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></td>
 </tr>
</table>
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-377932-1";
urchinTracker();
</script><!-- footer_eof //-->
<br>
</body>
</html>

Edited by beachglassdirect.com

Eddie Schnell

Custom PC Builder

If you dare, take my advice. But make sure you back up TWICE before.

Share this post


Link to post
Share on other sites

The code for my checkout_payment.php is

<?php
/*
 $Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');
 // #################### Begin Added CGV JONYO ######################
if (tep_session_is_registered('cot_gv')) tep_session_unregister('cot_gv');  //added to reset whether a gift voucher is used or not on this order
// #################### End Added CGV JONYO ######################

// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }

// if no shipping method has been selected, redirect the customer to the shipping method selection page
 if (!tep_session_is_registered('shipping')) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
 }

// avoid hack attempts during the checkout procedure by checking the internal cartID
 if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
if ($cart->cartID != $cartID) {
  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
 }

// held orders
if (tep_session_is_registered('held_order')) {
tep_db_query("delete from " . TABLE_HOLDING_ORDERS . " where orders_id = '" . $held_order . "'");
tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS . " where orders_id = '" . $held_order . "'");
tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . $held_order . "'");
tep_db_query("delete from " . TABLE_HOLDING_ORDERS_STATUS_HISTORY . " where orders_id = '" . $held_order . "'");
tep_db_query("delete from " . TABLE_HOLDING_ORDERS_TOTAL . " where orders_id = '" . $held_order . "'");
tep_session_unregister('held_order');
}

// if we have been here before and are coming back get rid of the credit covers variable
// #################### Added CGV ######################
if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers');  // CCGV Contribution
// #################### End Added CGV ######################

// Stock Check
 if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) {
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
  if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) {
	tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
	break;
  }
}
 }

// #################### Begin Added CGV JONYO ######################
// #################### THIS MOD IS OPTIONAL! ######################

// load the selected shipping module
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping($shipping);

// #################### End Added CGV JONYO ######################
// #################### THIS MOD WAS OPTIONAL! ######################

// if no billing destination address was selected, use the customers own address as default
 if (!tep_session_is_registered('billto')) {
tep_session_register('billto');
$billto = $customer_default_address_id;
 } else {
// verify the selected billing address
$check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");
$check_address = tep_db_fetch_array($check_address_query);

if ($check_address['total'] != '1') {
  $billto = $customer_default_address_id;
  if (tep_session_is_registered('payment')) tep_session_unregister('payment');
}
 }

 require(DIR_WS_CLASSES . 'order.php');
 $order = new order;
 // #################### Added CGV ######################
 require(DIR_WS_CLASSES . 'order_total.php');//ICW ADDED FOR CREDIT CLASS SYSTEM
 $order_total_modules = new order_total;//ICW ADDED FOR CREDIT CLASS SYSTEM
 $order_total_modules->clear_posts(); // ADDED FOR CREDIT CLASS SYSTEM by Rigadin in v5.13
// #################### End Added CGV ######################

 if (!tep_session_is_registered('comments')) tep_session_register('comments');

 $total_weight = $cart->show_weight();
 $total_count = $cart->count_contents();
 // #################### Added CGV ######################
 $total_count = $cart->count_contents_virtual(); //ICW ADDED FOR CREDIT CLASS SYSTEM
// #################### End Added CGV ######################

// load all enabled payment modules
 require(DIR_WS_CLASSES . 'payment.php');
 $payment_modules = new payment;

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT);

 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
var selected;
<?php // #################### Added CGV ###################### ?>
var submitter = null;
function submitFunction() {
  submitter = 1;
  }
<?php // #################### End Added CGV ###################### ?>

function selectRowEffect(object, buttonSelect) {
 // #################### Begin Added CGV JONYO ######################
 if (!document.checkout_payment.payment[0].disabled){
 // #################### End Added CGV JONYO ######################
if (!selected) {
if (document.getElementById) {
  selected = document.getElementById('defaultSelected');
} else {
  selected = document.all['defaultSelected'];
}
 }

 if (selected) selected.className = 'moduleRow';
 object.className = 'moduleRowSelected';
 selected = object;

// one button is not an array
 if (document.checkout_payment.payment[0]) {
document.checkout_payment.payment[buttonSelect].checked=true;
 } else {
document.checkout_payment.payment.checked=true;
 }
// #################### Begin Added CGV JONYO ######################
 }
 // #################### End Added CGV JONYO ######################
}

function rowOverEffect(object) {
 if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
<?php // #################### Begin Added CGV JONYO ###################### ?>

<?php
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;
//document.checkout_payment.cot_gv.checked=false;
} else {
document.checkout_payment.payment[counter].disabled=false;
//document.checkout_payment.cot_gv.checked=true;
}
}
}<? } else { $coversAll=false;?>
function clearRadeos(){
document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;
}<? } ?>
<?php // #################### End Added CGV JONYO ###################### ?>
//--></script>
<?php // #################### Begin Added CGV JONYO ###################### ?>
<?php // echo $payment_modules->javascript_validation(); ?>
<?php echo $payment_modules->javascript_validation($coversAll); ?>
<?php // #################### End Added CGV JONYO ###################### ?>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
	  <tr class="infoBoxNoticeContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 }
?>
<?php // #################### Begin Added CGV JONYO ###################### ?>
<?php // #################### THIS MOD IS OPTIONAL! ###################### ?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo HEADING_PRODUCTS; ?></b><?  echo ' <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
		<td>
 <table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
//}

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
  echo '		  <tr>' . "\n" .
	'			<td width="10%" class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
	'			<td width="60%" class="main" valign="top">' . $order->products[$i]['name'];

  if (STOCK_CHECK == 'true') {
 echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
  }

  if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
 for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
   echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
 }
  }

  echo '</td>' . "\n";

  if (sizeof($order->info['tax_groups']) > 1) echo '			<td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '% </td>' . "\n";

  echo '			<td width="30%"class="main" align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . ' </td>' . "\n" .
	'		  </tr>' . "\n";
}
?>
			<tr>
		<td COLSPAN="3" valign="top" align="right">
	   <table border="0" cellspacing="0" cellpadding="3">
<?php
if (MODULE_ORDER_TOTAL_INSTALLED) {
  //$temp=$order_total_modules->process();
  echo $order_total_modules->output();
}
?>
				</table>
	 </td>
	  </tr>
  </table>
  </td>
	  </tr>
	</table></td>
  </tr>
<!--			  </table></td>
		 </tr-->
<?php // #################### End Added CGV JONYO ###################### ?>
<?php // #################### THIS MOD WAS OPTIONAL! ###################### ?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
			<td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br><br><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
			<td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
			  <tr>
				<td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
				<td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
			  </tr>
			</table></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
 $selection = $payment_modules->selection();

 if (sizeof($selection) > 1) {
?>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>
			<td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
<?php
 } else {
?>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
<?php
 }

 $radio_buttons = 0;
 for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {
  echo '				  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
} else {
  echo '				  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
}
?>
				<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="3"><b>
				  <?php 
					  echo $selection[$i]['module'];
					  if ($selection[$i]['cost']){
						echo ' ('.$currencies->format($selection[$i]['cost']).')'; 
					  }
				  ?></b></td>
				<td class="main" align="right">
<?php
if (sizeof($selection) > 1) {
  echo tep_draw_radio_field('payment', $selection[$i]['id']);
} else {
  echo tep_draw_hidden_field('payment', $selection[$i]['id']);
}
?>
				</td>
				<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			  </tr>
<?php
if (isset($selection[$i]['error'])) {
?>
			  <tr>
				<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				<td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>
				<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			  </tr>
<?php
} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
?>
			  <tr>
				<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				<td colspan="4"><table border="0" cellspacing="0" cellpadding="2">
<?php
  for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
				  <tr>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
					<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  </tr>
<?php
  }
?>
				</table></td>
				<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			  </tr>
<?php
}
?>
			</table></td>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
<?php
$radio_buttons++;
 }
  // #################### Begin Added CGV JONYO ######################

if (tep_session_is_registered('customer_id')) {
if ($gv_result['amount']>0){
 echo ' <tr><td width="10">' .  tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2>' . "\n" .
							  ' <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" .
						 '   <td width="10">' .  tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td class="main">' . $gv_result['text'];

 echo $order_total_modules->sub_credit_selection();
 }
}


// #################### End Added CGV JONYO ######################

?>
		</table></td>

	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php // #################### Added CGV ###################### 
 echo $order_total_modules->credit_selection();//ICW ADDED FOR CREDIT CLASS SYSTEM
// #################### End Added CGV ###################### ?>

		</table></td>
	  </tr>
	</table></td>
<?php
// BEGIN Shipping Insurance 2.0 with customer choice
if (($order->info['total'] >= MODULE_ORDER_TOTAL_INSURANCE_OVER) && (MODULE_ORDER_TOTAL_INSURANCE_STATUS == 'true') && (MODULE_ORDER_TOTAL_INSURANCE_USE == 'true')) {
?>
			</tr>
		<tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	 <td class="main"><b><?php echo TEXT_SHIPPING_INSURANCE_TITLE; ?></b></td>
  </tr>
		<tr>
			<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
				<tr class="infoBoxContents">
					<td class="main" width="100%" valign="top" align="right"><b><?  echo TEXT_SHIPPING_INSURANCE_CHOICE; ?>  <input type="checkbox" name="choose_insurance" value="1" checked>      </b></td>
				</tr>
			</table></td>
		</tr>
		<tr>
	<td><?php  echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
}
// END Shipping Insurance 2.0 with customer choice
?>

	  </table></td>
	</tr>
	</table></td>
  </tr>
<?php
 }
?>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
			<td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
		  </tr>
		</table></td>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
			<td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
		  </tr>
		</table></td>
		<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
		<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
			<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
		<td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
		<td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
		<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
		<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
	  </tr>
	</table></td>
  </tr>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Any help is greatly apprediated!


Eddie Schnell

Custom PC Builder

If you dare, take my advice. But make sure you back up TWICE before.

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

×