Hello, first of all thanks to everybody in here that helps the community. I hope one day become expert to help others... ;)
Does anybody have shipped COD's? I have included the arrays to send the data, but I am missing the value for the COD Flag. Here is what I have:
//Added to array for fedex:
,???? => $HTTP_POST_VARS['cod'] // COD Flag
// if COD, add COD flag
if ($HTTP_POST_VARS['cod'] == 1) {
$shipData[????] = 'Y';
}
else {
$shipData[????] = 'N';
//Added to data manifest:
cod => $cod,
//arrays for shipping
// arrays for COD
$cod = array();
$cod[] = array('id' => 0, 'text' => 'N');
$cod[] = array('id' => 1, 'text' => 'Y');
//to the form
<tr>
<td class="main" align="right">COD?</td>
<td class="main"> </td>
<td class="main"><?php echo tep_draw_pull_down_menu('cod',$cod); ?></td>
</tr>
//and
<input type="hidden" name="cod" value="<?php echo $HTTP_POST_VARS['cod']; ?>"/>
What else do I need to ship COD's and print the second and third labels?
Any help is really appreciated!