hi,
1. i installed a oscomm contrib called giftwrap. the admin is working great, but the giftwrap/nogiftwrap option does not show up on the checkout_shiping.php page as it is supposed to. the prob is that i have instlled the fec contrib and i could not do the final step in the instructions. the problem is that the docs say to find
<?php
if (tep_count_shipping_modules() > 0) {
?>
in checkout_shiping and then add this above it:
<!–BOF osc_Giftwrap –>
<?php
if (tep_count_giftwrap_modules() > 0) {
?>
<tr>
<td><table border=”0″ width=”100%” cellspacing=”0″ cellpadding=”2″>
<tr>
<td class=”main”><b><?php echo TABLE_HEADING_GIFTWRAP_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
$quotes1_size = sizeof($quotes1);
if ($quotes1_size > 1) {
?>
<tr>
<td><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
<td class=”main” width=”50%” valign=”top”><?php echo TEXT_CHOOSE_GIFTWRAP_METHOD; ?></td>
<td class=”main” width=”50%” valign=”top” align=”right”><?php echo ‘<b>’ . TITLE_PLEASE_SELECT . ‘</b><br>’ . 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_GIFTWRAP_INFORMATION; ?></td>
<td><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
</tr>
<?php
}
$radio_buttons = 0;
for ($i=0; $i<$quotes1_size; $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 (isset($quotes1[$i]['error'])) {
?>
<tr>
<td width=”10″><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
<td class=”main” colspan=”3″><?php echo $quotes1[$i]['error']; ?></td>
<td width=”10″><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
</tr>
<?php
} else {
$size = sizeof($quotes1[$i]['methods']);
for ($j=0, $n2=$size; $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen
$checked = (($quotes1[$i]['id'] . ‘_’ . $quotes1[$i]['methods'][$j]['id'] == $giftwrap_info['id']) ? true : false);
if ( ($quotes1[$i]['id'] . ‘_’ . $quotes1[$i]['methods'][$j]['id'] == $giftwrap_info['id']) || (tep_count_giftwrap_modules() == (int)1) ) {
echo ‘ <tr id=”defaultSelectedGift” class=”moduleRowSelected” onmouseover=”rowOverEffectGift(this)” onmouseout=”rowOutEffect(this)” onclick=”selectRowEffectGift(this, ‘ . $radio_buttons . ‘)”>’ . “n”;
} else {
echo ‘ <tr class=”moduleRow” onmouseover=”rowOverEffectGift(this)” onmouseout=”rowOutEffectGift(this)” onclick=”selectRowEffectGift(this, ‘ . $radio_buttons . ‘)”>’ . “n”;
}
?>
<td width=”10″><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
<td class=”main” width=”75%”><?php echo $quotes1[$i]['methods'][$j]['title']; ?></td>
<?php
if ( ($quotes1_size > 1) || ($n2 > 1) ) {
if (DISPLAY_PRICE_WITH_TAX == ‘true’) {
$gift_tax_rate_tmp = tep_get_tax_rate(MODULE_ORDER_TOTAL_GIFTWRAP_TAX_CLASS);
$gift_tax_amt_tmp = $quotes1[$i]['methods'][$j]['cost'];
$gift_tax_amt_tmp += tep_calculate_tax($quotes1[$i]['methods'][$j]['cost'], $gift_tax_rate_tmp);
?>
<td class=”main”><?php echo $currencies->format($gift_tax_amt_tmp); ?></td>
<?php
} else {
?>
<td class=”main”><?php echo $currencies->format($quotes1[$i]['methods'][$j]['cost']); ?></td>
<?php
}
?>
<td class=”main” align=”right”><?php echo tep_draw_radio_field(‘giftwrap’, $quotes1[$i]['id'] . ‘_’ . $quotes1[$i]['methods'][$j]['id'], $checked); ?></td>
<?php
} else {
?>
<td class=”main” align=”right” colspan=”2″><?php echo $currencies->format($quotes1[$i]['methods'][$j]['cost']) . tep_draw_hidden_field(‘giftwrap’, $quotes1[$i]['id'] . ‘_’ . $quotes1[$i]['methods'][$j]['id']); ?></td>
<?php
}
?>
<td width=”10″><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
</tr>
<?php
$radio_buttons++;
}
}
?>
</table></td>
<td><?php echo tep_draw_separator(‘pixel_trans.gif’, ’10′, ’1′); ?></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
?>
<!–EOF osc_Giftwrap–>
my file has been modified with th fec install and i think i am placing this in the wrong place. i have placed it in includes/fec/shipping_box.php
2. i have created a ctergory which will be used for selling gift certificates http://www.babybow.co.za/index.php?cPath=45. now when a person purchases a certificate they then must enter a email address for the recipient i.e the person who will receive the gift cetificate. this email field must go on the product details page so when they add it to the cart, the email address is recorded. e.g http://www.babybow.co.za/product_info.php?cPath=45&products_id=150