Jump to content

Monk

Members
  • Content count

    62
  • Joined

  • Last visited

Posts posted by Monk


  1. Light bulb after reading post #901 and reviewing where all that weird code was coming from.

    Here's a possible workaround -- disable the Revision=“2” tag and all other tags that involve Revision=“2”.

     

    This workaround was tested ONLY on the following USPS add-on (kymation @ Aug 29, 2013): http://addons.oscommerce.com/info/8702

    ThIS workaround INCLUDED the code fix provided in this link: http://forums.oscommerce.com/topic/383307-usps-rate-v4-intl-rate-v2-official-support-thread/page__st__880#entry1684822

    WARNING: Extra services that rely on the Revision="2" tag may no longer work. Trade-off is functional rates with USPS.

     

    Then, perform the following steps (or if you know how to comment out PHP lines, then do so for the first 4 modifications):

     

    BACKUP includes/modules/shipping/usps.php

     

    #1 FIND:

    $request = '<RateV4Request USERID="' . MODULE_SHIPPING_USPS_USERID . '">' . '<Revision>2</Revision>';
    

     

    #1 REPLACE WITH:

    $request = '<RateV4Request USERID="' . MODULE_SHIPPING_USPS_USERID . '">' . '';
    //$request = '<RateV4Request USERID="' . MODULE_SHIPPING_USPS_USERID . '">' . '<Revision>2</Revision>';
    

     

    #2 FIND:

    $request = '<IntlRateV2Request USERID="' . MODULE_SHIPPING_USPS_USERID . '">' .
    '<Revision>2</Revision>' .
    

     

    #2 REPLACE WITH:

    $request = '<IntlRateV2Request USERID="' . MODULE_SHIPPING_USPS_USERID . '">' .
    //'<Revision>2</Revision>' .
    

     

    #3 FIND:

    '<OriginZip>' . SHIPPING_ORIGIN_ZIP . '</OriginZip>' .
    

     

    #3 REPLACE WITH:

    // '<OriginZip>' . SHIPPING_ORIGIN_ZIP . '</OriginZip>' .
    

     

    #4 FIND:

    '<ExtraServices>' .
    '<ExtraService>0</ExtraService>' .
    '<ExtraService>1</ExtraService>' .
    '<ExtraService>2</ExtraService>' .
    '<ExtraService>3</ExtraService>' .
    '<ExtraService>5</ExtraService>' .
    '<ExtraService>6</ExtraService>' .
    '</ExtraServices>' .
    

     

    #4 REPLACE WITH:

    /*
    '<ExtraServices>' .
    '<ExtraService>0</ExtraService>' .
    '<ExtraService>1</ExtraService>' .
    '<ExtraService>2</ExtraService>' .
    '<ExtraService>3</ExtraService>' .
    '<ExtraService>5</ExtraService>' .
    '<ExtraService>6</ExtraService>' .
    '</ExtraServices>' .
    */
    

     

    OPTIONAL (if you've modified your add-on to support First-Class Mail International Letter):

     

    #5 FIND:

    '<Width>2</Width>' .
    

     

    #5 CHANGE TO

    '<Width>0.2</Width>' .
    

     

     

    If I can get some updates from others that this is working, I'll upload these fixes along with some upgrades I've made to add-on contribution 8702.

     

    This worked for me to get back International Rates but I get the following warning. There are several of them. Looks like one for each rate. I just posted 3.

     

    Warning: Invalid argument supplied for foreach() in/home/XXXXX/public_html/includes/modules/shipping/usps.php on line 110

     

    Warning: Invalid argument supplied for foreach() in/home/XXXXX/public_html/includes/modules/shipping/usps.php on line 110

     

    Warning: Invalid argument supplied for foreach() in/home/XXXXX/public_html/includes/modules/shipping/usps.php on line 110


  2. Hi Everyone / kymation - i came across this thread and the contributions sounds like exactly what I am looking for to extend one of my sites. I am starting the installation but was wondering if anyone has some example links to filtering examples?

     

    I have around 40K products across about 12 main categories and 600 brands. The main specifications would be Color, Width, Length, Size, Brand, Type, Price and Type. Each product has a unique value for each one of these meaning an item does not have more then one color (usually) and the Brand / Width / Length are specific to each product. As an example there are probably 15 colors, 20 lengths, 20 widths and 60 brands per main category.

     

    So staring at a main category which could have around 6K items a few specific clicks could get the user down to the 12 or so products they would want to see.

     

    Looking forward to seeing it in action. If I get something up and running before any replies I'll post back some screen shots.

     

    Thanks in advance for the demo links.


  3. Thanks for the update. Last night I had installed the newest version on about 5 sites. Some of them worked like a charm and one of them not. This morning one of the sites stopped giving rates and I think it was after the client modified the selected rates. I removed and added it back and worked fine. So I think you are onto something there were one of the rates NOT being selected is killing it.

     

    Another one of the sites International worked fine but domestic did not give any rates which is the site I got that error "-2147219101 Missing value for Service"

     

    I think it could be one of the other settings like Retail vs Internet - no idea what that does.....

     

    Thanks again. If I figure it out for my sites at least I'll come back and make a detailed post.


  4. I will have a look tonight, need to make sure i have 1.0.8 in my test store and not 1.0.7 due to me accidentally deleting the main store and not the backup one lol

     

    Steve

     

    i might have a version in the next day or so that once you finish filling in the Zip code the class for the createaccont gets pulled and all the customers info is inserted into the database

    This will fix my error with the state as well as what I am trying to do with the lost carts

     

    also working on have the update cart button and the redeem coupon button on the same submit action. One less step for the customer.


  5. Hi,

     

    Can somebody let me know where the functions pre_confirmation_check and confirmation are defined? I got errors and couldn't find them on my site. Wonder if there is some add on I don't have on our site. The error is pointing to the code in includes/classes/onepage_checkout.php.

     

    $GLOBALS[$paymentMethod]->pre_confirmation_check();

    $GLOBALS[$paymentMethod]->confirmation();

     

    Thanks for any help in advance.

     

    includes/classes/payment.php


  6. thank you Steve....the thing is that i have modified the infoboxes and also removed the arrays which were showing those words on all store...and now the shipping address or billing address words are not showing at all for some reason...without the onepagecheckout the words would appear since i would add them in their respective files...any guidance would be appreciated.

    thanks

     

    make a copy of the original infobox class and call it inforbox2

     

    then use that - editing it to do what you want with the titles


  7. Hi Monk,

     

    Nope i'm not with them, just helping out where i can :)

    email is kjavitz @ itwebexperts.com

    just piece it together

     

    Steve

     

    Thanks.....i emailed them

     

    I think the issue with the State Field not staying filled an a post error has to do with the following in the onepage_checkout.php file:

     

    global $onepage;

    if ($manualCid !== false){

    $country = $manualCid;

    $name = 'billing_state';

    if ($key != 'billing'){

    $name = $key . '_state';

    }

    }else{

    $country = $_POST['cID'];

    $name = $_POST['fieldName'];

    if ($name == 'billing_state'){

    $key = 'billing';

    }else{

    $key = 'delivery';

    }

    }

     

    and then the

     

    isset($onepage[$key]['state']) ? $onepage[$key]['state']

     

    its not keeping the State set as a variable.

     

    No idea how to fix it yet....but if anyone else has any ideas....would love to hear them


  8. Here is a new bug I found:

     

    I am using the cc_cvv payment module that just captures the customer CC info and stores in the database.

     

    If the person has a typo in the CC number - for example not enough digits they get an error when processing and pushed back to /checkout.php?payment_error=cc_cvc&error=

    Which is fine. The error I found is that the State Drop down in the Billing Address is now still selected - but has the required icon next to it and you have to select another State and then reselect your State again to make the Payment Methods appear.

     

    Hope this makes sense.

     

     

    I went back to the demo site and tried it and the same error occurs using their CC payment method:

     

    http://www.itwebexperts.com/onepagecheckout/checkout.php


  9. Here is a new bug I found:

     

    I am using the cc_cvv payment module that just captures the customer CC info and stores in the database.

     

    If the person has a typo in the CC number - for example not enough digits they get an error when processing and pushed back to /checkout.php?payment_error=cc_cvc&error=

    Which is fine. The error I found is that the State Drop down in the Billing Address is now still selected - but has the required icon next to it and you have to select another State and then reselect your State again to make the Payment Methods appear.

     

    Hope this makes sense.


  10. Ok....getting closer.

     

    I have Free Shipping for orders over X.xx installed.

    Sometimes it will show the Free Shipping selection along with the other UPS selections...sometimes it will not

    If it does show Free Shipping then if any other UPS method is choosen the Proces do not update.

     

    Getting JS error on the page for checkout.js file for this line:

     

    this.setModuleMethod('shipping', $button.val(), function (data){

     

    okay....so I think i found the beginnings of my issues.

     

    I ONLY get the JS error on the page IF i hit refresh in the browser....besides that it seems to be working.


  11. Here is an interesting idea / suggestion.

     

    I use the Lost Carts Contribution. I notice as soon as you finish filling in all the Billing information that the Payment Method appears.

     

    Would be cool if as Soon as the Payment Method appeared that all the customer values were sent to the database (including cart contents) in case they do not complete the order - you still have a "Lost Cart"

     

    Similar to the regular create account process and the person just bailing on the shipping or payment page.

     

    Make sense?


  12. I'm at home at the moment, tomorrow I can tell you my paypal_ipn version.

     

    I have it working fine at the moment, tested with logged and no logged in customers.

     

    All works OK and no duplicate orders.

     

    Regards...

     

    Anyone get this to work with Certified PayPal WPP/Express Payment?

     

    I have that turned on plus Authorize.net....and only authorize.net shows as a payment method


  13. Ok....getting closer.

     

    I have Free Shipping for orders over X.xx installed.

    Sometimes it will show the Free Shipping selection along with the other UPS selections...sometimes it will not

    If it does show Free Shipping then if any other UPS method is choosen the Proces do not update.

     

    Getting JS error on the page for checkout.js file for this line:

     

    this.setModuleMethod('shipping', $button.val(), function (data){


  14. Hi

     

    try changing the location from relative to fixed in checkout.php

     

    ie

    <script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.js"></script>
    <script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.ajaxq.js"></script>
    <script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.pstrength.js"></script>
    <script type="text/javascript" language="javascript" src="http://www.yoursite.com/ext/jQuery/jQuery.ui.js"></script>
    <script type="text/javascript" language="javascript" src="http://www.yoursite.com/includes/checkout/checkout.js"></script>

     

     

     

    YAYYYY!!!!!!!!!!!!!

     

    HHAHAHHA....it works...at least more then it did!!

     

    AWESOME!!!!!

     

    now...why the hell did I not think of that!!!

     

    Ok....moving through some of the other fixes I see posted here.


  15. I forgot to show you how to set required phone number:

     

    In checkout/billing_address.php change:

     

    <td class="main"><?php echo ENTRY_TELEPHONE; ?><br><?php echo tep_draw_input_field('billing_telephone', (isset($customerAddress) ? $customerAddress['telephone'] : ''), 'style="width:80%;float:left;"'); ?></td>

     

    to:

     

    <td class="main"><?php echo ENTRY_TELEPHONE; ?><br><?php echo tep_draw_input_field('billing_telephone', (isset($customerAddress) ? $customerAddress['telephone'] : ''), 'class="required" style="width:80%;float:left;"'); ?></td>

     

    Regards!!

     

    Hi emmet - have you ever encountered the error that I am having posted above??


  16. Blank page is a php error,

     

    look in your hosts error log if they have one

     

    if not after

      require('includes/application_top.php');

     

    add

     

    error_reporting(E_ALL);
    ini_set('display_errors', '1');

     

    now view that page again and see what the errors are

     

    Steve

     

     

    Steve - thanks for the fast reply. I think I mispoke about a "blank page"

    What I meant is the script is not loading. I have error reporting turned on. There actually is something at the very bottom of the page - my page parse time.

    And I can get the header and footer to load for the site.

     

    But the middle body content that hold the checkout script is blank.

     

    If I edit the script and remove the line: style="display:show;"

    The I get the page but nothing works.

     

    Its like the JQuery is not being loaded for the id="pageContentContainer"

     

    I get a javascript error that points to

     

    $(document).ready(function (){

     

    And that the Object is not defined.

     

    Thanks again for any ideas suggestions!!!


  17. Ok....i've tried installing all of the versions and the best I can get is the page to load...but nothing else to work.

    I get a JS error coming from line 297 on checkout.php where there is $(document).ready(function () {

    The JS error I get in IE references that line and says "Object Expected"

     

    My php is pretty good....but not JS or Ajax.

     

    Any ideas / help?

×