Guest Posted November 27, 2004 Posted November 27, 2004 Hi all, I have tried to fix this for a few hours but no luck! Problem: When adding a new manual order or editing an existing order in edit_order.php, the "Shipping Method" pull-down displays 6 shipping methods that we do not even use. Where is this pulling from? I get the same problem with the Payment Method pull-down. Note: The shipping cost is displayed correctly if it is an already processed order. We only use USPS: Priority, First-Class, Express, Parcel, etc... It displays: FedEx Priority to Canada FedEx Priority to USA FedEx Priority International Canada xpresspost Post Shipping Canada USA xpresspost Post Shipping USA Canada Post standard Air Mail Shipping I'm guessing the code that is pulling the info is in .../edit_orders.php // Shipping elseif($TotalDetails["Class"] == "ot_shipping") { echo ' <tr>' . "\n" . ' <td align="right" class="' . $TotalStyle . '"><b>Shipping Method:</b>' . tep_draw_pull_down_menu('update_totals[$TotalIndex][title]', $orders_ship_method, $TotalDetails["Name"]) . '</td>' . "\n"; echo ' <td align="right" class="' . $TotalStyle . '">' . "<input name='update_totals[$TotalIndex][value]' size='6' value='" . $TotalDetails["Price"] . "'>" . "<input type='hidden' name='update_totals[$TotalIndex][class]' value='" . $TotalDetails["Class"] . "'>" . "<input type='hidden' name='update_totals[$TotalIndex][total_id]' value='" . $TotalDetails["TotalID"] . "'>" . '</td>' . ' </tr>' . "\n"; } // End Shipping We accept credit card or check/money order (by mail) but in manual order we get a pull down for: Bank Transfer Payments PayPal Check/Money Order Purchase Order Here is the code for Payment Info in edit_orders.php <!-- Begin Payment Block --> <tr> <td><table border="0" cellspacing="0" cellpadding="2" class="infoBox"> <tr valine="middle"> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"><?php echo tep_draw_pull_down_menu('update_info_payment_method', $orders_pay_method, $order->info['payment_method']); ?> <?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE); ?> <?php if($order->info['payment_method'] != "Credit Card") echo ' To View CC Fields'; ?> <?php if($order->info['payment_method'] != "Purchase Order") echo ' or View PO Fields'; ?> </td> </tr> <?php if ($order->info['cc_type'] || $order->info['cc_owner'] || $order->info['payment_method'] == "Credit Card" || $order->info['cc_number']) { ?> <!-- Begin Credit Card Info Block --> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_TYPE; ?></td> <td class="main"><input name='update_info_cc_type' size='10' value='<?php echo $order->info['cc_type']; ?>'></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_OWNER; ?></td> <td class="main"><input name='update_info_cc_owner' size='20' value='<?php echo $order->info['cc_owner']; ?>'></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td> <td class="main"><input name='update_info_cc_number' size='20' value='<?php echo "(Last 4) " . substr($order->info['cc_number'],-4); ?>'></td> </tr> <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td> <td class="main"><input name='update_info_cc_expires' size='4' value='<?php echo $order->info['cc_expires']; ?>'></td> </tr> <!-- End Credit Card Info Block --> <?php // purchaseorder start } else if( (($order->info['account_name']) || ($order->info['account_number']) || $order->info['payment_method'] == "Purchase Order"|| ($order->info['po_number'])) ) { ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main" valign="top" align="left"><b>PO Information:</b></td> <td> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main">Account name:</td> <td><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main"><input type="text" name="account_name" value='<?php echo $order->info['account_name']; ?>'></td></td> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> </tr> <tr> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main">Account number:</td> <td><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main"><input type="text" name="account_number" value='<?php echo $order->info['account_number']; ?>'></td> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> </tr> <tr> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main">Purchase Order Nr:</td> <td><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main"><input type="text" name="po_number" value='<?php echo $order->info['po_number']; ?>'></td> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> </tr> </table> </td> </tr> <?php } ?> </table></td> </tr> <!-- End Payment Block --> Has anyone else had these problems? Any help is greatly appreciated. Thanks, -Rob
Guest Posted November 27, 2004 Posted November 27, 2004 it is in the sql statement when you install the script, thus these values are stored in the database.
Guest Posted November 27, 2004 Posted November 27, 2004 it is in the sql statement when you install the script, thus these values are stored in the database. <{POST_SNAPBACK}> Sorry, I'm a little new at this whole thing. What database, and where? I promise if you point me in the right direction I'll TRY to finish my self. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.