Jump to content

vjwebb

♥Ambassador
  • Content count

    54
  • Joined

  • Last visited

Everything posted by vjwebb

  1. By anyones definition, I am not a php expert. However, I discovered that the shipdate being handed to USPS was the current date. I made the following change in the code to handle the 1 day or 2 day if Saturday to handle my 1 day processing requirement and it seems to be working. My guess is that there is a better way to do this, but I needed to get my store producing the correct info. I don't add a handling fee so I didn't research that. However, I don't see in the $request where a handling fee is being passed to the USPS. If it were me, I would just add the fee to the rates that I got back. // VJW - Make the shipping date // Calculate tomorrow's date $tomorrow = mktime(0, 0, 0, date("m"), date("d")+1, date("Y")); $dow = date('w',$tomorrow); // if tomorrow is Sunday, add 2 days instead of 1 if ($dow == 0) { $tomorrow = mktime(0, 0, 0, date("m"), date("d")+2, date("Y")); } $shipDate = date('d-M-Y',$tomorrow); // VJW - substituted shipdate for date in <shipDate> $request .= '<Package ID="' . $services_count . '">' . '<Service>' . $key . '</Service>' . '<FirstClassMailType>' . $this->FirstClassMailType . '</FirstClassMailType>' . '<ZipOrigination>' . SHIPPING_ORIGIN_ZIP . '</ZipOrigination>' . '<ZipDestination>' . $dest_zip . '</ZipDestination>' . '<Pounds>' . $this->pounds . '</Pounds>' . '<Ounces>' . $this->ounces . '</Ounces>' . '<Container>' . $this->container . '</Container>' . '<Size>' . $this->size . '</Size>' . '<Value>' . $insurable . '</Value>' . '<Machinable>' . $this->machinable . '</Machinable>' . '<ShipDate>' . $shipDate . '</ShipDate>' . // '<ShipDate>' . date('d-M-Y') . '</ShipDate>' . '</Package>';
  2. I installed this change and it got rid of the <sup> </sup> around the trademark and registered symbols. However, it also got rid of the trademark and registered symbols. Was it supposed to do that? I thought I remembered reading that the post office required us to display the symbols. Thank you,
  3. I am running the PayPal IPN module and have been for years. If a customer doesn't have a PayPal account, the shipping address is populated into the billing address and displayed to the customer. I don't know if this is something recent or if it has always been incorrect. Can someone sugguest how to fix this? V J
  4. I turned on the email diagnostic and found the problem. The usps.php file had the following code: if ((MODULE_SHIPPING_USPS_DMST_DEL_CONF == 'True') && (preg_match('/<\/ServiceName><Available>true<\/Available><AvailableOnline>true<\/AvailableOnline><Price>0.80<\/Price><PriceOnline>/', $response[$i]))) { $del_conf = ereg('</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>0.80</Price><PriceOnline>(.*)</PriceOnline>', $response[$i], $regs); The post office apparently raised the not-online price from 0.80 to 0.85. I changed it from 0.80 to 0.85 and it is again working perfectly. Sorry for the trouble but maybe it will help someone else. V J
  5. In April of 2011, I upgraded to USPS methods 5.2.1. This new version had a check box to add 19 cents to First Class and Parcel Post shipping costs (to handle the delivery confirmation charge that PayPal forces). I just realized yesterday that the 19 cents is not being added. I am almost positive that I tested the feature when I did the upgrade. I had made a change on the older version that I was running that handled adding the 19 cents after the response from the post office. Can someone tell me why this has stopped working. I don't see the 19 cents coded anywhere so I am asuming that it supposed to be part of the response from the post office. Any help will be greatly appreciated. V J
  6. vjwebb

    USPS Shipping Labels

    around line 149 in usps_ship.php find: $arr = explode(" ", $order->customer['name'], 2); And replace it with this: $arr = explode(" ", $order->delivery['name'], 2); It was using the customer name instead of the delivery name. If they are the same, you don't see the problem. Thanks for the catch.
  7. vjwebb

    USPS Shipping Labels

    Just in case anyone else is having a problem with company name. I fixed the company name. I set up a new account with USPS that is flagged as business and it let me add a Company Name. The old version of usps_php picked up the return address values from the configuration file. The new version is using the info on the USPS account.
  8. vjwebb

    USPS Shipping Labels

    I have it working although it is not picking up my Company Name (it used to). I think the problem may be that my USPS account is personal and not business. I have sent them an email asking how to fix the problem. I can go into edit mode after the fields are filled in and add the name but that is time consuming. At least I don't have to enter the shipping address. I would like to thank everyone for all the hard work. I still can't believe that our tax dollars are being used to change the shipping page into a frilly hard to read page. No wonder the post office is losing money.
  9. vjwebb

    USPS Shipping Labels

    Can someone please tell me where in orders.php that I put the following line of code. <?PHP include('uspslabelfix.php');?> Wes said it goes just before the </td> but I must not be finding the right one, because I am getting an error. Thank you and a grateful thanks to Wes for solving the problem.
  10. vjwebb

    USPS Shipping Labels

    I have been having an email conversation with USPS and their response is that the redesign didn't have any effect on the API. They keep telling me to contact my 3rd party vendor. However, I don't have a 3rd party vendor. Does anyone have any suggestions other than to check out shipping via Fedex or UPS?
  11. vjwebb

    USPS Shipping Labels

    I too can no longer print labels from the admin screen. When I click the print shipping label button, I am taken to the USPS website with the info filled in (just like always). When I click continue from that screen, I am taken to the login screen. I login and get a page has moved message. When I go to the new shipping page, the customer's address isn't filled in and my company name isn't on return address. Once again, they have done a redesign without any thought as to the impact it will have on their business customers. I too am hoping for a fast and easy fix.
  12. vjwebb

    ULTIMATE Seo Urls 5 - by FWR Media

    I have installed Ultimate SEO URLs 5 Pro and everything seems to work perfectly. Thank you. Now I am trying to find a google base feed that works. Can someone point me to a contribution that works with this wonderful contribution? I have spent the better part of the day searching for a solutions and now I am just frustrated. Any help will be greatly appreciated. V J
  13. I just found out that my International USPS rates quit working at the first of the year. I installed the USPS Methods 5.2.1 that displays the trademark and it works perfectly. However, I have the 'Ship in Cart' shipping estimator installed and it is displaying the word 'regimark' instead of the trademark symbol. Can someone tell me what to modify in shipping_estimator.php to get this to work. There are instructions in the install file but the referenced code isn't in this shipping estimator. Any help would be greatly appreciated. <?php /* $Id: shipping_estimator.php,v 2.20 2004/07/01 15:16:07 eml Exp $ v2.00 by Acheron + installed Fix for v2.0 and all other versions Acheron 7 Jul 2004 (see Install.txt for partial version history) Copyright (c) 2004 Released under the GNU General Public License + installed Fix for v2.0 and all other versions Acheron 7 Jul 2004 */ ?> <!-- shipping_estimator //--> <script language="JavaScript"> function shipincart_submit(sid){ if(sid){ document.estimator.sid.value=sid; } document.estimator.submit(); return false; } </script> <table align="center"><tr valign="top"><td> <?php require(DIR_WS_LANGUAGES . $language . '/modules/' . FILENAME_SHIPPING_ESTIMATOR); if (($cart->count_contents() > 0)) { // shipping cost require('includes/classes/http_client.php'); // shipping in basket //if($cart->get_content_type() !== 'virtual') { if (tep_session_is_registered('customer_id')) { // user is logged in if (isset($HTTP_POST_VARS['address_id'])){ // user changed address $sendto = $HTTP_POST_VARS['address_id']; }elseif (tep_session_is_registered('cart_address_id')){ // user once changed address $sendto = $cart_address_id; }else{ // first timer $sendto = $customer_default_address_id; } // set session now $cart_address_id = $sendto; tep_session_register('cart_address_id'); // set shipping to null ! multipickup changes address to store address... $shipping=''; // include the order class (uses the sendto !) require(DIR_WS_CLASSES . 'order.php'); $order = new order; }else{ // user not logged in ! if (isset($HTTP_POST_VARS['country_id'])){ // country is selected $country_info = tep_get_countries($HTTP_POST_VARS['country_id'],true); $order->delivery = array('postcode' => $HTTP_POST_VARS['zip_code'], 'country' => array('id' => $HTTP_POST_VARS['country_id'], 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' => $country_info['countries_iso_code_3']), 'country_id' => $HTTP_POST_VARS['country_id'], //add state zone_id 'zone_id' => $HTTP_POST_VARS['state'], 'format_id' => tep_get_address_format_id($HTTP_POST_VARS['country_id'])); $cart_country_id = $HTTP_POST_VARS['country_id']; tep_session_register('cart_country_id'); //add state zone_id $cart_zone = $HTTP_POST_VARS['zone_id']; tep_session_register('cart_zone'); $cart_zip_code = $HTTP_POST_VARS['zip_code']; tep_session_register('cart_zip_code'); }elseif (tep_session_is_registered('cart_country_id')){ // session is available $country_info = tep_get_countries($cart_country_id,true); $order->delivery = array('postcode' => $cart_zip_code, 'country' => array('id' => $cart_country_id, 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' => $country_info['countries_iso_code_3']), 'country_id' => $cart_country_id, 'format_id' => tep_get_address_format_id($cart_country_id)); } else { // first timer $cart_country_id = STORE_COUNTRY; tep_session_register('cart_country_id'); $country_info = tep_get_countries(STORE_COUNTRY,true); tep_session_register('cart_zip_code'); $order->delivery = array(//'postcode' => '', 'country' => array('id' => STORE_COUNTRY, 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' => $country_info['countries_iso_code_3']), 'country_id' => STORE_COUNTRY, 'format_id' => tep_get_address_format_id($HTTP_POST_VARS['country_id'])); } // set the cost to be able to calculate free shipping $order->info = array('total' => $cart->show_total(), // TAX ???? 'currency' => $currency, 'currency_value'=> $currencies->currencies[$currency]['value']); } // weight and count needed for shipping $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; $quotes = $shipping_modules->quote(); $order->info['subtotal'] = $cart->total; // set selections for displaying $selected_country = $order->delivery['country']['id']; $selected_address = $sendto; //} // eo shipping cost // check free shipping based on order total if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true')) { switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) $pass = true; break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) $pass = true; break; case 'both': $pass = true; break; default: $pass = false; break; } $free_shipping = false; if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) { $free_shipping = true; include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); } } else { $free_shipping = false; } // begin shipping cost if(!$free_shipping && $cart->get_content_type() !== 'virtual'){ if (tep_not_null($HTTP_POST_VARS['sid'])){ list($module, $method) = explode('_', $HTTP_POST_VARS['sid']); $cart_sid = $HTTP_POST_VARS['sid']; tep_session_register('cart_sid'); }elseif (tep_session_is_registered('cart_sid')){ list($module, $method) = explode('_', $cart_sid); }else{ $module=""; $method=""; } if (tep_not_null($module)){ $selected_quote = $shipping_modules->quote($method, $module); if($selected_quote[0]['error'] || !tep_not_null($selected_quote[0]['methods'][0]['cost'])){ $selected_shipping = $shipping_modules->cheapest(); $order->info['shipping_method'] = $selected_shipping['title']; $order->info['shipping_cost'] = $selected_shipping['cost']; $order->info['total']+= $selected_shipping['cost']; }else{ $order->info['shipping_method'] = $selected_quote[0]['module'].' ('.$selected_quote[0]['methods'][0]['title'].')'; $order->info['shipping_cost'] = $selected_quote[0]['methods'][0]['cost']; $order->info['total']+= $selected_quote[0]['methods'][0]['cost']; $selected_shipping['title'] = $order->info['shipping_method']; $selected_shipping['cost'] = $order->info['shipping_cost']; $selected_shipping['id'] = $selected_quote[0]['id'].'_'.$selected_quote[0]['methods'][0]['id']; } }else{ $selected_shipping = $shipping_modules->cheapest(); $order->info['shipping_method'] = $selected_shipping['title']; $order->info['shipping_cost'] = $selected_shipping['cost']; $order->info['total']+= $selected_shipping['cost']; } } // virtual products use free shipping if($cart->get_content_type() == 'virtual') { $order->info['shipping_method'] = CART_SHIPPING_METHOD_FREE_TEXT . ' ' . CART_SHIPPING_METHOD_ALL_DOWNLOADS; $order->info['shipping_cost'] = 0; } if($free_shipping) { $order->info['shipping_method'] = MODULE_ORDER_TOTAL_SHIPPING_TITLE; $order->info['shipping_cost'] = 0; } $shipping=$selected_shipping; // end of shipping cost // end free shipping based on order total $info_box_contents = array(); $info_box_contents[] = array('text' => '<b>' . CART_SHIPPING_OPTIONS . '</b>'); // azer for 2.20 cosmetic change new infoBoxHeading($info_box_contents, false, false); $ShipTxt= tep_draw_form('estimator', tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'), 'post'); //'onSubmit="return check_form();"' $ShipTxt.=tep_draw_hidden_field('sid', $selected_shipping['id']); $ShipTxt.='<table>'; if(sizeof($quotes)) { if (tep_session_is_registered('customer_id')) { // logged in if (CARTSHIP_SHOWWT == 'true') { $showweight = ' (' . $total_weight . ' ' . CARTSHIP_WTUNIT . ')'; } else { $showweight = ''; } if(CARTSHIP_SHOWIC == 'true'){ //ishazer remover hard code for version 2.20 : $ShipTxt.='<tr><td class="main">' . ($total_count == 1 ? ' <b>Item:</b></td><td colspan="2" class="main">' : ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main">') . $total_count . $showweight . '</td></tr>'; $ShipTxt.='<tr><td class="main">' . ($total_count == 1 ? ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main">' : ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main">') . $total_count . $showweight . '</td></tr>'; } $addresses_query = tep_db_query("select address_book_id, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'"); // only display addresses if more than 1 if (tep_db_num_rows($addresses_query) > 1){ while ($addresses = tep_db_fetch_array($addresses_query)) { $addresses_array[] = array('id' => $addresses['address_book_id'], 'text' => tep_address_format(tep_get_address_format_id($addresses['country_id']), $addresses, 0, ' ', ' ')); } $ShipTxt.='<tr><td colspan="3" class="main" nowrap>' . CART_SHIPPING_METHOD_ADDRESS .' '. tep_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit(\'\');"').'</td></tr>'; } $ShipTxt.='<tr valign="top"><td class="main"><b>' . CART_SHIPPING_METHOD_TO .'</b> </td><td colspan="2" class="main">'. tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>') . '</td></tr>'; } else { // not logged in $ShipTxt.=CART_SHIPPING_OPTIONS_LOGIN; if(CARTSHIP_SHOWIC == 'true'){ //azer for 2.20: $ShipTxt.='<tr><td class="main">' . ($total_count == 1 ? ' <b>Item:</b></td><td colspan="2" class="main">' : ' <b>Items:</b></td><td colspan="2" class="main">') . $total_count . $showweight . '</td></tr>'; $ShipTxt.='<tr><td class="main" nowrap>' . ($total_count == 1 ? ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main" nowrap>' : ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main">') . $total_count . $showweight . '</td></tr>'; } if($cart->get_content_type() != 'virtual'){ if(CARTSHIP_SHOWCDD == 'true'){ $ShipTxt.='<tr><td colspan="3" class="main" nowrap>' . ENTRY_COUNTRY .' '. tep_get_country_list('country_id', $selected_country,'style="width=200"').'<br />'; } //add state zone_id $state_array[] = array('id' => '', 'text' => 'Please Select'); $state_query = tep_db_query("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '$selected_country' order by zone_country_id DESC, zone_name"); while ($state_values = tep_db_fetch_array($state_query)) { $state_array[] = array('id' => $state_values['zone_id'], 'text' => $state_values['zone_name']); } if(CARTSHIP_SHOWSDD == 'true'){ $ShipTxt.=ENTRY_STATE .' '. tep_draw_pull_down_menu('state',$state_array).'<br />'; } if(CARTSHIP_SHOWZDD == 'true'){ $ShipTxt.=ENTRY_POST_CODE .' '. tep_draw_input_field('zip_code', $selected_zip, 'size="5"'); } // $ShipTxt.=' <a href="_" onclick="return shipincart_submit(\'\');">'.CART_SHIPPING_METHOD_RECALCULATE.'</a></td></tr>'; if(CARTSHIP_SHOWUB == 'true'){ $ShipTxt.=' <td><a href="_" onclick="return shipincart_submit(\'\');">'. tep_image_button('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART) . ' </a></td></td></tr>'; } } } if($cart->get_content_type() == 'virtual'){ // virtual product-download //$ShipTxt.='<tr><td colspan="3" class="main">'.tep_draw_separator().'</td></tr>'; $ShipTxt.='<tr><td class="main" colspan="3"> </td></tr><tr><td class="main" colspan="3"><i>' . CART_SHIPPING_METHOD_FREE_TEXT . ' ' . CART_SHIPPING_METHOD_ALL_DOWNLOADS . '</i></td></tr>'; }elseif ($free_shipping==1) { // order $total is free //$ShipTxt.='<tr><td colspan="3" class="main">'.tep_draw_separator().'</td></tr>'; $ShipTxt.='<tr><td class="main" colspan="3"> </td></tr><tr><td class="main" colspan="3"><i>' . sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . '</i></td><td> </td></tr>'; }else{ // shipping display if ( empty($quotes[0]['error']) || (!empty($quotes[1])&∅($quotes[1]['error'])) ) { $ShipTxt.='<tr><td colspan="3" class="main"> </td></tr><tr><td class="main"><b>' . CART_SHIPPING_CARRIER_TEXT . '</b></td><td class="main" align="left"><b>' . CART_SHIPPING_METHOD_TEXT . '</b></td><td class="main" align="right"><b>' . CART_SHIPPING_METHOD_RATES . '</b></td></tr>'; $ShipTxt.='<tr><td colspan="3" class="main">'.tep_draw_separator().'</td></tr>'; } else { $ShipTxt.='<tr><td colspan="3" class="main"> </td></tr>'; } for ($i=0, $n=sizeof($quotes); $i<$n; $i++) { if(sizeof($quotes[$i]['methods'])==1){ // simple shipping method $thisquoteid = $quotes[$i]['id'].'_'.$quotes[$i]['methods'][0]['id']; $ShipTxt.= '<tr class="'.$extra.'">'; $ShipTxt.='<td class="main">'.$quotes[$i]['icon'].' </td>'; if($quotes[$i]['error']){ $ShipTxt.='<td colspan="2" class="main">'.$quotes[$i]['module'].' '; $ShipTxt.= '('.$quotes[$i]['error'].')</td></tr>'; }else{ if($selected_shipping['id'] == $thisquoteid){ // commented for v2.10 : $ShipTxt.='<td class="main"><a title="Select this method" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');"><b>'.$quotes[$i]['module'].' '; $ShipTxt.='<td class="main"><a title="' . CART_SELECT_THIS_METHOD .'" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');"><b>'.$quotes[$i]['module'].' '; $ShipTxt.= '('.$quotes[$i]['methods'][0]['title'].')</b></a> </td><td align="right" class="main"><b>'.$currencies->format(tep_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])).'</b></td></tr>'; }else{ // commented for v2.10 : $ShipTxt.='<td class="main"><a title="Select this method" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');">'.$quotes[$i]['module'].' '; $ShipTxt.='<td class="main"><a title="' . CART_SELECT_THIS_METHOD .'" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');">'.$quotes[$i]['module'].' '; $ShipTxt.= '('.$quotes[$i]['methods'][0]['title'].')</a> </td><td align="right" class="main">'.$currencies->format(tep_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])).'</td></tr>'; } } } else { // shipping method with sub methods (multipickup) for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { $thisquoteid = $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id']; $ShipTxt.= '<tr class="'.$extra.'">'; $ShipTxt.='<td class="main">'.$quotes[$i]['icon'].' </td>'; if($quotes[$i]['error']){ $ShipTxt.='<td colspan="2" class="main">'.$quotes[$i]['module'].' '; $ShipTxt.= '('.$quotes[$i]['error'].')</td></tr>'; }else{ if($selected_shipping['id'] == $thisquoteid){ // commented for v2.10 : $ShipTxt.='<td class="main"><a title="Select this method" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');"><b>'.$quotes[$i]['module'].' '; $ShipTxt.='<td class="main"><a title="' . CART_SELECT_THIS_METHOD .'" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');"><b>'.$quotes[$i]['module'].' '; $ShipTxt.= '('.$quotes[$i]['methods'][$j]['title'].')</b></a> </td><td align="right" class="main"><b>'.$currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])).'</b></td><td class="main">'.tep_image(DIR_WS_ICONS . 'selected.gif', 'Selected').'</td></tr>'; }else{ // commented for v2.10 : $ShipTxt.='<td class="main"><a title="Select this method" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');">'.$quotes[$i]['module'].' '; $ShipTxt.='<td class="main"><a title="' . CART_SELECT_THIS_METHOD .'" href="_" onclick="return shipincart_submit(\''.$thisquoteid.'\');">'.$quotes[$i]['module'].' '; $ShipTxt.= '('.$quotes[$i]['methods'][$j]['title'].')</a> </td><td align="right" class="main">'.$currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])).'</td><td class="main"> </td></tr>'; } } } } } } } $ShipTxt.= '</table></form>'; $info_box_contents = array(); $info_box_contents[] = array('text' => $ShipTxt); new infoBox($info_box_contents); if (CARTSHIP_SHOWOT == 'true'){ // BOF get taxes if not logged in if (!tep_session_is_registered('customer_id')){ $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { $products_tax = tep_get_tax_rate($products[$i]['tax_class_id'], $order->delivery['country_id'],$order->delivery['zone_id']); $products_tax_description = tep_get_tax_description($products[$i]['tax_class_id'], $order->delivery['country_id'], $order->delivery['zone_id']); if (DISPLAY_PRICE_WITH_TAX == 'true') { //Modified by Strider 42 to correct the tax calculation when a customer is not logged in // $tax_val = ($products[$i]['final_price']-(($products[$i]['final_price']*100)/(100+$products_tax)))*$products[$i]['quantity']; $tax_val = (($products[$i]['final_price']/100)*$products_tax)*$products[$i]['quantity']; } else { $tax_val = (($products[$i]['final_price']*$products_tax)/100)*$products[$i]['quantity']; } $order->info['tax'] += $tax_val; $order->info['tax_groups']["$products_tax_description"] += $tax_val; // Modified by Strider 42 to correct the order total figure when shop displays prices with tax if (DISPLAY_PRICE_WITH_TAX == 'true') { $order->info['total']; } else { $order->info['total']+=$tax_val; } } } // EOF get taxes if not logged in (seems like less code than in order class) require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; //echo '</td><td align="right">'; // order total code $order_total_modules->process(); $info_box_contents = array(); $info_box_contents[] = array('text' => '<b>' . CART_OT . '</b>'); //azer version 2.20 new infoBoxHeading($info_box_contents, false, false); $otTxt='<table align="right">'; $otTxt.=$order_total_modules->output().'</table>'; $info_box_contents = array(); $info_box_contents[] = array('text' => $otTxt); new infoBox($info_box_contents); } } // Use only when cart_contents > 0 ?> </td></tr></table>
  14. After I finish my testing on all the changes that I made, I will do that. Thank you, V J
  15. I played around with the code and got it to display correctly.
  16. I already tried title and I found it many times. However, the code is written to concatenate the entire display and I am not sure where to put the str_replace. Also, since the word echo isn't in the source, I am not sure how it is getting on the screen. I was hoping to get help from someone more experience in php than I am. If not, I will just play with it until it works.
  17. I agree, however, method_data isn't anywhere in the source file.
  18. Thank you for your response, however, the line of code that is referenced in the USPS Methods instructions to change isn't in the shipping_estimator.php file from the 'Ship in Cart' addon. The code is in the ship_estimator.php file from the 'MVS Shipping Estimator' addon. I am running the 'Ship in Cart' addon. The instructions say to look for: <td class="main" width="75%"><?php echo $method_data['title']; ?></td>
  19. vjwebb

    USPS parcel post rate incorrect

    I found the problem, part of the comparison was missing in the usps.php file at line 92. So anytime the weight was less than 6 ounces regardless of the number of pounds, the machinable paramater was set to false. The lastest version with all of the insurance code has the right line of code.
  20. I was running the USPS methods version 2.8d1. Yesterday I discovered that I could no longer select the displayed parcel post rate (rate was correct.) So today I downloaded and installed 2.9.2a1 (I use insurance) on my test website and everything worked flawlessly. So tonight I made the same changes on my live website. Now the parcel post is being returned and it is higher than priority mail. I ran a compare on the files installed on my test website versus the ones on the live website and they are identical. I am at a loss as to what to do next, any ideas?
  21. vjwebb

    shopping.com feeds

    Shopping.com told me to send it with the field blank and it puts shipping not included on the listing. I haven't tested this response from them yet but I see a lot of lisitings that say shipping not included.
  22. I have a lot of customers that don't return to my site after they have paid with a credit card through PayPal (no PayPal account) and I know that the inventory quantity doesn't update. However, I just found out today that the shipping comments that the customer entered on my site also don't get updated to the order. Can someone please tell me where this info is stored and why it doesn't get updated to order before it goes to PayPal? I have looked through all the files and can't find it stored anywhere. I have searched this site and the contributions site and can't find any information regarding the problem. Any help will be greatly appreciated. Thank you, V J
  23. vjwebb

    Order comments missing

    I found the problem. I was running an older version of the PayPal IPN and the version 2.2 fixed not only that problem but the problem of the inventory not updating when customer doesn't return to my site. I installed and tested and everything is working flawlessly. V J
  24. vjwebb

    Order comments missing

    Sorry, I should have mentioned that I do have PayPal IPN installed.
  25. I found the problem, the coupon.php file under admin is missing the number_available field in the insert line. The data has the correct number of fields.
×