Jump to content

spoot

Members
  • Content count

    199
  • Joined

  • Last visited

Posts posted by spoot


  1. Spoot, I was just wondering if you gave any more thought to the test label script. I mentioned it in the other thread before it got deleted. Any chance you are working on that? I ask only because my store is now live so hainvg to sit and make new customers for each transaction gets to be quite tedious.

     

    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. Hi guys, when I print the label out (on plain paper) as part of my test, it prints with the "print" and "back" buttons at the bottom, is this ok?  Will they print below the fedex label when I print them out?  Or is there a way to fix this?

     

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


  3. Yes, there have been some changes made. There are a couple of other contributions set up on this version of OSCommerce. The kick out to the login page is a new thing, though. I am not exactly sure which contribs have been added -- I didn't personally add any others.

     

    Thanks for your help. I know we'll get it working. I feel like we're close here.

     

    Bob

     

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


  4. From another forum:

     

    In the admin panel under configuration/sessions check that the check ip address is set to false if its true.. Some of the ISP's change your IP address during a connection causing the store to think its a new customer and setting a new session ID for it...

     

    Hope this helps...

     

    Mike

     

    Worth a try? Let me know -


  5. Would it help if I paste in the code for the whole orders.php page?

     

    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. Yes, it does cancel the order with no warning... but it still spits me out at the login page. If I login, or back up with my browser's back button, I find that the ship request is cancelled.

     

    You're right that the osCAdminID is not consistently being passed correctly. Would it help to add a hidden field in orders.php that contains that value as passed in from the URL? Something like:

     

    <input type=\"hidden\" name=\"osCAdminID\" value=\"$_REQUEST['osCAdminID']\">

     

    What about that?

     

    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. Cool, we're getting there... the label does indeed work now, and when I clicked "cancel shipment" I got a popup asking if I was sure. I said OK, and was taken to the login page again. When I came back, the shipment had indeed been cancelled. All other instances of being dumped to the login page are still happening, though.

     

    What should I look into next? Thanks --

     

    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. I meant to say in my post above:

    --------------------------------------

    Am I supposed to get sent to the admin main login page and forced to login again after i ship an order?

     

    This also happens when I click the "Fedex label" button, the "cancel shipment" button, or the "back" button -- the back button that appears on the "track shipment" page.

     

    Any suggestions?

     

    Thanks --

     

    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. I was added to the test server and I still get this error

     

    This transaction could not be completed. Please note the error message below.

     

    ERROR: FedEx Return Error 5012 : Account number not in database

     

    any ideas?? Im sure I just missed a step...but where?

     

    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 am having this problem as well...

     

    -Dennis

     

    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. Hello,

     

    I have added this module and i am getting the following error when i attempt to ship a package:

     

    ERROR: FedEx Return Error 1F30 : Recipient Phone must be 10 digits

     

    Now, the only phone numbers i have in here are 10 digits. I have Real Time Quotes, it works, I have a meter number... Any idea how i can get past this and ship packages?

     

    Thanks --

     

     

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


  13. I'm getting the same error as before, here is an updated copy of the code generated at index.php..

     

     

    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


  14. <!-- start get_javascript(applicationtop2header) //-->

     

    ...

     

    <!-- end get_javascript(applicationtop2header) //-->

     

     

     

    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


  15. 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).

     

    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


  16. 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

     

    "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.


  17. OK,

     

    I know this has probably been asked before but I can't find where...

     

    I am using STS which is working well and, thanks to this forum, have been able to add various othe contributions and get them working and I'm hoping that one of you wonderful people out there could help me. (have I grovelled enough yet?)

     

    I have installed the RMA Returns Contribution and am trying to install an add-on to that contribution which creates a new infobox for RMA's but I can't work out how to get it to display using STS.

     

    Any ideas anyone?

     

    Thanks

     

    Peter

     

    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


  18. 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


  19. I am using STS no problem but I was wondering if there is a way to add a template for the front index page only.  Index.php.html unfortunately loads the template anytime index.php is used.  I know I could use a static page but I would like to keep the page as part of the store.

     

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


  20. Ok - I guess this has been posted before, but I can't for the life of me tell if the changes I am making are working...they don't appear in the main index.php when I upload, but that is expected because I'm uploading a different file right?

     

     

     

    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.


  21. 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).


  22. 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


  23. Ive had problems getting approval to move to the production server from FedEx. They claim the barcode is not within their dimensions. Also, when I use the 'Print Page' feature in fedex_popup.php, my print result is black, like it was inverted...

     

    Anyone else run into problems getting certification with FedEx?

    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.

×