Jump to content

spoot

Members
  • Content count

    199
  • Joined

  • Last visited

Everything posted by spoot

  1. spoot

    FedEx Shipping Module

    This thread is overflowing with misinformation. I hope no one is spending too much time reinventing the wheel here. Have you tried searching for "fedex" at http://oscommerce.com/community/contributions? There are two that use the API: FedEx Realtime Quotes, and FedEx Automated Labels, which uses FedEx Realtime Quotes during the install. http://www.oscommerce.com/community/contributions,1462 http://www.oscommerce.com/community/contributions,2244 Both of these contributions make extensive use of the FedEx API. Both talk directly to FedEx's servers, and both are currently working. There are separate support threads for both contributions elsewhere in these pages. I hope this helps, Michael
  2. spoot

    Automated FedEx Labels

    I like that sticker-label business, good idea! Regarding the manifest: is this something that FedEx is expecting at the end of the day? This contribution is set up to send a ship request on a per-package basis; but that's the only time FedEx is contacted. I see there's an "end of day close" transaction in the API. There are no parameters in it though... does that just tell FedEx that you're done for the day? It'd probably be easy enough to add to the manifest, just an "end of day" button of some kind. Michael
  3. spoot

    Automated FedEx Labels

    Billy - I'm sorry but I haven't given much thought at all to this - in fact, I hardly remember what we discussed. If you could explain the test label script business again, that would be great. I won't have much time for it, but at least it'll be captured - Thanks Michael
  4. spoot

    Automated FedEx Labels

    FedEx doesn't care about anything that's printed below the label itself. Their "official" labels have some gobbledygook down there as well.
  5. spoot

    Automated FedEx Labels

    Post your orders.php, I'll see if I can recreate the error -
  6. spoot

    Automated FedEx Labels

    From another forum: Worth a try? Let me know -
  7. spoot

    Automated FedEx Labels

    No, probably not... not yet anyway. Have you done any other modifications to any administrative stuff? I'm trying to figure out why the oscadminid would change mid-session (I've posted to the general help forum to see if anyone else knows). I don't know much about session management, but in my experience that oscadminid shows up on the index page, but doesn't show up in subsequent URLs - I think PHP just deals with the session, or something. I'm hoping to find some outside assistance to figure this one out. Michael
  8. spoot

    Automated FedEx Labels

    Nope - that's what the tep_href_link() function does: it adds all the session-tracking values to the URL. What I find strange about this business is that in the URLs you posted, only one - the "Fedex Label" one - was missing the osCAdminID, and that one's now fixed. Both the "cancel shipment" and the "track shipment" links include all the necessary information, & shouldn't be giving you any grief. At this point, all your urls should be correct, which should be enough to keep your session alive. Though you say "You're right that the osCAdminID is not consistently being passed correctly." Is this still occurring? If so, on what links?
  9. spoot

    Automated FedEx Labels

    Bob - Anytime you're getting dumped to the login page, it's because that osCAdminID isn't being passed in the URL. Usually this is because someone's hard-coded a URL, like I'd done; but for the "cancel" button, I expect there may be an issue where a that Javascript alert is screwing up the passing of the osCAdminID. You might want to try deleting this portion of orders.php, line 440: onClick="return(window.confirm(\'Cancel shipment of order number ' . $oInfo->orders_id . '?\'));" ...so that line would be: $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_SHIP_FEDEX, 'oID=' .$oInfo->orders_id . '&num=' . $fedex_tracking . '&action=cancel&fedex_gateway=' . $fedex_gateway) . '">' . tep_image_button('button_cancel_shipment.gif', IMAGE_ORDERS_CANCEL_SHIPMENT) . '</a>'); I haven't tested this, but it should just let you cancel the order w/no warning. If this works, I may have to redo the contribution w/o javascript warnings. Michael
  10. spoot

    Automated FedEx Labels

    Bob - In the first case, the fedex label, you're being sent back to the login page because the osCAdminID isn't being passed in the URL. This means that I've hard coded a URL somewhere, which I'll try to track down now... Alright - replace line 434 (approximately - check for the // display the label comment) in order.php with: // display the label $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('fedex_popup.php', 'oID=' .$oInfo->orders_id . '&num=' . $fedex_tracking) . '">' . tep_image_button('button_fedex_label.gif', IMAGE_ORDERS_FEDEX_LABEL) . '</a>'); That should only fix the label displaying page, but who knows? Maybe it'll have an impact elsewhere. Michael
  11. spoot

    Automated FedEx Labels

    Bob - Could you right-click on each of these buttons, "copy shortcut" or "copy link address", and paste the URL you get? Thanks - Michael
  12. spoot

    Automated FedEx Labels

    Which server to use is defined on line 3 of admin/includes/fedexdc.php; this needs to be set to "test." Erm... otherwise, I'm not sure where to look. Check that and see what happens. You might also just have to wait a bit, or hassle fedex & make sure they're not pulling your chain...
  13. spoot

    coolMenu

    I'm sorry I didn't post back here, I did fix this. It's totally inelegant, but it works. All you need is a line break between the different oCMenu lines, but you can't use \n or \r, I'm not sure why. So what I did was close the <?php ... ?> tags between each line: echo 'oCMenu.makeMenu(\'top_4\',\'\',\'Build a System\',\'' . tep_href_link(FILENAME_BUILD_A_SYSTEM) . '\')'; ?> <?php // putting this here in order to force a line break - \n was not working echo 'oCMenu.makeMenu(\'top_5\',\'\',\'Contact\',\'' . tep_href_link(FILENAME_CONTACT_US) . '\')'; ?> <?php // putting this here in order to force a line break - \n was not working echo 'oCMenu.makeMenu(\'top_6\',\'\',\Home\',\'' . tep_href_link(FILENAME_HOME) . '\')'; ?> Silly, I know, but it works. Michael
  14. spoot

    Automated FedEx Labels

    Yeah - that's where the problem is, the space after the area code. What do you have for the number in the database?
  15. spoot

    Automated FedEx Labels

    If you could, switch to debug mode (option is at the top of ship_fedex.php) & post the output here. Thanks - Michael
  16. spoot

    Automated FedEx Labels

    What format are your phone numbers in? Meaning: (123) 456 - 2569 or 123.456.2569 etc.
  17. spoot

    CoolMenu with STS Problem

    Tim - You've made many more updates than simply removing the "bookends," which makes troubleshooting difficult. If you could go back to the previous version & update it so only the bookends are removed, that will fix the error. Then you can make additional updates & find where the error is reintroduced. I know very little about javascript, so I can't troubleshoot this in-depth. I only know that if you take the first HTML page you posted and remove the bookends, the error goes away. Michael
  18. spoot

    CoolMenu with STS Problem

    Tim - See those two lines? They bookend your coolmenu code - one at the top, one at the bottom. Get rid of those, and the error goes away. I'm not sure where those come from, but that's where the problem lies. I hope this helps. I'm curious to see the final site, I'm into it so far. Michael
  19. spoot

    coolMenu

    I can get this to work for one additional link, but not for more than one. I've got this towards the end of coolmenu.php: echo 'oCMenu.makeMenu(\'top_4\',\'\',\'Build a System\',\'' . tep_href_link(FILENAME_BUILD_A_SYSTEM) . '\')'; echo 'oCMenu.makeMenu(\'top_5\',\'\',\'Contact\',\'' . tep_href_link(FILENAME_CONTACT_US) . '\')'; This produces the following in the page source: ... oCMenu.makeMenu('top_4','','Build a System','http://www.wrds.net/entertainment/build_a_system.php?osCsid=30ccc2dc9935c4beb5105d8e4d09b116') oCMenu.makeMenu('top_5','','Contact','http://www.wrds.net/entertainment/contact_us.php?osCsid=30ccc2dc9935c4beb5105d8e4d09b116') // create menu oCMenu.construct() ...but the menu isn't displaying on the page. If I comment out either of the two lines in coolmenu.php, the menu displays. Is there some limitation here? I am not understanding this. Thanks for any suggestions, Michael
  20. "I see how sts allows for additional templates in the product display sections, but I'm looking beyond that." How brilliant of me. I've stopped looking beyond it, and it works perfectly. This template system is something else.
  21. Peter - Add new boxes (or other files you'd like to include in the template) through sts_user_code.php. For example, if I want to add a box called "coolmenu.php," I'd add this to sts_user_code.php: $sts_block_name = 'coolmenubox'; require(STS_START_CAPTURE); require(DIR_WS_BOXES . 'coolmenu.php'); require(STS_STOP_CAPTURE); $template['coolmenubox'] = strip_unwanted_tags($sts_block['coolmenubox'], 'coolmenubox'); Now I've got a variable for my boxes/coolmenu.php box, $coolmenubox, that I can put wherever I like in sts_template.html. I hope this helps - Michael
  22. I'd like to get rid of the right-hand column only after a customer has entered the "check-out" part of the site. So everything would have a right-hand column, except for checkout_shipping.php, checkout_payment.php, checkout_confirmation.php, and all the other checkout_*.php pages. Is there an established method for doing such a thing? I see how sts allows for additional templates in the product display sections, but I'm looking beyond that. Any ideas, let me know, thanks - Michael
  23. I haven't used the multiple category templates business, but this is in the documentation: 2) You can have a default category template by creating /catalog/includes/sts_templates/index.php.html 3) You can have a different template for the Main Catalog Page (cPath=0) by creating /catalog/includes/sts_templates/index.php_0.html If you've done this & it's not working, then there's something mysterious going on...
  24. I'm not entirely sure what you're experiencing. Are you saying that as you make changes to sts_template.html, you don't see these changes when you refresh your main catalog page? If this is the case, then something is not working correctly. As you alter sts_template.html, all of your osc pages should show these changes when refreshed. If this is not happening, then either your sts installation is incomplete, or your file uploads are not occurring correctly.
  25. spoot

    coolMenu

    A simple way to add a hard link (or two or three) at the end of your coolmenu (probably mentioned elsewhere in this forum): At around line 209 of coolmenu.php, just before the closing ?>: echo 'oCMenu.makeMenu(\'top_4\',\'\',\'Contact\',\'' . tep_href_link(FILENAME_CONTACT_US) . '\')'; top_4 says "fourth top link on the menu," Contact is what the link will say, and the final bit is the link itself (in this case linking to contact_us.php).
×