Full service web hosting, great prices and support. Starts at $1.99/month!
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Shipping rates changing

  1. #1
    stewartm
    Guest


    Default Shipping rates changing

    Hi,

    I have recently started having a strange problem with shipping rates. Rates were working fine, however, are now randomly giving wrong amounts. For example minimum shipping is £3.50 however some customers get charged £3.00. Shipping should show up as:

    mainland UK delivery: £3.50

    in the checkout, the ones charged correctly show fine. Incorrect ones show with a number:

    3:£3.00

    This is the same with all rates and may not be confined to just the table rate as free shipping is also affected (but ony a cosmetic impact)

    Free delivery: £0.00 sometimes shows as 0:£0.00

    Have recently moved to the new Paypal IPN modules with a the rest of the site still to be updated. This may be the cause, butno idea how to fix.

    I have been able to reproduce this in testing by going through checkout to confirmation and then going back to payment information (either via the back button or using the breadcrumb link) and back to confirmation. The shipping has then changed.

    Any ideas or help would be most appreciated.

    Thanks

    Stewart

  2. #2
    osCMax Development Team

    Shipping rates changing

    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,517
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    pgmarshall     $ 35.00
    Rep Power
    80


    Smile Re: Shipping rates changing

    Stewartm,

    3:£3.00
    This looks like a 'case' statement output which might have failed ...

    Which shipping module are you using?

    Have you made any code changes?

    Do you have a url and a way to replicate the issue?

    Regards,
    pgmarshall
    _______________________________

  3. #3
    stewartm
    Guest


    Default Re: Shipping rates changing

    Hi,

    Thanks for your reply, I was just ignoring the last post rather than wasting my time.

    I have 2 custom table rate v1.1 shipping modules and Free Shipping w/ Minimum Order Amount

    I only started noticing this since moving to PayPal IPN v2.4

    I will PM you details of the URL and steps to reproduce as this is on a live site.

    Thanks

    Stewart

  4. #4
    fourmat
    Guest


    Default Re: Shipping rates changing

    I have been having the exact same problem for quite some time now. I had thought it was because I had a highly modified version of OSM, but now I'm not so sure. For me it's happening when a customer places an order, then uses paypal (IPN).

    If they hit the back button, or choose to return to the site to make a change without completing the payment, it takes them back to the order confirmation screen, where the shipping method now becomes the first digit of the original price of the shipping, and the price of shipping is an amount equal to the first digit of the original shipping amount.

    For instance; If shipping was $7.68 Via UPSXML or USPS, then the shipping method and amount now becomes 7: $7.00. If the shipping amount was $11.68, the the method and amount become 1: $1.00.

    I have put a patch on one part of the problem where I edited the return link to take the customer to the checkout_shipping page when they click the return button in paypal, but that doesn't address the root of the problem and it still doesn't do anything about the back button.

    If they don't go back to the site, they and process the payment normally, everything goes through just fine and the amounts are good. But if they go back, then complete the order through paypal or another means, then the amount they get charged is the amount that shows when the back button is clicked.

    I have been scratching my head for a long time on this issue. There is a transposition in the variables stored somewhere, but I can't seem to pinpoint where they are, or figure out how to view what variables get stored where.

    Is there some method I can use to see what variables are stored by the browser that will be used by when the back button is clicked?

  5. #5
    stewartm
    Guest


    Default Re: Shipping rates changing

    Hi,

    Thanks for your reply. This would seem to indicate that the problem is somewhere with Paypal IPN rather than shipping at all. It would make sense if this thread could be moved the the Paypal IPN board if possible.

    I wonder if it is to do with the order being stored prematurely by this module?

    Thanks

    Stewart

  6. #6
    fourmat
    Guest


    Default Re: Shipping rates changing

    I am also using Paypal IPN v2.4

    Yes I do believe it is the payment module not handling things right. I had gone to v2.4 to fix an issue with the coupon/gift voucher system. It could have something to do that that also. I'm not sure. Which version of OSCM are you using?

  7. #7
    fourmat
    Guest


    Default Re: Shipping rates changing

    Actually, I just realized that I was using the Paypal For CCGV module, which might have been named 2.4 at some point.

    I've been able to narrow some things down.

    When I set the module Transaction Type to Per Item, it will transfer information for a standard order fine (including hitting the back button), but it will not handle the discount coupon correctly when transferring the total to paypal (which is a known problem and in the instructions)

    When I set the module Transaction Type to Aggregate, it will calculate the totals fine and transfer to paypal, including the proper coupon total, but chokes on the back button.

    I will work on this more, but if anyone else might have some insight here, jump in.

  8. #8
    stewartm
    Guest


    Default Re: Shipping rates changing

    Thanks for your reply. I will try moving to per item as I have disabled coupons and vouchers anyway.

    I am using oscMax v2.0 RC3.

    Thanks

    Stewart

  9. #9
    stewartm
    Guest


    Default Re: Shipping rates changing

    I can confirm that moving to per item within Paypal IPN resolves this issue.

    Thanks

    Stewart

  10. #10
    fourmat
    Guest


    Default Re: Shipping rates changing

    It has been a while since this last post, and I still haven't find an ultimate solution to the problem. But I did create a stopgap that will help reduce the number of bad Paypal orders with messed up shipping.

    In the checkout_confirmation.tpl.php code I added a javascript popup alert box warning the customers not to hit the back button when they are in paypal. I know you can't fix stupid, but hopefully people will read the box and find the "cancel" link on the paypal page to return to the site.

    in checkout_confirmation.tpl.php
    FIND:
    Code:
    echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "n";
    CHANGE TO:
    Code:
    if ($order->info['payment_method'] == 'PayPal'){
      echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, 'onclick=
    "alert('You are about to be taken to Paypal to complete your order.n Do not press the back button.n If you must return to this checkout page, find the link that says Cancel and Return.nnClick OK To Continue to PayPal.')"') . '</form>' . "n";
    }
    else{
    echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "n";
    }

Page 1 of 2 12 LastLast

Similar Threads

  1. Shipping Rates Configuration
    By srq in forum osCmax v2 Customization/Mods
    Replies: 6
    Last Post: 12-13-2009, 04:02 PM
  2. City Shipping Rates With Admin
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-30-2007, 07:30 PM
  3. UPS Shipping Rates
    By chevelle in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-07-2006, 01:45 PM
  4. Help: Want Different Shipping Rates per Product Line...
    By KlipyWitz in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 08-09-2003, 03:04 PM
  5. Multiple Flat Shipping Rates?
    By tsilihin in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-18-2003, 11:31 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •