Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by olsonsp4c

  1. I'm having an odd issue with USPS 3.0 I updated the names and such and on occasion it works fine, but lately, a great majority of the time when a customer clicks First Class Mail they get a CGI time out. This has occurred, on rare occasion, with other USPS shipping methods but with First Class Mail it's occurs very often. In fact it screws up more often than it actually works. Has anyone had this problem, or does anyone know a way to track this to fix it?


    Thanks for writing. I still use 3.0 on my site with the sorting code additions by Ben. I have tried to duplicate your issue, but have not been able to. It works great on my store and I have never had any issues to date that I am aware of... If I had to guess, it would be that it was a temporary usps server issue - also, you should not have had to update any of the names for 3.0, only changed the set_function field to "text" for it to work fine as is...



  2. the forum won't let me edit my post... strange.


    anyway just a quick note, you need to add '$rates_sorter[] = $postage;'

    after both occurrences of '$rates[] = array($service => $postage);'

    otherwise you will get no results for either international or domestic rates (depending on which one you didn't add);


    Thank you Ben for this code!



  3. This is the support forum for the addon Authorize.Net Infobox: http://addons.oscommerce.com/info/6337


    This addon creates an infobox in the left or right column which displays the Authorize.Net Seal to your customers DYNAMICALLY. This Authorize.Net Seal, when clicked, produces a popup verification authenticating your website as an Authorize.Net Merchant. In addition, I have placed a javascript popup link beneath the Authorize.Net Seal that, once clicked, explains the benefits and security of Authorize.Net partnership.



  4. Another edit to be made in catalog/admin/categories.php


    Find this:


    	  $category_query = tep_db_query("select c.categories_id, cd.language_id, cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image, c.sort_order, c.date_added, c.last_modified from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and c.categories_id = '" . $HTTP_GET_VARS['cID'] . "'");
      $category = tep_db_fetch_array($category_query);
      $cInfo = new objectInfo($category);
      $categories_image_name = $cInfo->categories_image;
    $form_action = ($HTTP_GET_VARS['cID']) ? 'update_category' : 'insert_category';


    Make sure the next line reads this:


    	echo tep_draw_form($form_action, FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['cID']) ? '&cID=' . $HTTP_GET_VARS['cID'] : '') . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');


    I think this is the last edit - now all your buttons should work properly...



  5. :huh: :unsure:


    Thank you Scott... my bad! :blush:


    That fixed my problem. :)


    A word of warning...


    When you get to be my age, do NOT pull all-nighters. :wacko:

    Also remember to write down your USPS username before de-activating the module. :(


    Thanks again Scott for both the contribution and your help. ;)


    And thanks to the USPS for assigning me a new username\password so quick! :rolleyes:


    You're welcome!

  6. In other words, your ip address is allowed to browse the site as normal so that you can change things around and test your webstore while your users/customers can only see the maintenance page. This gives you the freedom to update pages without customers being frustrated by site errors, checkout issues, etc... while you get things ironed out!


    The reminder at the top is there so you don't forget to change the status back to "Open" - to remind you that you are in Maintenance Mode.


    You can test this (temporarily): in catalog/admin/configuration.php page - comment out this piece of code (it automatically detects the Admin IP Address)


      if ($HTTP_GET_VARS['gID'] == '1501') {
     $IP_Admin = tep_db_prepare_input(getenv(REMOTE_ADDR));
     $IP_Admin_DB_query = tep_db_query ("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'OFFLINE_IP_ADDRESS'");
     $IP_Admin_DB = tep_db_fetch_array($IP_Admin_DB_query);
     if ($IP_Admin_DB['configuration_value'] != $IP_Admin) {
       tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $IP_Admin . "' where configuration_key = 'OFFLINE_IP_ADDRESS'");


    Then go to Admin->Configuration->Store Mode->Admin IP Address and change the value to something that is NOT your current IP Address (, then click update. Now go to your store and you should only be able to get to the maintenance page and nothing else. This is what all your users/customers see while you are in Maintenance Mode. NOW, after you've done this, go and UNCOMMENT the code above in catalog/admin/configuration.php so that it is functional again and save. Go to Admin->Configuration->Store Mode->Admin IP Address and verify that it has automatically detected your IP Address. Then, go back to your webstore, and you should now be able to browse your store normally with the message at the top reminding you that your store is in Maintenance mode.



  7. Hi Scott,


    sorry for my english..... :rolleyes:


    1. thanks for this contrib it is some what i m looking for a long time.


    but it does not work as it must


    set to open: all works fine

    set to closed: user will be stoppted at shopping_card.php the info will be displayed - also fine


    set to matinance: the user are able to do all he wants no stoppoint or re-directing to the deauflt page

    only at the first line the info will displayed reminder! Storename is currently offline for maintenace


    and in the admin panel the point offline Waring will goes always to false


    also if i set header, column right -left , footer to true - all will be displayed

    the price will be hide


    for coulmn left - rght can be happen because i install "INFOBOX ADMI"


    can you take a look into the install.txt maybe the is some missing or worg or it is a problem with my shop

    as i have a lot contrib installed






    It is working just fine. Your ip address is allowed to view all pages as normal with a reminder at the top telling you that the store is offline for maintenance; however, all other users are disallowed. If you want to see what other users see, you need to put it in maintenance mode and then go to a different computer and browse to your store.



  8. This is the support forum for the addon Store Mode (Open | Closed | Maintenance): http://addons.oscommerce.com/info/6332


    The purpose of this add-on is to set the mode of your store: Open, Closed, or Maintenance

    The settings are defined in the Admin->Configuration->Store Mode and in the language files


    Set Store Mode-> Open, Closed, or Maintenance


    Open Store Mode:

    Fully functioning ecommerce webstore


    Closed Store Mode:

    Allows your customers to create accounts

    Allows your customers and search engines to browse

    Allows your customers to add items to the cart

    Saves shopping carts for delayed checkout

    Prohibits customers from checking out of the store

    Displays a friendly message on the index and shopping cart pages

    Public notice before going offline


    Maintenance Store Mode:

    Choose filename (default is index_maintenance.php)

    Hide the header

    Hide the left column

    Hide the right column

    Hide the footer

    Hide the product prices

    Perform offline maintenance (admin's ip address bypasses the maintenance page)

    Public notice before going offline

    Display catalog side reminder to admin of offline status



  9. Thank you Scott! ;)


    I believe the database should be fine. I just compared the SQL updates of the v2.9.2 by tarheit and your v3.0, they are identical.


    Oh, oh... just installed the contribution and double checked myself.


    In admin panel, when I click on Edit (for USPS) I receive this message along the top:


    Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/handesho/public_html/catalog/admin/modules.php(216) : eval()'d code on line 1

    Also although I selected all the options; I lost my handling fee and insurance does not get added. :(


    Any ideas what to look for?


    Did you try the troubleshooting tip 1?



  10. I am working through the process of making all my forms encrypted using SSL - if you plan on doing this as well (and it would be a good idea), reCaptcha provides a SSL API so that your customers don't get the dreaded "insecure items on the page" popup or a little security lock with an alert! Here's what to change.


    In every file you installed reCaptcha on (You must have an SSL certificate installed to use this) -


    Find this:


    <td class="main"><?php echo recaptcha_get_html($publickey); ?></td>


    REPLACE with this:


    <td class="main"><?php echo recaptcha_get_html($publickey, null, true); ?></td>


    That's it - now you have a secured reCaptcha.



  11. I missed a define in catalog/includes/languages/english.php


    Find this:

    define('IMAGE_BUTTON_SUBMIT', 'Submit to ' . STORE_NAME);


    Insert this AFTER:

    define('IMAGE_BUTTON_INSERT', 'Write a Testimonial');


    ALTERNATIVELY, you could go into catalog/customer_testimonials.php (like I did)


    Find this:



    Replace with this:



    Then open catalog/includes/languages/english.php


    Find this:

     define('IMAGE_BUTTON_SUBMIT', 'Submit to ' . STORE_NAME);


    Insert this AFTER:

     define('IMAGE_BUTTON_WRITE', 'Write a Testimonial');



  12. Hi Scott,


    Sorry if this is the wrong thread to ask this, but I don't know where else to ask for help. :blush:


    What I am looking to do:

    • Add (manditory) insurance to USPS domestic shipping. I do NOT want to give the customer the choice.
    • Show USPS transit times in checkout.
    • Be able to update insurance rates from Admin when USPS changes rates.
    • I do not charge tax.

    Here's my problems:



    • I am using USPS Methods 2.9.2 Upper Case Fix2
    • Although ticked in Admin Panel, transit times do not show (weight does).
    • I am using PayPal IPN v2.3.3 (having insurance combined with shipping is fine).

    Looking at my options, I'm guessing USPS Methods v3.0 would be my closest/best choice.

    The only couple of issues that I am concerned with:



    • I have never been able to display transit times. Will that be an issue that might carry over with this contribution although it states it was added?
    • It sounds like it is giving the option of adding insurance to the customer - "Added the optional shipping insurance order totals module (checkbox)". Can that feature be left out so that insurance is automatically calculated in to the shipping cost? Something showing on the checkout page something like -

    I really would appreciate your opinion and ideas on this.

    TIA ;)


    My opinion is to use usps methods 3.0 - i still use it on my site - you can update the domestic and international insurance rates with this addon (I wrote it, so I think i'm remembering correctly) - you can choose to include insurance rates as mandatory for customers - estimated shipping times show properly on my site currently. make sure you remove and delete the stock osC usps module before installing. To be safe, remove and delete usps 2.9.2 as well and go into your mysql database and ensure it deleted the usps fields in the configuration table manually (open the configuration table and search for USPS).



  13. I upgraded the contact_us.php, added message_stack.php to includes/classes and edited my application_top.php :rolleyes:


    It works now, but it seems that some typing-errors slip through; anyone else noted this?


    glad to know it works now - if you could post any code changes you did and mention what version of osC you are using (MS2? rc1? rc2a?) then your changes might help a bunch of people add this to their older versions of osC... thanks! I have noticed that reCaptcha has an allowance for 1 or so typing errors occasionally and I don't know why...



  14. this also needs to change:


    find this:

    	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    		<td class="pageHeading"><?php echo sprintf($text_new_or_edit, tep_output_generated_category_path($current_category_id)); ?></td>
    		<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
    	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>


    make sure the next line is this:


    	  <tr><?php echo tep_draw_form('new_category', FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['cID']) ? '&cID=' . $HTTP_GET_VARS['cID'] : '') . '&action=new_category_preview', 'post', 'enctype="multipart/form-data"'); ?>

  15. I have this contribution installed and it works fine. The only problem is when a customer logs into their account_history_info.php, the tracking numbers are not there. Did I miss something?


    Thanks, Rickey


    With the information that you've given me, I'd have to say that you did miss something; however, knowing what you missed is another question I can't answer...


    My guess is that you missed at least one edit in account_history_info.php but it could be another file too...