Jump to content

spoot

Members
  • Content count

    199
  • Joined

  • Last visited

Everything posted by spoot

  1. spoot

    coolMenu

    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
  2. spoot

    Automated FedEx Labels

    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.
  3. spoot

    coolMenu

    STS is Simple Template System. http://www.oscommerce.com/community/contributions,1524 I don't think it's required to do the centered shop business - at least I hope it isn't.
  4. spoot

    coolMenu

    Hi all - This is a great contribution. I haven't found this elsewhere on this forum, forgive me if I've just overlooked it. I'd like to have my topmost links be images, rather than text. I'm trying to make a menu similar to the one here: http://www.gateway.com/home See how the top links are rollover images, while the pulldown stuff is all text? That's what I'd like to do. I've just started looking through all the coolmenu code, but I'm not sure I know javascript well enough to figure out what it'd take. The top links will all be hard-coded, they won't be read from the database. Has anyone tried this? Any help is greatly appreciated, thanks - Michael
  5. spoot

    Automated FedEx Labels

    Jeff - According to Jay Powers (the guy who made the fedexdc class this module uses): Could this be true? Or is he talking crazy talk? Let me know what you find out - Michael
  6. spoot

    Automated FedEx Labels

    Oh, right - we have to decode the PNG, so of course we have to decode whatever else we might be getting for the other formats. Damn. If I find any other options I'll let you know.
  7. spoot

    Automated FedEx Labels

    Jeff - I haven't tried anything but plain paper labels. To try a different label, though, edit lines 139 and/or 140 in ship_fedex.php: ,1369 => 1 // printer type (1 is laser) ,1370 => 5 // label media (5 is plain paper) The options for each are: 1369: 1 = laser printer 2 = eltron orion (epl2) 3 = eltron eclipse (epl2) 4 = zebra zpl 5 = unimark 1370: 3 = Format 354 with doc tab information at bottom of label (4x6 ? thermal label) 4 = Format 435 without doc tab information (4x6 thermal label) 5 = Plain paper (PNG) - Supported for FedEx Ground and Express Shipping. 6 = Format 354 with doc tab information at top of label (4x6 ? thermal label) Let me know how it goes - Michael
  8. spoot

    Curl eror creating FEDEX lable

    The only information I could find about a cURL error #768 is remarkably unhelpful: http://curl.haxx.se/mail/curlphp-2002-07/0010.html The claim there is that there is no such thing as cURL error #768: So I'm not sure what to tell you at this point, other than that the error number appears to be a red herring. Michael
  9. Please post your solution for others who encounter this problem. Michael
  10. spoot

    Automated FedEx Labels

    I believe all you need to do is: - Add a "Shipped" option to the orders_status table with, say, an orders_status_id of 4. - Change line 333 in ship_fedex.php: [code[// ...mark the order record "delivered"... $update_status = array ('orders_status' => 3);[/code] Here, you'd want to change 'orders_status' => 3 to 'orders_status' => 4. I may be missing something, but I think that's all you'll need to do. This seems like a useful feature. Michael
  11. spoot

    Automated FedEx Labels

    I started putting together a set of screen shots, but haven't finished it up just yet. If you already have a daily pickup, you'll still get most of the benefits of this program: the labels labels and manifest created without having to reenter customer or order information anywhere, tracking data stored with the order, maybe some other stuff.
  12. spoot

    Automated FedEx Labels

    When you request a shipment, it's sending the request directly to FedEx. You tell them the date you want the pickup, and they should arrive on that date. (If they don't, it's their fault, not the module's.) Cancel shipment connects directly to FedEx and cancels the shipment request for that package. (If there are multiple packages going out on that same day, FedEx should still show up to pickup the non-cancelled packages.)
  13. spoot

    FedEx Real Time Quotes Issue

    Your account number may be enabled on fedex.com, but it's not enabled on FSS, which is the FedEx Something-or-other Server. Never mind the client; they're talking about being set up with the online Ship Manager, not FSS. Get the FedEx account number yourself, call FedEx and tell them you need to get set up on their test server using a tagged transaction application.
  14. spoot

    FedEx Real Time Quotes Issue

    Yes, that's what it means. It sometimes takes a while for the account to be enabled after you've contacted FedEx.
  15. spoot

    Automated FedEx Labels

    Oh, heck. Try replacing fedexdc.php line 309. It's currently: $fp = fopen('images/fedex/post.txt', 'w'); Change to: $fp = fopen('../images/fedex/post.txt', 'w'); There's no catalog/images/fedex directory, so I don't know why this would work... but it works on my test server. If you change that line & it still gives an error, make a catalog/images/fedex directory & chmod it to 777.
  16. spoot

    Automated FedEx Labels

    Ryan - On line 11 of admin/track_fedex.php, change: include(DIR_WS_MODULES_SHIPPING . 'fedexdc.php'); to include(DIR_WS_INCLUDES . 'fedexdc.php'); I've posted a new version that includes this fix. Michael
  17. spoot

    Multi_Vendor_Shipping new thread

    I believe I found a conflict with multi vendor shipping & First Item $X, Additional Items $Y Shipping. I don't think it's so much an issue with multi vendor shipping though - I haven't really delved into it, but I think the first item $x module has to be updated to say "only items with this shipping_type should be included in the count."
  18. spoot

    Automated FedEx Labels

    Check the variables at the top of the two fedexdc.php files. $server = 'test'; // which fedex server to use: test or production $request_referer = 'localhost'; // base url for site, e.g.: 'yoursite.com' They should say something like that. You probably have to change the request_referer variable to an appropriate server name for your system. (This was the case for me when I had a similar cURL error.) I'll try to add some administrative features in a later release, though for some reason I found they were hard to access with fedexdc.php - I forget why though. That's because I'd commented all the other options out of ship_fedex.php, & forgot to uncomment them. The options start at line 472; leave as many or as few in as you like. That's an oversight - I never messed with the manifest & address book entries. I'll try to make an update soon. I hope this helps, let me know how it goes - Michael
  19. Hi - My client does not want to give customers shipping options; the only way orders are shipped is by FedEx ground. Some products are oddly sized, and are therefore more expensive to package and ship than others. These products are priced with a flat rate for shipping. (Or, more accurately, using the "First Item $X, Additional Items $Y Shipping" module.) All other products will use the amount returned from FedEx Real Time Quotes. I've installed multi vendor shipping, which works fine, and lets me specify a different vendor for different products; but if a customer purchases a mix of products (with a mix of vendors), they're given a long list of shipping options on checkout, and are asked to select one. There may be other solutions, and I'd like to hear them; but what I'm thinking is that I'd just like to skip checkout_shipping.php altogether. Since the customer doesn't really have a choice of shipping options, it's not really necessary. Anyone have any thoughts on this? Or is there a different solution available? I've searched these forums & seen a number of questions on similar subjects, but no answers. Thanks in advance for any input, Michael
  20. Still not there... Now, when I checkout with two items, one using fedex quotes, one using first item plus, I get a single line in my shipping charges: Shipping & Handling $1.00 Is there any obvious reason why this would be happening? I feel like I'm missing the boat entirely somewhere - it seems no shipping method is enabled. I've set Multi Vendor Shipping to 1 (also "True" - it seems either is acceptable), and added to mltship.php: case "fedex": $rate = new fedex1; $mltQuote = $rate->quote('Ground Service'); break; case "firstitemplus": $rate = new firstitemplus; $mltQuote = $rate->quote('firstitemplus'); break; All other shipping methods have been disabled, and I've commented out the line function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } ... from each of them. The database has been updated, and the proper (and different) shipping option has been specified for two products. I'm probably going to start the install over from scratch & see if I catch something, but I'm hoping there's something I've obviously missed. Let me know, thanks - Michael
  21. Thank you for all the input. One thing concerns me - the line in the shipping modules is now: function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } I'll try it, but whenever I see class stuff like $this -> keys () I always get nervous & think I'm breaking something somewhere else. At any rate, I'll post the results.
  22. Ah, beautiful. I'll get back into it today. Thank you -
  23. spoot

    FedEx and USPS

    For quotes, you can use FedEx Real Time Quotes: http://www.oscommerce.com/community/contributions,1462 ...though you'll need a FedEx account to get those quotes back. So maybe you should use Fedex Zone Shipping Calculations: http://www.oscommerce.com/community/contributions,490 ...because that doesn't get quotes straight from FedEx, it uses a table that FedEx publishes and you install yourself, or something like that. I think you'll need Multi Vendor Shipping to use both USPS and FedEx: http://www.oscommerce.com/community/contributions,969 ...though I doubt that can say which to use depending on the weight. I think it will require a little hack to say: if the total weight is over 5 lbs, use the fedex module; otherwise use USPS. I hope this helps, Michael
  24. spoot

    Checkbox for FedEx Residential Delivery

    I'm trying to think of the best way to do this. The part of fedex1.php that needs to be edited starts at line 362: if ($order->delivery['company'] == '' && MODULE_SHIPPING_FEDEX1_RESIDENTIAL == 0) { $data .= '440,"Y"'; // Residential address }else { $data .= '440,"N"'; // Business address, use if adding a residential surcharge } Where it tests for a company (if ($order->delivery['company']), it should be testing for whether or not your checkbox is checked (something like, if ($HTTP_POST_VARS['residential'] == 1). I don't understand php classes enough to know how to get that variable into the fedex1.php class... maybe you need to add another variable to the class, and just check for that variable? so maybe this isn't much help anyway. But that's where I'd start, that line 362. I hope this helps in some way... Michael
  25. spoot

    Shipping method per-item-ly configured

    Thanker - I have a client who needs this same thing. I'll let you know what I find - Michael
×