Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

spoot

Archived
  • Posts

    199
  • Joined

  • Last visited

Everything posted by spoot

  1. 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
  2. FedEx doesn't care about anything that's printed below the label itself. Their "official" labels have some gobbledygook down there as well.
  3. Post your orders.php, I'll see if I can recreate the error -
  4. From another forum: Worth a try? Let me know -
  5. 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
  6. 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?
  7. 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
  8. 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
  9. Bob - Could you right-click on each of these buttons, "copy shortcut" or "copy link address", and paste the URL you get? Thanks - Michael
  10. 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...
  11. 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
  12. Yeah - that's where the problem is, the space after the area code. What do you have for the number in the database?
  13. If you could, switch to debug mode (option is at the top of ship_fedex.php) & post the output here. Thanks - Michael
  14. What format are your phone numbers in? Meaning: (123) 456 - 2569 or 123.456.2569 etc.
  15. 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
  16. 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
  17. 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
  18. "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.
  19. 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
  20. 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
  21. 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...
  22. 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.
  23. 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).
  24. Regarding getting this to play well with Simple Template System: I found the easiest method is to make coolMenu a regular STS drop-in option. I added these lines to includes/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'); $sts_block_name = 'coolmenu'; require(STS_START_CAPTURE); require(DIR_WS_INCLUDES . 'coolmenu.php'); require(STS_STOP_CAPTURE); $template['coolmenu'] = strip_unwanted_tags($sts_block['coolmenu'], 'coolmenu'); Then in sts_template.html, modify the top of the file so it looks something like this: <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="new_styles.css"> <title>The Best Web Site Ever</title> <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> <base href="http://localhost"> </head> <body> $coolmenu ... and wherever I want to make room for the menu itself, add: $coolmenubox In addition, I completely simplified includes/boxes/coolmenu.php, so all it does is make a space: <!-- coolMenu //--> <!-- copyright 2003 Andreas Kothe - www.oddbyte.de // --> <td><img src="images/spacer.gif" width="100" height="28" width="600" border="0"></td> <!-- coolMenu_eof //--> (I've got coolmenu running horizontally at the top of the page.) I'd been working to center my site & the menu, but decided that a finished site is cooler than a centered site, and gave up. I hope this is useful information - it's an STS mod, rather than a coolmenu mod, but still - Michael
  25. You'll need to compare the label you're printing to a standard FedEx label, & make sure it's printing to the right size. This will depend on your printer & monitor... but in any case, you adjust the size of the printed label on line 63 of fedex_popup.php: var resolution = 96; Try changing that to 64 or 128, or anything else for that matter. Smaller number prints bigger, bigger number prints smaller (I think). I'm not sure about the printing black/printing inverted problem. I don't believe a browser can have that kind of impact on a printer; and whether you click the "print" button, Ctrl+p, or File/Print, it's all the same to your system.
×
×
  • Create New...