jadek Posted September 29, 2005 Posted September 29, 2005 Hi! Under the redeeming gift voucher FAQs, it says: If you have funds in your Gift Voucher Account, you can use those funds to purchase other items in our store. At the checkout stage, an extra box will appear. Clicking this box will apply those funds in your Gift Voucher Account. Please note, you will still have to select another payment method if there is not enough in your Gift Voucher Account to cover the cost of your purchase. If you have more funds in your Gift Voucher Account than the total cost of your purchase the balance will be left in you Gift Voucher Account for the future. No box appears to use my credits. I have 75.00 in test credits and no code to redeem, even though I confirmed in the admin. Where is the box that is supposed to popup to use my existing credits shown under "my account"????? HELP!!!
shaytaan Posted September 29, 2005 Posted September 29, 2005 Hi! Under the redeeming gift voucher FAQs, it says:If you have funds in your Gift Voucher Account, you can use those funds to purchase other items in our store. At the checkout stage, an extra box will appear. Clicking this box will apply those funds in your Gift Voucher Account. Please note, you will still have to select another payment method if there is not enough in your Gift Voucher Account to cover the cost of your purchase. If you have more funds in your Gift Voucher Account than the total cost of your purchase the balance will be left in you Gift Voucher Account for the future. No box appears to use my credits. I have 75.00 in test credits and no code to redeem, even though I confirmed in the admin. Where is the box that is supposed to popup to use my existing credits shown under "my account"????? HELP!!! * It should show it in your shoppingcart box * If it's not there, then maybe you have added the code before "if".. means that it show only if you have an item in your shoppingcart box * Install this then you have it in your account page http://www.oscommerce.com/community/contri.../download,10363 * if you wanna make a new box for showing your gift balance then use this: <?php /* $Id: information.php,v 1.1.1.1 2003/02/20 01:03:53 ptosh Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="padding-top:0px; padding-bottom:0px; padding-left:1px; padding-right:4px;"><?php $info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART); // new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART), $column_location); // ############ Added CCGV Contribution ########## // CREDIT CLASS script moved by Rigadin in v5.13 for compatibility with STS $cart_contents_string =" <script language=\"javascript\"> function couponpopupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') } //--></script>"; // $cart_contents_string = ''; // ############ End Added CCGV Contribution ########## // $cart_contents_string = ''; //if ($cart->count_contents() > 0) { // ############ Added CCGV Contribution ########## $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $cart_contents_string .= '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; // Modified in v5.13 by Rigadin for STS compatibility // ############ End Added CCGV Contribution ########## // ############ Added CCGV Contribution ########## if (tep_session_is_registered('customer_id')) { $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'] > 0 ) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator('pixel_blue.gif', '100%', '1')); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext8g">' . VOUCHER_BALANCE . '</td><td class="smalltext8g" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>'); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">[' . BOX_SEND_TO_FRIEND . ']</a></td></tr></table>'); } if (tep_session_is_registered('gv_id')) { $gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'"); $coupon = tep_db_fetch_array($gv_query); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator('pixel_blue.gif', '100%', '1')); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_REDEEMED . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>'); } /*if (tep_session_is_registered('cc_id') && $cc_id) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . CART_COUPON . '</td><td class="smalltext" align="right" valign="bottom">' . '<a href="javascript:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>'); }*/ /* Serialio.com Edit Begin */ if (tep_session_is_registered('cc_id') && $cc_id) { $coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_id = '" . $cc_id . "'"); $coupon = tep_db_fetch_array($coupon_query); $coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'"); $coupon_desc = tep_db_fetch_array($coupon_desc_query); $text_coupon_help = sprintf("%s",$coupon_desc['coupon_name']); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator('pixel_blue.gif', '100%', '1')); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . $text_coupon_help . '<br>' . '</td></tr></table>'); }} /* Serialio.com Edit End */ // ############ End Added CCGV Contribution ########## new infoBox($info_box_contents, true, $column_location); ?> </td> </tr> </table> <!-- information_eof //--> [/code] ?,???`???,?? God must love stupid people, he made so many ??,???`???,?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.