Jump to content



Latest News: (loading..)

- - - - -

Credit Class & Gift Vouchers (CCGV) for 2.3.1


  • Please log in to reply
130 replies to this topic

#41   kandles

kandles
  • Members
  • 14 posts
  • Real Name:David Newman
  • Gender:Male

Posted 11 October 2011 - 10:11 AM

Setting delivery costs for Gift Vouchers?

Originally I set the weight of the vouchers to 0 and charged carriage based on weight. 0 weight = 0 cost etc.

The owner of the site now wants to charge carriage by order value, therefore the gift vouchers get carriage applied.

Any ideas how to set voucher delivery to 0? I could apply a refund - but that would be no good if they order a product AND a gift voucher - and it looks messy.

Thanks

#42   bheard

bheard
  • Members
  • 17 posts
  • Real Name:Bea

Posted 12 October 2011 - 02:24 AM

Have installed in test environment on
V2.2 Rca.

2 issues before I can go live

FIRST being display onscreen - appears to be related to an error I cannot see..
The button image is not what it should be - if you click on the area it appears to go through except total.

[img]http://mysite.com.au/Test/images/pixel_trans.gif[/img] Gift Vouchers & Coupons [img]http://testsite.com.au/Test/images/pixel_trans.gif[/img]

TEXT_ENTER_GV_CODE

and SECOND
Hopefully related to the above....


Customers Order total gives the result without the total deducting the gift or discount amount..
Admin config is show totals = true



1 x Matrox G200 MMS (MG200MMS) = $299.99
Memory 4 mb
Model Value
------------------------------------------------------
Sub-Total: $299.99
Flat Rate (Best Way): $5.00
Total: $304.99
Discount Coupons: KidsPot: -$36.60

Delivery Address

Edited by bheard, 12 October 2011 - 02:25 AM.


#43   mattwhi

mattwhi
  • Members
  • 6 posts
  • Real Name:Matthew White
  • Gender:Male

Posted 16 October 2011 - 10:25 PM

Hi Guys,

I would really appreciate some help.

I have a modified version of 2.3.1 which I have attempted to hack in the voucher module, the admin side seems to be ok but I cannot seem to get the checkout working, when I enter a code which I have created in the admin it just seems to try and go through to payment, if I have not selected a payment it errors stating no payment method has been chosen, just like it would trying to progree to payment with selecting a payment method.

I have minimul PHP / Javascript exsperience and this module is really important, can someone point me in the right direction or suggest someone  to check my code and install it for me?

I did find a site the other night offering installations for this mod @ $100 but cannot find that site again?
Matthew White

#44   mattwhi

mattwhi
  • Members
  • 6 posts
  • Real Name:Matthew White
  • Gender:Male

Posted 17 October 2011 - 11:28 AM

View Postmattwhi, on 16 October 2011 - 10:25 PM, said:

Hi Guys,

I would really appreciate some help.

I have a modified version of 2.3.1 which I have attempted to hack in the voucher module, the admin side seems to be ok but I cannot seem to get the checkout working, when I enter a code which I have created in the admin it just seems to try and go through to payment, if I have not selected a payment it errors stating no payment method has been chosen, just like it would trying to progree to payment with selecting a payment method.

I have minimul PHP / Javascript exsperience and this module is really important, can someone point me in the right direction or suggest someone  to check my code and install it for me?

I did find a site the other night offering installations for this mod @ $100 but cannot find that site again?
I have been working on my installation today managed to get the checkout area to recognise the voucher but no matter what I do in the admin it says

"*** This is a valid coupon code. HOWEVER: No price reduction can be applied, please see the coupon restrictions that were included with the offer. **"

I have also noticed that when creating a voucher in admin, when entering the discount e.g "10%" it doesn't carry it through to the preview, also the restriction I leave black but it says NONE in the preview.

Any help most appreciated, I feel like i'm so close to finishing this.
Matthew White

#45   Colorway

Colorway
  • Members
  • 13 posts
  • Real Name:Stephen Gomes

Posted 17 October 2011 - 02:06 PM

So, are there no 2.3.1 installation instructions? I don't have an out of the box install of OSCommerce and I have no clue what is different between these new files and the original files.  I don't know what to change

#46   mattwhi

mattwhi
  • Members
  • 6 posts
  • Real Name:Matthew White
  • Gender:Male

Posted 20 October 2011 - 10:15 AM

HI Guys,

I have now a working version of this on my 2.3.1 modified version, there are no instructions as with other addons which specify where to input code its just a case of trying to merge your documents.

From my experience I would strongly advise not to just upload the files included with the addon, go through each page and add the code where applicable to your existing pages, I did this by change a piece of code and uploading each time checking for errors, yes it takes a long time but it ensures your site does not go down and having to back track through tons of code.

Finally one problem I found from this addon is it does not give the customer a balance of their current vouchers so I have added a simple piece of code to the checkout_payment.php

<p>Your Coupon Amount is <strong><span style="font-size:14px">&#163;<?php echo $gv_result['amount']; ?></span></strong></p>

I have placed this under the following code:

<div style="float: right;">
	  <?php echo '<strong>' . TITLE_PLEASE_SELECT . '</strong>'; ?>
</div>

Any comments about this would be great whether it is right or wrong or a better way to display this, I have only been doing PHP for a week now (forced to learn to be able to get this addon to work.

Thanks for the great contribution.
Matthew White

#47   otgrouch

otgrouch
  • Members
  • 29 posts
  • Real Name:David Hawkins

Posted 02 December 2011 - 09:57 PM

I've got this installed - the admin side seems to be working properly and I can purchase and send vouchers.  The voucher balance shows up under my shopping cart, but at checkout_payment.php, I do not get the separate box for 'click here to use voucher balance' or 'enter redeem code'.  

There is also a table tag in checkout_payment.php that isn't closed and is causing a format error on the page when displayed (the side column boxes show up inside the payment box).  I fixed this by removing the table tag in this part of the code:


// Start - CREDIT CLASS Gift Voucher Contribution
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 - CREDIT CLASS Gift Voucher Contribution

I can also fix it by inserting a </table> in an appropriate place within that block of code.

As far as I can tell, the code to place the GV tick box is in the order_total files and I've made the appropriate changes to those...so I don't have any idea why they aren't showing up.  I had CCGV installed on a 2.2 store with no issues, but all I'm getting with this install is the ability to purchase but not use vouchers.

Any help?

#48   otgrouch

otgrouch
  • Members
  • 29 posts
  • Real Name:David Hawkins

Posted 07 December 2011 - 08:21 PM

Still can't get this one to work on 2.3....I've compared all of the files, moved lines of code around, compared it to the old version which works on my 2.2 installation.  Nothing I do gets the Voucher/Coupon box to show up on the checkout_payment page.  

No one has any pointers?

#49   otgrouch

otgrouch
  • Members
  • 29 posts
  • Real Name:David Hawkins

Posted 08 December 2011 - 03:50 PM

Just for kicks, I killed the database and started with a clean sheet of paper.  New 2.3.1 install with a fresh database.  Dropped the files from the contribution on top of the new install and I have the same problem.  I think there's a problem with the code in the contribution at this point.

#50   otgrouch

otgrouch
  • Members
  • 29 posts
  • Real Name:David Hawkins

Posted 08 December 2011 - 11:17 PM

All righty...I found my problem.

Unlike older versions of CCGV, you MUST install both the gv and coupon modules via the admin panel or your site format will be all messed up when you get to checkout_payment.php.  If you only install the gv module, the payment process ends up in a redirect loop that never lets you off of the payment page - you have to install BOTH gv and coupon via the admin panel for the checkout payment process to function.

I don't really understand the logic behind making a module that gives you the option to not install it...but that renders your site non-functional unless you do - but I'm glad that after a week of staring at code I've got it working.

#51   otgrouch

otgrouch
  • Members
  • 29 posts
  • Real Name:David Hawkins

Posted 09 December 2011 - 11:20 PM

View Postase2007, on 04 October 2011 - 07:07 PM, said:

I recently installed this great contribution and have been informed by a couple of customers that this fault occurs when returning to the site from paypal. It is returning exactly the same fault. Is it possible to post the fix that you found worked?
I just ran into this.

In paypal_standard.php, find this:
function before_process() {
	  global $customer_id, $order, $order_totals, $sendto, $billto, $languages_id, $payment, $currencies, $cart, $cart_PayPal_Standard_ID;
	  global $$payment;

and change it to this:
function before_process() {
	  global $customer_id, $order, $order_totals, $sendto, $billto, $languages_id, $payment, $currencies, $cart, $order_total_modules, $cart_PayPal_Standard_ID;
	  global $$payment;

That eliminated the errors when returning to the site from paypal.

#52   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 19 December 2011 - 01:47 AM

Regarding checkbox not showing up:

Go to your admin panel, modules, order totals.  First, click on "gift vouchers" and check your "recalculate tax" setting.

Per the instructions:




No tax recalculation

Sub-total - Sort order = 1
Shipping - Sort order = 2
Tax - Sort order = 3
Gift Voucher - Sort order = 4
Discount Coupons - Sort Order =5
Total - Sort Order = 6

Tax recalculation

Sub-total - Sort order = 1
Shipping - Sort order = 2
Gift Voucher - Sort order = 3
Discount Coupons - Sort Order =4
Tax - Sort order = 5
Total - Sort Order = 6

Obviously, if you don't charge sales tax, you would check false for re-calculate tax, and use the first sort order option, leaving out taxes altogether.

#53   MILK-Lover

MILK-Lover
  • Members
  • 2 posts
  • Real Name:Hartmut Gottschalk

Posted 19 January 2012 - 12:57 AM

Hello,
i recently installed the contribution on a mod 2.3.1 version but obviously I don't have the GV tick box in the checkout_payment.
The input field and redeem button appear but no GV tick though there is a balance on the account.


Admin and Shopping cart section is working fine.

Settings for the GV modul are

Display Total
true
Sort Order
4
Queue Purchases
true
Include Shipping
true
Include Tax
true
Re-calculate Tax
None
Tax Class
--None--
Credit including Tax
false

checkout_payment code

<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright © 2010 osCommerce
  Released under the GNU General Public License
*/
require('includes/application_top.php');
if (!tep_session_is_registered('customer_id'))
{
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
if ($cart->count_contents() < 1)
{
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
if (!tep_session_is_registered('shipping'))
{
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
if (isset($cart->cartID) && tep_session_is_registered('cartID'))
{
  if ($cart->cartID != $cartID)
  {
  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }
}
/* CCGV - BEGIN */
if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers');
if(tep_session_is_registered('cot_gv')) tep_session_unregister('cot_gv');
/* CCGV - END */
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;
   }
  }
}
/* CCGV - BEGIN ## OPTIONAL! ## */
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping($shipping);
/* CCGV - END ## OPTIONAL! ## */
if (!tep_session_is_registered('billto'))
{
tep_session_register('billto');
$billto = $customer_default_address_id;
}
else
{
if ( (is_array($billto) && empty($billto)) || is_numeric($billto) )
  {
  $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 - BEGIN */
require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_total_modules->clear_posts();
/* CCGV - END */
if (!tep_session_is_registered('comments')) tep_session_register('comments');
if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments']))
{
$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
}
$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();
/* CCGV - BEGIN */
$total_count = $cart->count_contents_virtual();
/* CCGV - END */
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'));
$tab_sel = tep_href_link(FILENAME_CHECKOUT_PAYMENT);
$current_page = FILENAME_CHECKOUT_PAYMENT;
require(DIR_WS_INCLUDES . 'template_top.php');
?>
<script type="text/javascript"><!--
var selected;
<!-- CCGV - BEGIN -->
var submitter = null;
function submitFunction()
{
submitter = 1;
}
<!-- CCGV - END -->
function selectRowEffect(object, buttonselect)
{
/* CCGV - BEGIN */
if (!document.checkout_payment.payment[0].disabled)
  {
/* CCGV - END */
  if (!selected)
   {
   if (document.getElementById)
{
selected = document.getElementById('defaultSelected');
}
   else
{
selected = document.all['defaultSelected'];
}
   }
  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;
  if (document.checkout_payment.payment[0])
   {
   document.checkout_payment.payment[buttonselect].checked=true;
   }
  else
   {
   document.checkout_payment.payment.checked=true;
   }
/* CCGV - BEGIN */
  }
/* CCGV - END */
}
function rowOverEffect(object)
{
if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}
function rowOutEffect(object)
{
if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
<?php
/* CCGV - BEGIN */
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 (document.checkout_payment.cot_gv.checked)
{
document.checkout_payment.payment[counter].checked = false;
document.checkout_payment.payment[counter].disabled=true;
}
   else
{
document.checkout_payment.payment[counter].disabled=false;
}
   }
  }
<?php
}
else
{
$coversAll=false;?>
function clearRadeos()
  {
  document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;
  }
<?php
}
?>
//--></script>
<?php echo $payment_modules->javascript_validation($coversAll); ?>
<!-- CCGV - END -->
<?php echo tep_draw_content_top();?>
<?php echo tep_draw_title_top();?>
<h1><?php echo HEADING_TITLE; ?></h1>
<?php
//osc-support-edition BOF
  if ($messageStack->size('terms_agree') > 0) {
    echo $messageStack->output('terms_agree');
  }
//osc-support-edition EOF
?>
<?php echo tep_draw_title_bottom();?>
<?php //echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"', true); ?>
<!-- Start - CREDIT CLASS Gift Voucher Contribution -->
<?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?>
<!-- End - CREDIT CLASS Gift Voucher Contribution -->
<div class="contentContainer">
  <div class="contentPadd">
<?php
if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error()))
{
?>
  <div class="contentInfoText">
  <?php echo '<strong>' . tep_output_string_protected($error['title']) . '</strong>'; ?>
  <p class="messageStackError"><?php echo tep_output_string_protected($error['error']); ?></p>
</div>

<?php
}
?>
<!-- CCGV - BEGIN ## OPTIONAL! ##-->

<h3><?php echo HEADING_PRODUCTS; ?></h3><div class="contentInfoText"><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?>
<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="10">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
   ' <td class="main" align="left" 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 width="12%" class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '% ' . TEXT_PAYM_STEUER . '</td>' . "\n";
echo  ' <td width="35%"class="main" align="right" valign="top">' . $currencies->display_price_normal($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . ' </td>' . "\n" .
    '</tr>' . "\n";
}
?>
  <tr>
  <?php if (sizeof($order->info['tax_groups']) > 1) { ?>
   <td colspan="4" valign="top" align="right">
  <?php } else { ?>
  <td colspan="3" valign="top" align="right">
   <?php } ?>
<table border="0" cellspacing="0" cellpadding="2">
<?php
if (MODULE_ORDER_TOTAL_INSTALLED)
{
echo $order_total_modules->output();
}
?>
</table>
   </td>
  </tr>
</table></div>
<!-- CCGV - END ## OPTIONAL! ##-->
<?php
/* CCGV - BEGIN */
echo '' . $order_total_modules->credit_selection() . '';
echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"');
if (tep_session_is_registered('customer_id'))
{
echo  '' . $order_total_modules->sub_credit_selection() . '';
if ($gv_result['amount'] > 0)
  {
echo  '' . $order_total_modules->sub_credit_selection() . '';
  }
}
echo '<div>' . VOUCHER_BALANCE . ' ' . $currencies->format($gv_result['amount']) . '</div></div>';
/* CCGV - END */
?>
<h3><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></h3>
<div class="contentInfoText">
<div class="" style="float:right; width:auto; margin-left:17px;">
  <h3 class="first_h3"><?php echo TITLE_BILLING_ADDRESS; ?></h3>
  <div class="contentInfoText marg-bottom" style="white-space:nowrap;">
    <?php echo tep_address_label($customer_id, $billto, true, ' ', '<br />'); ?>
  </div>
    </div>
    <?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br /><div class="buttonSet"><?php echo tep_draw_button2_top();?><?php echo tep_draw_button(IMAGE_BUTTON_CHANGE_ADDRESS, 'home', tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')); ?><?php echo tep_draw_button2_bottom();?></div>
  </div>
  <div style="clear: both;"></div>
  <h3><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></h3>
<?php
$selection = $payment_modules->selection();
if (sizeof($selection) > 1)
{
?>
<div class="contentInfoText">
  <div style="float: right;"><?php echo '<strong>' . TITLE_PLEASE_SELECT . '</strong>'; ?>
    </div>
    <?php echo TEXT_SELECT_PAYMENT_METHOD; ?>
<?php
    } elseif ($free_shipping == false) {
?>
  <div class="contentInfoText">
    <?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?>
<?php
}
?>
  <br /><br />
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++)
{
?>
<table border="0" width="100%" cellspacing="0" cellpadding="5">

<?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="100%"><strong><?php echo $selection[$i]['module']; ?></strong></td>
    <td align="right">

<?php
if (sizeof($selection) > 1)
  {
  echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment));
  //echo tep_draw_radio_field('payment', $selection[$i]['id'], (($selection[$i]['id'] == $payment) || (($payment == "") && ($radio_buttons == 0))));
  }
else
  {
  echo tep_draw_hidden_field('payment', $selection[$i]['id']);
  }
?>
  </td>
</tr>

<?php
if (isset($selection[$i]['error']))
  {
?>
<tr>
  <td colspan="2"><?php echo $selection[$i]['error']; ?></td>
</tr>

<?php
  }
elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields']))
  {
?>
<tr>
  <td colspan="2">
   <table border="0" cellspacing="0" cellpadding="2">
<?php
  for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++)
   {
?>
<tr>
<td><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
<td><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
</tr>

<?php
   }
?>
   </table>
  </td>
</tr>
<?php
  }
?>
</table>

<?php
    $radio_buttons++;
  }
?>
</div>
<h3><?php echo TABLE_HEADING_COMMENTS; ?></h3>
<div class="contentInfoText">
<?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?>
  </div>
  <?php
// osc-support-edition BOF
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS);
?>
<?php
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WIDERRUF);
?>
  <h2><?php echo HEADING_WIDERRUF_INFORMATION; ?></h2>
  <div class="contentText">
    <div class="termsContainer"><?php echo TEXT_WIDERRUF_CHECKOUT; ?></div>
  </div>

  <div class="contentText">
    <div style="float:left;"><?php echo tep_draw_checkbox_field('terms', 'true'); ?></div>
    <div style="float:left; margin-left:10px;"><?php echo TERMS_ACCEPT_TEXT; ?></div><br style="clear: both;" />
  </div>
<?php
// osc-support-edition EOF
?>
  <div class="buttonSet">
    <div class="coProgressBar">
  <div id="coProgressBar"></div>
  <table border="0" width="100%" cellspacing="7" cellpadding="0">
    <tr>
  <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
  <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
  <td align="center" width="33%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
    </tr>
  </table>
    </div>
  
    <div class="fl_right" align="right"><?php echo tep_draw_button_top();?><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?><?php echo tep_draw_button_bottom();?></div>
  </div>

  </div>
</div>
<script type="text/javascript">
$('#coProgressBar').progressbar(
{
value: 66
});
</script>
</form>
<?php echo tep_draw_content_bottom();?>
<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Any help?

#54   MILK-Lover

MILK-Lover
  • Members
  • 2 posts
  • Real Name:Hartmut Gottschalk

Posted 20 January 2012 - 01:53 PM

fixed the problem with the missing checkbox. Changed the settings in modules - order totals to

No tax recalculation

ot_subtotal - Sort order = 1
ot_shipping - Sort order = 2
ot_tax - Sort order = 3
ot_coupon - Sort order = 4
ot_gv - Sort Order =5
ot_total - Sort Order = 6

#55   The Butcher

The Butcher
  • Members
  • 16 posts
  • Real Name:Jack

Posted 28 January 2012 - 02:59 PM

Hi i installed the ccgv 6.0 on a clean install of oscommerce 2.3.1. And at first it looks like everything works fine no errors or anything. But    when I set a coupon code up and tried to use it. I noticed that there is no field to put the code in the ceckout process als I canot ad it in the admin menu because I only got the 4 choices:

shpping,sub total, tax and total

but I have uploaded al the files to the directorys like includes/modules/order_total/

there are the files ot_coupon.php and ot_gv.php but don't appear in the admin modules order total page.

I hope you understand my problem mine englisch isn't verry good.

Thanks for the help in advance

#56   The Butcher

The Butcher
  • Members
  • 16 posts
  • Real Name:Jack

Posted 29 January 2012 - 09:28 AM

Hi,

I got it working I mist the install button at the top of the order total modules. But now when I try to redeem the coupon code it sends me back to the customer login screen and then I can't login any more although I have the inlog code's right.

#57   giomorin

giomorin
  • Members
  • 4 posts
  • Real Name:Gio
  • Gender:Male

Posted 07 February 2012 - 08:49 PM

I hope someone can help me out, I've installed CCGV 6.0 for 2.3.1 everything seems to work fine, however..when you check use gift voucher balance, hit continue and then confirm order, it says say "please select a payment method for your order", even when the amount in the gift voucher account is more than the total of the order. I installed this modification on a fresh copy of 2.3.1. Anyone have an idea?

#58   giomorin

giomorin
  • Members
  • 4 posts
  • Real Name:Gio
  • Gender:Male

Posted 07 February 2012 - 09:16 PM

Figured it out. So in catalog/checkout_process.php go to line 53ish and change this:

if ($credit_covers) $payment='';

To This:

if ($credit_covers) $payment='credit_covers';

#59   bassmaga

bassmaga
  • Members
  • 29 posts
  • Real Name:Kamil
  • Gender:Male
  • Location:Poland

Posted 17 February 2012 - 02:26 PM

Hi,
thx for this contribution.

View Postfulluvscents, on 17 May 2011 - 05:05 PM, said:

...As a customer, if you purchase something, then when you get to checkout, there will be a check box giving you the option of using the voucher balance.  You can also email the gift voucher to someone else as a gift to them and they can use it.  ...

I put right gift product - relase the voucher, on checkout_payment.php I have Enter Redeem Code field but dont have any check box
Somebody could help me what mistake I did?

#60   jamessk

jamessk
  • Members
  • 19 posts
  • Real Name:James Kelly

Posted 28 February 2012 - 12:54 PM

Hi, is there anywhere that actually states the full instructions on how to install this to my site? I have downloaded the file and extracted it.... what next? I'm using 2.3.1