Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Class/Gift Vouchers/Discount Coupons 5.10


Strider

Recommended Posts

In keeping with the recent topic I have been updating my contribs and there are several minor changes I have made to ccgv. Some of the changes align buttons, or make the contrib work when someone enters a dollar or pound sign, one adds purchase without account compatibility, some are multi language compatibility things. I am posting them here for those that care to try out before I upload them. Feedback would be great.

 

lildog

 

 

 

The changes are:

 

 

in catalog/gv_send.php

 

 

*** CHANGE:

<tr>

<td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>

</tr>

***TO:

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

 

 

*** CHANGE:

$gv_amount = trim($HTTP_POST_VARS['amount']);

 

***TO:

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

$gv_amount = trim($gv_amount, "\$,€");

 

 

*** CHANGE:

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?><br><br><?php echo 'gv '.$id1; ?></td>

 

***TO:

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?><br><br><?php echo TEXT_SUCCESS_CODE.$id1; ?></td>

 

 

*** CHANGE:

<tr>

<td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>

</tr>

 

***TO:

<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 class="main" align="right"><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

 

 

*** CHANGE:

<td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format($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 stripslashes($HTTP_POST_VARS['message']); ?></td>

 

***TO:

<td class="main">  <?php echo stripslashes($HTTP_POST_VARS['message']); ?></td>

 

 

*** CHANGE:

<tr>

<td class="main"><?php echo tep_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . '</a>'; ?></td>

<td align="right"><br><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td>

</tr>

</table></form></td>

</tr>

 

***TO:

<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"><?php echo tep_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_image_submit('button_send.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>

</table></form></td>

</tr>

 

*** CHANGE:

<td class="main"><?php echo ENTRY_AMOUNT; ?><br><?php echo tep_draw_input_field('amount', $HTTP_POST_VARS['amount'], '', '', false); if ($error) echo $error_amount; ?></td>

 

***TO:

 

<td class="main"><?php echo ENTRY_AMOUNT; ?><br>

<?php

if (empty($HTTP_POST_VARS['amount'])) {

echo tep_draw_input_field('amount',$HTTP_POST_VARS['amount'], '', '', false); if ($error) echo $error_amount;

}

else{

echo tep_draw_input_field('amount', $currencies->format($HTTP_POST_VARS['amount']), '', '', false); if ($error) echo $error_amount;

}

?>

</td>

 

*** CHANGE:

<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

</tr>

 

***TO:

<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"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></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>

 

********catalog/includes/languages/english/gv_send.php

*** add before ?>

define('TEXT_SUCCESS_CODE', 'Gift Certificate Code: ');

 

 

**********catalog/includes/modules/order_total/ot_gv.php

 

*** CHANGE:

$output_string .= ' <td align="right" class="main" colspan=2>';

*** TO:

//$output_string .= ' <td align="right" class="main" colspan=2>';

 

 

***CHANGE:

$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>';

 

***TO:

$selection_string .= ' <td>' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>';

 

*** CHANGE:

$image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">';

*** TO:

$selection_string .= ' <td class="main">' . "\n";

// only show redeem button if not checking out with PWA

if ($customer_id>0){

$image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">';

}

 

*** CHANGE:

$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';

*** TO:

$selection_string .= ' <td>' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';

 

 

 

 

 

**********catalog/includes/modules/order_total/ot_coupon.php

*** CHANGE:

// START Checkout Display Fix by BTBlomberg

$selection_string = '<tr><td></td><td class="main">';

$selection_string .= tep_draw_form('checkout_payment_gift', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post');

$selection_string .= '<div><br /> ';

$selection_string .= TEXT_ENTER_GV_CODE . tep_draw_input_field('gv_redeem_code', 'redeem code') ;

$selection_string .= ' ';

$selection_string .= tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'onclick="return submitFunction()"');

$selection_string .= '</div><br /></form></td></tr>';

// END Checkout Display Fix by BTBlomberg

 

*** TO:

function credit_selection() {

global $customer_id, $currencies, $language;

// START Checkout Display Fix by BTBlomberg

$selection_string = '<tr><td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1"></td><td class="main">';

$selection_string .= tep_draw_form('checkout_payment_gift', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post');

$selection_string .= '<div>';

$selection_string .= TEXT_ENTER_GV_CODE . tep_draw_input_field('gv_redeem_code', TEXT_ENTER_COUPON_FIELD) ;

$selection_string .= ' ';

$selection_string .= tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'ALIGN="middle" onclick="return submitFunction()"');

$selection_string .= '</div></form></td></tr>';

// END Checkout Display Fix by BTBlomberg

 

return $selection_string;

}

 

 

******* in catalog/includes/languages/english/modules/ot_coupon.php

*** ADD:

define('TEXT_ENTER_COUPON_FIELD', 'redeem code');

 

 

 

******In admin/gv_mail.php

*** 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:

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

 

 

***** IN catalog/includes/boxes/shopping_cart.php- this adds purchase without account compatibility

*** CHANGE:

if (tep_session_is_registered('customer_id') && ($customer_id > 0)) {

$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");

*** TO:

if (tep_session_is_registered('customer_id') && ($customer_id > 0)) {

$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");

 

*** CHANGE:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" 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>');

*** TO:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . VOUCHER_BALANCE . '</td><td class="infoBoxContents" 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="infoBoxContents"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>');

 

*** CHANGE:

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

*** TO:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . VOUCHER_REDEEMED . '</td><td class="infoBoxContents" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>');

 

*** CHANGE:

$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="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>');

*** TO:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . '</td><td class="infoBoxContents" align="right" valign="bottom">' . '<a href="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>');

 

 

*******in catalog/includes/classes/order_total.php

*** CHANGE:

if (MODULE_ORDER_TOTAL_INSTALLED) {

$header_string = '<tr>' . "\n";

$header_string .= ' <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$header_string .= ' <tr>' . "\n";

$header_string .= ' <td class="main"><b>' . TABLE_HEADING_CREDIT . '</b></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= ' </table></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= '<tr>' . "\n";

$header_string .= ' <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">' . "\n";

$header_string .= ' <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="0" cellpadding="2">' ."\n";

$header_string .= ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>' . "\n";

$header_string .= ' <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$close_string = ' </table></td>';

$close_string .= '<td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';

$close_string .= '</tr></table></td></tr></table></td>';

$close_string .= '<tr><td width="100%">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>';

reset($this->modules);

$output_string = '';

 

*** TO:

if (MODULE_ORDER_TOTAL_INSTALLED) {

$header_string = '<tr>' . "\n";

$header_string .= ' <td>' . "\n";

$header_string .= ' <table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$header_string .= ' <tr>' . "\n";

$header_string .= ' <td class="main"><b>' . TABLE_HEADING_CREDIT . '</b></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= ' </table></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= ' <tr><td><table border="0" width="100%" cellspacing="1" cellpadding="2"class="infoBox" >' ."\n";

$header_string .= ' <tr class="infoBoxContents">' . "\n";

$header_string .= ' <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$close_string = ' </table></td>' . "\n";

$close_string .= '</tr></table></td>' . "\n";

$close_string .= '<tr>' . "\n";

$close_string .= '<td width="100%">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "\n";

$close_string .= '</tr>' . "\n";

reset($this->modules);

$output_string = '';

 

*** CHANGE:

' <td class="main"><b>' . $GLOBALS[$class]->header . '</b></td>' . $use_credit_string;

*** TO:

' <td colspan="2" class="main">' . $GLOBALS[$class]->header . '</td>' . $use_credit_string;

 

****** in catalog/checkout_payment.php

*** CHANGE:

if (tep_session_is_registered('customer_id')) {

*** TO:

if (tep_session_is_registered('customer_id') && ($customer_id > 0)) {

Link to comment
Share on other sites

  • Replies 4.8k
  • Created
  • Last Reply

Top Posters In This Topic

Many applogies, in my previous post replace \$,€ with \$,£,¢

What exactly does the above code do? Have you got any screen shots or a demo site?

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

no demo and no screen shots. I can post screen shots though. Here is the code again with some notes to describe what it is doing. It is a bunch of relitively small things. Clean up some tables align buttons, alow users to use dollar signs before amounts when sending vouchers.

 

 

in catalog/gv_send.php

 

 

*** CHANGE: *** ADDS A COLORED BOTTOM 'BAR' THAT HAS THE BUTTONS IN IT

<tr>

<td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>

</tr>

***TO:

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

 

 

*** CHANGE: ALLOWS ENTRY OF A DOLLAR OR POUND SIGN BEFORE AN AMOUNT IN SEND VOUCHER

$gv_amount = trim($HTTP_POST_VARS['amount']);

 

***TO:

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

$gv_amount = trim($gv_amount, "\$,£,¢");

 

 

*** CHANGE: ADDS MULTI LANGUAGE COMPATIBILITY

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?><br><br><?php echo 'gv '.$id1; ?></td>

 

***TO:

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?><br><br><?php echo TEXT_SUCCESS_CODE.$id1; ?></td>

 

 

*** CHANGE: ADDS A COLORED BOTTOM 'BAR' THAT HAS THE BUTTONS IN IT

<tr>

<td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>

</tr>

 

***TO:

<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 class="main" align="right"><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

 

 

*** CHANGE: ***ALLOWS ENYTRY OF DOLLAR SIGN BEFORE AMOUNT IN SEND VOUCHER

<td class="main"><?php echo sprintf(MAIN_MESSAGE, $currencies->format($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 stripslashes($HTTP_POST_VARS['message']); ?></td>

 

***TO:

<td class="main">  <?php echo stripslashes($HTTP_POST_VARS['message']); ?></td>

 

 

*** CHANGE: ADDS A COLORED BOTTOM 'BAR' THAT HAS THE BUTTONS IN IT

<tr>

<td class="main"><?php echo tep_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . '</a>'; ?></td>

<td align="right"><br><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td>

</tr>

</table></form></td>

</tr>

 

***TO:

<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"><?php echo tep_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_image_submit('button_send.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>

</table></form></td>

</tr>

 

*** CHANGE:

<td class="main"><?php echo ENTRY_AMOUNT; ?><br><?php echo tep_draw_input_field('amount', $HTTP_POST_VARS['amount'], '', '', false); if ($error) echo $error_amount; ?></td>

 

***TO:

 

<td class="main"><?php echo ENTRY_AMOUNT; ?><br>

<?php

if (empty($HTTP_POST_VARS['amount'])) {

echo tep_draw_input_field('amount',$HTTP_POST_VARS['amount'], '', '', false); if ($error) echo $error_amount;

}

else{

echo tep_draw_input_field('amount', $currencies->format($HTTP_POST_VARS['amount']), '', '', false); if ($error) echo $error_amount;

}

?>

</td>

 

*** CHANGE:

<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

</tr>

 

***TO:ADDS A COLORED BOTTOM 'BAR' THAT HAS THE BUTTONS IN IT

<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"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></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>

 

********catalog/includes/languages/english/gv_send.php ***ADDS MULTI LANGUAGE SUPPORT

*** ADD BEFORE ?>

define('TEXT_SUCCESS_CODE', 'Gift Certificate Code: ');

 

 

**********catalog/includes/modules/order_total/ot_gv.php ***

 

*** CHANGE: CORRECTS ALIGNMENTS AND TABLE STRUCTURE

$output_string .= ' <td align="right" class="main" colspan=2>';

*** TO:

//$output_string .= ' <td align="right" class="main" colspan=2>';

 

 

***CHANGE: CORRECTS ALIGNMENTS AND TABLE STRUCTURE

$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>';

 

***TO:

$selection_string .= ' <td>' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>';

 

*** CHANGE: CORRECTS ALIGNMENTS AND TABLE STRUCTURE

$image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">';

*** TO:

$selection_string .= ' <td class="main">' . "\n";

// only show redeem button if not checking out with PWA

if ($customer_id>0){

$image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">';

}

 

*** CHANGE: CORRECTS ALIGNMENTS AND TABLE STRUCTURE

$selection_string .= ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';

*** TO:

$selection_string .= ' <td>' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';

 

 

 

 

**********catalog/includes/modules/order_total/ot_coupon.php

*** CHANGE: ALIGNS THE REEDEEM BUTTON

// START Checkout Display Fix by BTBlomberg

$selection_string = '<tr><td></td><td class="main">';

$selection_string .= tep_draw_form('checkout_payment_gift', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post');

$selection_string .= '<div><br /> ';

$selection_string .= TEXT_ENTER_GV_CODE . tep_draw_input_field('gv_redeem_code', 'redeem code') ;

$selection_string .= ' ';

$selection_string .= tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'onclick="return submitFunction()"');

$selection_string .= '</div><br /></form></td></tr>';

// END Checkout Display Fix by BTBlomberg

 

*** TO:

function credit_selection() {

global $customer_id, $currencies, $language;

// START Checkout Display Fix by BTBlomberg

$selection_string = '<tr><td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1"></td><td class="main">';

$selection_string .= tep_draw_form('checkout_payment_gift', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post');

$selection_string .= '<div>';

$selection_string .= TEXT_ENTER_GV_CODE . tep_draw_input_field('gv_redeem_code', TEXT_ENTER_COUPON_FIELD) ;

$selection_string .= ' ';

$selection_string .= tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'ALIGN="middle" onclick="return submitFunction()"');

$selection_string .= '</div></form></td></tr>';

// END Checkout Display Fix by BTBlomberg

 

return $selection_string;

}

 

 

******* in catalog/includes/languages/english/modules/ot_coupon.php

*** ADD: ADDS MUTLTI LANGUAGE SUPPORT

define('TEXT_ENTER_COUPON_FIELD', 'redeem code');

 

 

 

******In admin/gv_mail.php ***ALLOWS THE ENTRY OF DOLLAR SIGNS BEFORE THE GV AMOUNT WHEN SENDING VOUCHERS

*** CHANGE:ALLOWS THE ENTRY OF DOLLAR SIGNS BEFORE THE GV AMOUNT WHEN SENDING VOUCHERS

$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:ALLOWS THE ENTRY OF DOLLAR SIGNS BEFORE THE GV AMOUNT WHEN SENDING VOUCHERS

$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:ALLOWS THE ENTRY OF DOLLAR SIGNS BEFORE THE GV AMOUNT WHEN SENDING VOUCHERS

$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:ALLOWS THE ENTRY OF DOLLAR SIGNS BEFORE THE GV AMOUNT WHEN SENDING VOUCHERS

$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:ALLOWS THE ENTRY OF DOLLAR SIGNS BEFORE THE GV AMOUNT WHEN SENDING VOUCHERS

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

 

 

***** IN catalog/includes/boxes/shopping_cart.php- THIS ADDS PURCHASE WITHOUT ACCOUNT COMPATIBILITY EVEN IF YOU DO NOT HAVE PWA INSTALLED

*** CHANGE:

if (tep_session_is_registered('customer_id') && ($customer_id > 0)) {

$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");

*** TO:

if (tep_session_is_registered('customer_id') && ($customer_id > 0)) {

$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");

 

*** CHANGE:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" 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>');

*** TO:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . VOUCHER_BALANCE . '</td><td class="infoBoxContents" 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="infoBoxContents"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>');

 

*** CHANGE:

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

*** TO:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . VOUCHER_REDEEMED . '</td><td class="infoBoxContents" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>');

 

*** CHANGE:

$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="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>');

*** TO:

$info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . '</td><td class="infoBoxContents" align="right" valign="bottom">' . '<a href="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>');

 

 

*******in catalog/includes/classes/order_total.php ***CORRECTS TABLE STRUCTURE

*** CHANGE:

if (MODULE_ORDER_TOTAL_INSTALLED) {

$header_string = '<tr>' . "\n";

$header_string .= ' <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$header_string .= ' <tr>' . "\n";

$header_string .= ' <td class="main"><b>' . TABLE_HEADING_CREDIT . '</b></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= ' </table></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= '<tr>' . "\n";

$header_string .= ' <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">' . "\n";

$header_string .= ' <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="0" cellpadding="2">' ."\n";

$header_string .= ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>' . "\n";

$header_string .= ' <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$close_string = ' </table></td>';

$close_string .= '<td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>';

$close_string .= '</tr></table></td></tr></table></td>';

$close_string .= '<tr><td width="100%">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>';

reset($this->modules);

$output_string = '';

 

*** TO:

if (MODULE_ORDER_TOTAL_INSTALLED) {

$header_string = '<tr>' . "\n";

$header_string .= ' <td>' . "\n";

$header_string .= ' <table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$header_string .= ' <tr>' . "\n";

$header_string .= ' <td class="main"><b>' . TABLE_HEADING_CREDIT . '</b></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= ' </table></td>' . "\n";

$header_string .= ' </tr>' . "\n";

$header_string .= ' <tr><td><table border="0" width="100%" cellspacing="1" cellpadding="2"class="infoBox" >' ."\n";

$header_string .= ' <tr class="infoBoxContents">' . "\n";

$header_string .= ' <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n";

$close_string = ' </table></td>' . "\n";

$close_string .= '</tr></table></td>' . "\n";

$close_string .= '<tr>' . "\n";

$close_string .= '<td width="100%">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td>' . "\n";

$close_string .= '</tr>' . "\n";

reset($this->modules);

$output_string = '';

 

*** CHANGE:

' <td class="main"><b>' . $GLOBALS[$class]->header . '</b></td>' . $use_credit_string;

*** TO:

' <td colspan="2" class="main">' . $GLOBALS[$class]->header . '</td>' . $use_credit_string;

 

****** in catalog/checkout_payment.php ***ADDS PWA COMPATIBILITY

*** CHANGE:

if (tep_session_is_registered('customer_id')) {

*** TO:

if (tep_session_is_registered('customer_id') && ($customer_id > 0)) {

Link to comment
Share on other sites

Here is a screenshot showing colored button bar, where dollar signs can be entered. Dollar signs can also be entered in admin/gvsend. And button is aligned in checkout process. Does any of this work for anyone else? I am trying to not confuddle the contrib page by posting this here.

 

http://www.silvermoon-jewelry.com/screenshot1.gif

Link to comment
Share on other sites

Does any one can show me what is the meaning of the coupon_type (e.g. what is G,P, and so on) as I don't find any info related to that

Where are finding that on your store? I can't see it in the admin end.

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

Someone please, i beg please help this contrib. :'(

 

Can someone take a clean OSC and install this contrib and all the fixes and create a clean new rollup full version with good instructions.

 

I know no one has the time to do this.. but you would be our hero. :-"

Link to comment
Share on other sites

Hi everyone,

 

I'm new to the boards and have been trying to get CCGV 5.18 to work.

 

My main problem is that on checkout I can't seem to move beyond the checkout_payment.php page. On the first try it briefly goes to checkout_confirmation.php (I can see it load in the browser address bar) and the checkout_payment.php reloads itself. After that the "continue" button no longer works.

 

I've read through the board and have noticed other people having the same problem but have not seen any answers to this problem. Does anyone have a clue?

 

On another note, when I send a gift voucher via email the email arrives nice and formatted. When I click the html link to the site I end up on a page that says "congratulations! you have successfully redeemed a coupon" but then I don't see this redemption anywhere - not on my accounts page, not on the shopping cart, not on the payments page under the order totals. Where exactly does this go and how am I supposed to be redeeming these coupons?

 

Also I'm still lost as to how the gift vouchers are to be set up. I've created a new category (gift certificates) and added a gift voucher product with model as GIFT_250. This shows up fine on the category listings and I can add it to the shopping cart. After that, what? Partly the problem is that I haven't been able to get beyond the checkout_payment.php page so I don't know if a code for this voucher is automatically generated but is that really all there is to it? Will this voucher then show up in the queue in the admin panel?

 

Frustratedly yours,

 

David

Link to comment
Share on other sites

Someone please, i beg please help this contrib. :'(

 

Can someone take a clean OSC and install this contrib and all the fixes and create a clean new rollup full version with good instructions.

 

I know no one has the time to do this.. but you would be our hero. :-"

 

 

+1 for this.

 

I recently decided to install this contrib, but after seeing the 5000 patches & multiple versions... I am very hesitant to try this on my store.

 

I'd feel more comfortable seing a new rollup version... hope someone can help!

 

:)

Link to comment
Share on other sites

Well, I got it to work, finally. Not out of anything I figured out in the code, I just copied the checkout_payment.php file that was included in the 5.18 archive over to the server and then the thing worked. :blink:

 

Is there any way to link the gift vouchers that the customer has bought to the gv_send.php file? It seems kind of clunky for the customer to have to manually input the voucher value when it's already in the system. Shouldn't that be a drop down list instead?

 

Hi everyone,

 

I'm new to the boards and have been trying to get CCGV 5.18 to work.

 

My main problem is that on checkout I can't seem to move beyond the checkout_payment.php page. On the first try it briefly goes to checkout_confirmation.php (I can see it load in the browser address bar) and the checkout_payment.php reloads itself. After that the "continue" button no longer works.

 

I've read through the board and have noticed other people having the same problem but have not seen any answers to this problem. Does anyone have a clue?

 

On another note, when I send a gift voucher via email the email arrives nice and formatted. When I click the html link to the site I end up on a page that says "congratulations! you have successfully redeemed a coupon" but then I don't see this redemption anywhere - not on my accounts page, not on the shopping cart, not on the payments page under the order totals. Where exactly does this go and how am I supposed to be redeeming these coupons?

 

Also I'm still lost as to how the gift vouchers are to be set up. I've created a new category (gift certificates) and added a gift voucher product with model as GIFT_250. This shows up fine on the category listings and I can add it to the shopping cart. After that, what? Partly the problem is that I haven't been able to get beyond the checkout_payment.php page so I don't know if a code for this voucher is automatically generated but is that really all there is to it? Will this voucher then show up in the queue in the admin panel?

 

Frustratedly yours,

 

David

Link to comment
Share on other sites

FYI, this contribution works GREAT (we have it on two working stores, 5.10 + some patches)!! I installed a brand new store and installed 5.18 vs. the older version of this mod and am seeing this.

 

Everything seems to work fine, but when I edit the sort order for anything in the Order Totals Modules (even something not having to do with this contribution such as Gift Wrap), the sort orders will input fine, but when I save it, it doesnt change but keeps old number in.... Any suggestions?

 

Same with to tick the No shipping or shipping in Discount coupons, I can change it but when I save it it does not save the change... Strange.

Edited by EthosPaul

Paul ------------

Link to comment
Share on other sites

Good morning to all and congratulations on this contribution CCGV5.18:

 

However I have one worries since I installed SEO URL 2.18, the messages of alerts of my coupons are not any more displayed since. (ex. Invalid Coupon Code, ***HOWEVER:No reducion available, please see the coupon restrictions***....etc.. >_<

 

the code which allows to show errors is this:

 

<?php echo tep_output_string_protected($error['error']); ?>

 

On the contrary the titles of alerts they are displayed without problem with this:

 

<?php echo tep_output_string_protected($error['title']); ?>

Somebody in this problem?

 

thx

Link to comment
Share on other sites

Good morning to all and congratulations on this contribution CCGV5.18:

 

However I have one worries since I installed SEO URL 2.18, the messages of alerts of my coupons are not any more displayed since. (ex. Invalid Coupon Code, ***HOWEVER:No reducion available, please see the coupon restrictions***....etc.. >_<

 

the code which allows to show errors is this:

 

<?php echo tep_output_string_protected($error['error']); ?>

 

On the contrary the titles of alerts they are displayed without problem with this:

 

<?php echo tep_output_string_protected($error['title']); ?>

Somebody in this problem?

 

thx

Have you tried Ultimate SEO URL's?

 

Many people use the two and have no problems at all. Maybe you should try adding it as a replacement to your URL contribution.

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

Hi,

I've just installed the CCGV5.19 and until one major problem it seems to be very fine:

I can add Gift Vouchers and the message in the Checkout Payment says "Gift Voucher of .... accepted" but neither is in the value shown on the invoice nor is it discounted from the total. What may be the fault ?

Thanks,

Anton

Link to comment
Share on other sites

Is there a mod or code change to be able to admin the gift voucher part?

 

To be able to delete and to be able to add an expriy date to the voucher.

 

Thanks

_________________________________________________________________________

 

David G Aschenbrener

Tranquil | Sense - Your Stop for Tranquility.

Link to comment
Share on other sites

Is there a mod or code change to be able to admin the gift voucher part?

 

To be able to delete and to be able to add an expriy date to the voucher.

 

Thanks

Theoretically it is possible but no-one has added any code for that to be part of this contribution yet. Unfortunately anytime a GV is sent by a customer to a friend or from admin to a customer - there is no current way of adding an expiry date because of the way the contribution stands at the moment.

 

It can't be that hard to code it but it seems as though no-one has given it a real go

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

Meanwhile I decided to chose a different contrib - maybe it's interesting for you, too.

http://www.oscommerce.com/community/contributions,4148

- expiry date included

- easy install & handling

 

;) Anton

 

Is there a mod or code change to be able to admin the gift voucher part?

 

To be able to delete and to be able to add an expriy date to the voucher.

 

Thanks

Link to comment
Share on other sites

The above contribution doesn't have the gift voucher/certificate features of CCGV.

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

Hi all

 

I just install this fine module. But when i what to check out and go to this page: checkout_payment.php then the screen is only blank...???

 

I hope that some one can help me...

 

Best Regards

Kent

Link to comment
Share on other sites

Meanwhile I decided to chose a different contrib - maybe it's interesting for you, too.

http://www.oscommerce.com/community/contributions,4148

- expiry date included

- easy install & handling

 

;) Anton

I will check this out.

 

Thanks

_________________________________________________________________________

 

David G Aschenbrener

Tranquil | Sense - Your Stop for Tranquility.

Link to comment
Share on other sites

Meanwhile I decided to chose a different contrib - maybe it's interesting for you, too.

http://www.oscommerce.com/community/contributions,4148

- expiry date included

- easy install & handling

 

;) Anton

I will check this out.

 

Thanks

_________________________________________________________________________

 

David G Aschenbrener

Tranquil | Sense - Your Stop for Tranquility.

Link to comment
Share on other sites

Hi Again

 

I hope some one can help me. I saw that there is a Hotfix txt file for the checkout_payment.php file. but that did not help.

 

The test site is up and running here: www.fashion4dogs.se

 

This system is exakt what i have been looking for. so i hope that there is some one there have tryid the same problem that i have.

 

Best Regards

Kent Larsen

 

 

Old message:

Hi all

 

I just install this fine module. But when i want to check out and go to pay it link to --> this page: checkout_payment.php then the screen is only blank...???

 

I hope that some one can help me...

 

Best Regards

Kent

Edited by Party
Link to comment
Share on other sites

Hi Again

 

I hope some one can help me. I saw that there is a Hotfix txt file for the checkout_payment.php file. but that did not help.

 

The test site is up and running here: www.fashion4dogs.se

 

This system is exakt what i have been looking for. so i hope that there is some one there have tryid the same problem that i have.

 

Best Regards

Kent Larsen

Old message:

Hi all

 

I just install this fine module. But when i want to check out and go to pay it link to --> this page: checkout_payment.php then the screen is only blank...???

 

I hope that some one can help me...

 

Best Regards

Kent

Do you have any other mods installed?

_________________________________________________________________________

 

David G Aschenbrener

Tranquil | Sense - Your Stop for Tranquility.

Link to comment
Share on other sites

Join the conversation

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

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...