Jump to content

jdfitch

Members
  • Content count

    67
  • Joined

  • Last visited

1 Follower

Profile Information

  1. The solution to my problem turned out to be a simple one. You can not escape and use a literal question mark in a match line in htaccess. So you have to use a query string and pick out what you need and throw out the rest. This is what I used. RewriteCond %{QUERY_STRING} ^(products_id=[0-9]+)/[a-zA-Z0-9-]+$ RewriteRule ^product_info\.php$ /product_info.php?%1 [R=301,L] Works like a charm.
  2. It has everything to do with this contrib This line in htaccess RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} is picking up content in the URL after ...products_id=### in my case product_info.php?products_id=###/#### I am trying to work out how to change this rule so that everything is dropped from the new URL after the product ID# starting with that /
  3. Now I have an issue with very old links to my site that still exist out there in cyber space. I need an htaccess rewrite (301) to fix the issue before the url is passed to the SEO rewrite in the htaccess file. Links coming in look like this, product_info.php?products_id=168/Q####-##### (# sign of course are actually numbers) The URL works as far as landing on the right item in the catalog, but, wont work if you click the Add To Cart button. So I just need to drop everything after the / then let the SEO rewrite work and of course it would have to work for all product ID's and anything after the slash
  4. This has got me scratching my head. Using the old USPS module that went dark we did not have this error. After installling the module and emailing USPS, we get rates for Cont. U.S. But, we only offer postal service to Alaska, Hawaii, APO and FPO addresses. When running a test I get this error: <Package ID="1"> <Error> <Number>-2147219401</Number> <Source>;clsRateV4.CreateSinglePostage-CreateSinglePostage;RateEngineV4.ProcessRequest</Source> <Description> Error Information: The Destination ZIP Code you have entered is invalid.</Description> <HelpFile></HelpFile> <HelpContext>1000440</HelpContext> </Error> </Package> </RateV4Response> Address is: APO, AE 09391 This is a valid US Postal Service Zip Code. Any thoughts?
  5. I am scratching my head. Installed the module, emailed the postal folks to move us to to production server, All is well if I set the module to present rates for Cont. U.S. But. We only use the post office for Alaska, Hawaii and APO and FPO addresses. When I test a known APO, AE address I get: <Package ID="1"> <Error> <Number>-2147219401</Number> <Source>;clsRateV4.CreateSinglePostage-CreateSinglePostage;RateEngineV4.ProcessRequest</Source> <Description> Error Information: The Destination ZIP Code you have entered is invalid.</Description> <HelpFile></HelpFile> <HelpContext>1000440</HelpContext> </Error> </Package> </RateV4Response> Address is: APO, AE 09391 This is a valid US Postal Service zip code. This did not happen with the old USPS module that went dark on us. Any thoughts?
  6. jdfitch

    FedEx - Web Services v9

    Download and install my upload V9.3. It turns off International Ground to any foreign country. http://addons.oscommerce.com/info/7977 But does not have any effect on any other FedEx service quote, you still get international econ and priority to Canada rates. (it is easier and less hassle to use FedEx Express to cross a border anyway- Just MHO and my experience) There has always been an issue with FedEx returning $0.00 shipping cost for international when LIST rates are applied. Not sure why but that problem goes back way before this module.
  7. jdfitch

    FedEx - Web Services v9

    Are you using PayPal Express or any other PayPal module? You say the error occurs "where the call back to the shopping cart". If you are, run a search on the paypal module for function cmp() I have to wonder now if that was not used in that module. If so, that is the problem, two different modules using the same function call for two different functions. Just my guess at the moment, as I do not know what modules you have installed. As for useing FedEx Real Time Quotes. That will only work for a short time, FedEx will be phasing out all of the old API support next year.
  8. jdfitch

    FedEx - Web Services v9

    Just posted to the contribs section a V9.3. http://addons.oscommerce.com/info/7977 Includes all changes from V9.2 Added: My attempt at installation instructions. (they are crude but I tried) A Changelog (to try and keep track of changes) Stopped the module from quoting a ground rate to a foriegn country (international ground, if enabled, is unaffected). Stopped the module from quoting rates for a PO Box shipping address. The only changes are to /includes/modules/shipping/fedexwebservices.php at or about line 88 if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_INTERNATIONAL_GROUND == 'true') { Changed to: if ((MODULE_SHIPPING_FEDEX_WEB_SERVICES_GROUND == 'true') && ($order->delivery['country']['iso_code_2'] == $this->country)) { at or about line 287 $this->quotes = array('module' => $this->title, 'error' => $message); } changed to: $this->quotes = array('module' => $this->title, 'error' => $message); } // po box hack by JD if (eregi("^P(.+)O(.+)BOX",$order->delivery['street_address']) ||eregi("^PO BOX",$order->delivery['street_address']) || eregi("^P(.+)O(.+)BOX",$order->delivery['suburb']) || eregi("^[A-Z]PO",$order->delivery['street_address']) || eregi("^[A-Z]PO",$order->delivery['suburb'])) { $this->quotes = array('module' => $this->title, 'error' => '<font size=+2 color=red><b>Federal Express cannot ship to Post Office Boxes.<b></font><br>Use the Change Address button above to use a FedEx accepted street address.'); } // end po box hack by JD Hope this helps someone else besides me.
  9. jdfitch

    FedEx - Web Services v9

    I have been using my FedEx automated labels all along, We updated the the webservices module about a month ago, all I did was turn off the FedEx Realtime Quotes shipping module in the admin>modules>shipping. I did not make any changes to it or unistall it. Just set enable to FALSE. Our Automated labels is working fine. I think the only reason you needed Realtime Quotes to begin with was to get a fedex meter ID
  10. jdfitch

    FedEx module with weight/dimensions

    This may not be much help, but, you can enter your weights as dimensional weights. In the item editor page set your weights there and forget about aggregate weight. We ship a lot of very bulky items and have found this to be to the only solution so far. L x W x H / 199 for domestic L x W x H / 164 for international The webservices fedex module appears to be just an adaptation of a module written for another cart system and has no oscommerce developer and thus no one supporting it. We are going to have to find ways to fix the module as it does not work in it’s present form. No support for: 2nd Address line special characters that show up in foreign addresses cause the module to crash no support for items that must ship separate no check to prevent customers from entering a PO box as the shipping address
  11. jdfitch

    FedEx - Web Services v9

    Another strange thing. After line 110: // customer details $street_address = $order->delivery['street_address']; $street_address2 = $order->delivery['suburb']; $city = $order->delivery['city']; This code is wrong. We added the second address line to OSCommerce a long time ago so it should be something like: // customer details $street_address = $order->delivery['street_address']; $street_address2 = $order->delivery['street_address_2']; $suburb = $order->delivery['suburb']; $city = $order->delivery['city']; and then after line 380 return array('MODULE_SHIPPING_FEDEX_WEB_SERVICES_STATUS', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_KEY', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_PWD', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_ACT_NUM', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_METER_NUM', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_WEIGHT', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_ADDRESS_1', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_ADDRESS_2', would become: return array('MODULE_SHIPPING_FEDEX_WEB_SERVICES_STATUS', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_KEY', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_PWD', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_ACT_NUM', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_METER_NUM', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_WEIGHT', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_ADDRESS_1', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_ADDRESS_2', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_SUBURB Again any thoughts? I am just becomeing familiar with this module so any help would be appreciated,
  12. jdfitch

    FedEx - Web Services v9

    Also something that came up today. In the original FedEx real time quotes there was a solution provided to stop the shippng address from including a PO Box. As FedEx does not deliver to PO boxes. the code was inserted just below the Country Just below line 32 $this->country = STORE_ORIGIN_COUNTRY; } became: $this->country = STORE_ORIGIN_COUNTRY; } if (eregi("^P(.+)O(.+)BOX",$order->delivery['street_address']) ||eregi("^PO BOX",$order->delivery['street_address']) || eregi("^P(.+)O(.+)BOX",$order->delivery['suburb']) || eregi("^[A-Z]PO",$order->delivery['street_address']) || eregi("^[A-Z]PO",$order->delivery['suburb'])) { $this->quotes = array('module' => $this->title, 'error' => '<font size=+2 color=red><b>Federal Express cannot ship to Post Office Boxes.<b></font>'); } I have tried just adding this code, but it does not show the error text, in fact it has no effect at all. Any thoughts?
  13. jdfitch

    FedEx - Web Services v9

    I just ran into the same issue with a customer from Brazil used an é in his shipping address and instead of a 500 error the shipping page just came up blank. We either need a fix for this, or a filter to replace accented characters. Also I have not had a chance to work on it, but I think we would also need to consider the Ship Seperatley addon from the original FedEx Real Time Quotes. http://addons.oscommerce.com/info/1462 update V2.06 26 Nov 2006. We ship a lot of bulky packages and this addon has really saved our butts with shipping calculations.
  14. jdfitch

    DHL XML Support

    We have been signed up and using DHL shipit for a while, all was fine well and good. We made the tragic mistake of asking DHL XML support for some aid in writing a label generation system not unlike the fedex automated lable system. O My What a mistake. If you are an up and comming ETailer with a growing operation, as much fun as FedEx and UPS can be, at least you can get a sales rep to help get you better rates. It took two years to get our DHL rep and he still wont answer emails. If you ever find yourself in an email exchange with XML requests at DHL beware of Brenda Murphy she didnt like that we wanted make her work so she cut off our DHL quotes. Nice People.
  15. jdfitch

    edgeoi feed error

    I am really not sure what you were trying to acomplish. A very simple solution to stop the script from listing every item as it is in every categorie, ie.. with store items are listed in more than one categorie so the script would put the items in the feed once for each category. was simply to change: $result=tep_db_query("select * from products p, products_description pd, products_to_categories ptc where p.products_id=pd.products_id and p.products_id=ptc.products_id and p.products_status=1 " . $limit); To: $result=tep_db_query("select * from products p, products_description pd where p.products_id=pd.products_id and p.products_status=1 " . $limit); What is missing are two components. 1. The Products_to_categories ptc both ends 2. we removed the and p.products_quantity>0 since we dont usually keep the quantity in the catalog.
×