WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Simple Paypal Shopping Cart
[resolved] BUG in $cart_free_shipping_threshold calculation (4 posts)

  1. paologalli
    Member
    Posted 1 year ago #

    hi I found the following bug in the following code

    $cart_free_shipping_threshold = get_option('cart_free_shipping_threshold');
    if (!empty($cart_free_shipping_threshold) && $total > $cart_free_shipping_threshold)
    {
    $postage_cost = 0;
    }

    should be changed in

    $cart_free_shipping_threshold = get_option('cart_free_shipping_threshold');
    if (!empty($cart_free_shipping_threshold) && $total_items > $cart_free_shipping_threshold)
    {
    $postage_cost = 0;
    }

    otherwise it doesn't work

    i'm chancing it in every new release of the plugin... can you please fix it

    thanks

    http://wordpress.org/extend/plugins/wordpress-simple-paypal-shopping-cart/

  2. mra13
    Member
    Plugin Author

    Posted 1 year ago #

    The cart free shipping threshold is a dollar ($) amount so it needs to be compared with the $total value. If you compared it with the total_items value then it won't be correct?

  3. paologalli
    Member
    Posted 1 year ago #

    uhmmm i thought that the fields should contain the number of items (it's not clear in the admin page)... ok thanks

  4. mra13
    Member
    Plugin Author

    Posted 1 year ago #

    I will try to improve the help text of the field in the admin side. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic