trustco Posted November 30, 2005 Share Posted November 30, 2005 (edited) Trustco, First you need to change the order total modules sequences to ensure discounts appear before the total, to change the text look in \includes\modules\order_total\ot_coupon.php find the title beigng returned and change if the coupon type = ?S? HTH Si. thanks...the order works perfect now. what would i change the coupon type to in order for it to display the name? *edit* i found a way arond it. just enter my own code, instead of auto generating one. Edited November 30, 2005 by trustco Quote Link to comment Share on other sites More sharing options...
trustco Posted November 30, 2005 Share Posted November 30, 2005 also, i did a search for the coupon help popup, and i could not find a definate resolution for this. has anybody actually figured out what the problem is, why it will not display? Quote Link to comment Share on other sites More sharing options...
Sethman Posted December 1, 2005 Share Posted December 1, 2005 Hey I was going to install this contrib, but which file do I download?? There are a billion... is there a complete package that I can just get with one file? Thanks Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 1, 2005 Share Posted December 1, 2005 Sethman, PM me with an email address if you would like a "basic package with working features" I have a fully repacked easy to install of v5.13. If you want to wait for a few week there is another package being buit containing ALL current features and a few extra bits but as you can appreciate no time scale can be given on this. Si. Quote Link to comment Share on other sites More sharing options...
oliswiss Posted December 1, 2005 Share Posted December 1, 2005 oliswiss,at a guess checkout function use_credit_amount you have either go the code in there twice or you are somhow calling that function twice. thanks you, but i can't find where the problem is. In "includes/classes/order_total.php" is only one line with "use_credit_amount". The others are out-commentated! function sub_credit_selection(){ $selection_string = ''; $close_string = ''; $credit_class_string = ''; if (MODULE_ORDER_TOTAL_INSTALLED) { reset($this->modules); $output_string = ''; while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) { $use_credit_string = $GLOBALS[$class]->use_credit_amount(); if ($selection_string =='') $selection_string = $GLOBALS[$class]->credit_selection(); if ( ($use_credit_string !='' ) || ($selection_string != '') ) { somewhat wrongly adjusted in the Admin? Are to be loaded ot_coupon.php AND ot_gv.php? I am very confused ... :huh: This line load both ... :blink: while (list(, $value) = each($this->modules)) { thanks Oli Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 1, 2005 Share Posted December 1, 2005 (edited) oliswiss, Just had another thought you have not taken a copy (and created an extra document) of any files in catalog\includes\modules\order_total have you? this in known to cause problems in oSC. Si. Edited December 1, 2005 by scranmer Quote Link to comment Share on other sites More sharing options...
oliswiss Posted December 1, 2005 Share Posted December 1, 2005 Just had another thought you have not taken a copy (and created an extra document) of any files in catalog\includes\modules\order_total have you? this in known to cause problems in oSC. scranmer, following files are in "catalog\includes\modules\order_total\": ot_coupon.php ot_gv.php ot_loworderfee.php ot_shipping.php ot_subtotal.php ot_tax.php ot_total.php (I am not reliably whether I correctly understood their question!? :-" ) Oli Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 1, 2005 Share Posted December 1, 2005 Ah bugger there all standard. Sorry Si. Quote Link to comment Share on other sites More sharing options...
oliswiss Posted December 1, 2005 Share Posted December 1, 2005 Should only one input field appear for both kinds of coupon? in the line while (list(, $value) = each($this->modules)) { are always both loaded ... thats right? Quote Link to comment Share on other sites More sharing options...
zmaster Posted December 1, 2005 Share Posted December 1, 2005 Hey folks, I'm looking for the "fully repacked easy to install of v5.13" package that scramner mentioned above. Does anybody have have a copy of this they can send my way? I've decided to take the plunge with this contrib and want to use a stable and fairly-easy to install version. Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2005 Share Posted December 1, 2005 Hi, I would like some advice regarding VAT and discount coupons I want the total payable to be the subtotal minus the value of the voucher and the tax to be in relation to te revised total (not the pre discount amount) I have tried trial and error but im getting nowhere. Any help on setting this up would be appreciated. Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 2, 2005 Share Posted December 2, 2005 Rick, I would say you need to rearrange your order totals sequence in admin (see a previous post I recently made for the sequence) and there is an option to Include Tax in discount (or not) if this is what your after. HTH Si. Quote Link to comment Share on other sites More sharing options...
wider Posted December 3, 2005 Share Posted December 3, 2005 Hello Everybody! I've been fighting for hours; I found a couple of people with the same problems but no real answers. The story: I have a voucher balance and would like to use if for my purchase. The balance will cover 100% of the purchase (and shipping and tax). I check "use Gift Voucher account balance" and "continue" Now, when there is only one payment module installed the payment method displayed on checkout_confirmation and in orders.php will be that particular module. Although, no payment had to be made via this method. If there are two ore more modules installed, but all but one is set to be displayed, the one with the lowest sort order will be selected by default. If more than one module is displayed, the payment method will be blank (which is better than the incorrect display, but still not really great). Has anyone found a healthy fix for this? (e.g. display a Payment Method: Voucher) Thanks already! German Quote Link to comment Share on other sites More sharing options...
kittmaster Posted December 3, 2005 Share Posted December 3, 2005 FOUND AN INTERESTING BUG! Ok, I have 5.14 installed, I sent myself a $210.00 voucher, I purchase a product for $49.95 and I DO NOT use the voucher for this purchase........unchecked, I use paypal IPN to check out..........the problem is it goes directly to the checkout_success page........never goes to paypal......> congrats order processed???????????? But, if I order something or quantity 4 X 49.95 (+shipping > greater than $210.00) which is MORE than the $210 voucher value while it is still unchecked, the entire order and correct amount goes to paypal for normal processing. And returns to checkout_success.php I thought it was a coding or copy and paste error, but this is a very specific failure method. I then USED the $210.00 voucher for something that cost more than $210 just to get rid of it and the difference was applied, the difference passed normally to paypal no problem. I went BACK and repurchased a single $49.95 item with no voucher and it passed normally to paypal. So having a voucher balance without using it and purchasing something with shipping that does not exceed the voucher value causes the paypal IPN to malfunction. Any ideas? Its on my beta site now and you can email me for an account for real time testing if needed. I'd like to get this resolved asap. Any help or ideas?????????? Thanks Chris Quote Link to comment Share on other sites More sharing options...
chooch Posted December 3, 2005 Share Posted December 3, 2005 All, After lots of comments about this, I have just uploaded a fix for the redeem message here. Dont forget to read the README.TXT!!! Akmac, Check my version of ot_coupon.php against yours, hopefully this will help you find your error. HTH Si. Hi Si I have used this contribution and it has to said that it is a good add-on BUT..... if i redeem a fixed price coupon, say $5 or so, it states that 'successfully applied $5 on orders of $70' OR 'successfully applied HOWEVER...' that is fine, but when it comes to using a percentage then it KIND OF WORKS. It actually works out the final percentage (in this case 14.5%) 'successfully applied $14.50 on orders of $100' is still ok BUT 'successfully applied $145.00 on orders over $7.99' seems wrong even though it has correctly applied 14.5% on $1000 Please can you advise on how to show 'successfully applied 14.5% on orders over $100'. how to actually get the % to show when percentage is set up in coupon admin thank you very much for the contribution! Quote Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
ShootPaint Posted December 4, 2005 Share Posted December 4, 2005 Can someone point me to the file used in the scammers 5.13 easy install that totals the order. When using a coupon the coupon is shown but not deducted from the final total as the customer checks out. http://www.shootpaint.com/products/catalog the test coupon code is 10 if anyone wants to check the test site out. Quote Link to comment Share on other sites More sharing options...
kittmaster Posted December 4, 2005 Share Posted December 4, 2005 Can someone point me to the file used in the scammers 5.13 easy install that totals the order. When using a coupon the coupon is shown but not deducted from the final total as the customer checks out. http://www.shootpaint.com/products/catalog the test coupon code is 10 if anyone wants to check the test site out. Yep its not working, the redeem fix needs to be applied as well. I'd try the 5.14 upgrade. I have no experience with 5.13, but I install 5.14 on my site and it works flawlessly.........for the most part......LOL Chris Quote Link to comment Share on other sites More sharing options...
ShootPaint Posted December 4, 2005 Share Posted December 4, 2005 Yep its not working, the redeem fix needs to be applied as well. I'd try the 5.14 upgrade. I have no experience with 5.13, but I install 5.14 on my site and it works flawlessly.........for the most part......LOL Chris I previously had 5.14 workin on my site and there was a server side crash. After it was loaded from the backups I have never been able to get 5.14 to work again. I can insert coupons but there isnt a area to redeem them with. This has left me waiting for the 5.15 release, until I saw the easy install for the 5.13. When I saw that I thought I would give it a try on my test site before migrating it to the live site. Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 4, 2005 Share Posted December 4, 2005 (edited) DOH! Its based on a working 5.13 version. Several people had the downbload and 2 installed it and reported no problems. I'll go back and find and add the fixes - give us a few hours. Sorry Si. Edited December 4, 2005 by scranmer Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 4, 2005 Share Posted December 4, 2005 All, I (and I take it a few others) have no problems when integrating it with basic installs and it?s when you have multiple contributions and payment modules installed there are problems. Since I cannot test for these I have asked for this to be removed. Best short term approach is to take either 5.13e Changes + Bug Fixes by brettsg on 22 Jul 2005 or Use this to easily install CCVG 5.14 by Jessman on 7 Aug 2005 How to decide - 5.13e is a complete install and 5.14 needs to be pointed at an empty folder to extract the files then move over by hand. Allot of people are using 5.13 without too many issues. Start there, make a system backup install and test thoroughly. If you find problems restore the backup and try 5.14 Sorry and as soon as there is another finished release we?ll ask for some testers but it may be a few weeks yet. Si. PS remember to read the install notes and how to setup the order total modules as this is where most of the issues start. Quote Link to comment Share on other sites More sharing options...
scranmer Posted December 4, 2005 Share Posted December 4, 2005 kittmaster, look in the payment module when it decides if it needs to call one it should check the session variables credit_covers & cot_gv. cot_gv is the indicator that the use has ticked the box to use their credit. chooch, I had to read you mail a few times but I think you just want to change the message to say applied 14.5%. If so see around line 132 in catalog\includes\modules\order_total the message is stored in ERROR_REDEEMED_AMOUNT you can change it by adding something like $msg = ERROR_REDEEMED_AMOUNT . $coupon_result['coupon_amount']; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error='.$this->code.'&error=' . urlencode($msg), 'SSL')); ShootPaint, Had a quick look at your site and I get the message ?This coupon could only be used 1 times.? At a guess I would say you have the coupon setting to 1 use NOT 1 use per customer. HTH Si. Quote Link to comment Share on other sites More sharing options...
ShootPaint Posted December 4, 2005 Share Posted December 4, 2005 ShootPaint, Had a quick look at your site and I get the message ?This coupon could only be used 1 times.? At a guess I would say you have the coupon setting to 1 use NOT 1 use per customer. HTH Si. You are correct. I have changed the site if you would like to view it now. Quote Link to comment Share on other sites More sharing options...
fasttreck Posted December 4, 2005 Share Posted December 4, 2005 (edited) Hi All ! I just install new "Credit Class and Gift Voucher "v5.13" module. Its not given me any error code and admin panel also work perfectly but I think there was some problem in my "checkout_payment.php" file bcs there was no option available for redeem gift voucher or discount coupons !!! Can any one help me for it ? Given belove is the code : <?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) 2004 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // 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')); } // CCGV Start - Addition if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers'); // CCGV End - Addition // 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')); } } // 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; } } } // 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; // CCGV Start - Addition require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_total_modules->clear_posts(); // CCGV End - Addition if (!tep_session_is_registered('comments')) tep_session_register('comments'); $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); // CCGV Start - Addition $total_count = $cart->count_contents_virtual(); // CCGV End - Addition // 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 // CCGV Start - Addition ?> var submitter = null; function submitFunction() { submitter = 1; } <?php // CCGV End - Addition ?> function selectRowEffect(object, buttonSelect) { 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; } } function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver'; } function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } //--></script> <?php echo $payment_modules->javascript_validation(); ?> </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 // CCGV Start - Addition echo $order_total_modules->credit_selection(); // CCGV End - Addition ?> <?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 } ?> <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" nowrap><?php if ($selection[$i]['module'] == 'PayPal (Credit Card / Debit)') { ?> <img src="images/logo_ccVisa.gif" border="0" title=" Visa " alt="Visa" align="bottom"> <img src="images/logo_ccElectron.gif" border="0" title=" Electron " alt="Electron" align="bottom"> <img src="images/logo_ccMC.gif" border="0" title=" MasterCard " alt="MasterCard" align="bottom"> <img src="images/logo_ccDelta.gif" border="0" title=" Delta " alt="Delta" align="bottom"> <img src="images/switch.gif" border="0" title=" Switch " alt="Switch"align="bottom"> <img src="images/maestro.gif" border="0" title=" Maestro " alt="Maestro"align="bottom"> <img src="images/logo_ccSolo.gif" border="0" title=" Solo " alt="Solo"align="bottom"> <img src="images/logo_ccDiscover.gif" border="0" title=" Discover " alt="Discover" align="bottom"> <img src="images/logo_ccAmex.gif" border="0" title=" American Express " alt="Discover" align="bottom"> <big><b>or</b></big> <img src="images/banner_intl.gif" border="0" title=" PayPal " alt="PayPal" align="bottom"> <br> <b>You do not need to be a PayPal member to pay by credit card. <script> document.writeln('<a style="cursor:hand" onclick="javascript:popup=window.open(' + '\'http://fasttreck.info/CreditCardExplain.html\',\'popup\',' + '\'scrollbars,resizable,width=500,height=600,left=50,top=50\'); popup.focus(); return false;">' + '<font color="blue"><u>[info]</u></font></a>'); </script><noscript> <a href="CreditCardExplain.html" target="_blank"><font color="blue"><u>[info]</u></font></a> </noscript></b> <?php } else if ($selection[$i]['module'] == 'Check/Money Order') { ?><big><b>Check or Money Order </b></big> <img src="/check.gif" border=0 alt=" Send Us a Check " align="absmiddle"> <?php } else { echo '<big><b>' . $selection[$i]['module'] . '</b></big>'; } ?></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++; } ?> </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_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'); ?> Shop URL: Fasttreck.info Waiting for fast reply, Best Regards, Maria Late Edited December 4, 2005 by fasttreck.info Quote Link to comment Share on other sites More sharing options...
chooch Posted December 4, 2005 Share Posted December 4, 2005 $msg = ERROR_REDEEMED_AMOUNT . $coupon_result['coupon_amount'];tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error='.$this->code.'&error=' . urlencode($msg), 'SSL')); thanks for the swift feedback and advice Si i followed the instructions but the display shows: 'successfully applied for 15.0000' instead of 'successfully apllied for 15% on orders over ?25' the coupon admin in the percentage section show 15.0000 not 15% (even though 15% is applied successfully) so i'll stick with your original ====================================================== thanks Quote Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
scranmer Posted December 4, 2005 Share Posted December 4, 2005 You are correct. I have changed the site if you would like to view it now. Shootpaint, I hope you did a manual install and not the drag and drop because if so at a guess you have just missed something in the catalog\includes\boxes\shopping_cart.php since the coupon code is there which you can check by going to the next page and paypal, they both have the discount applied. HTH Si. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.