Support » Plugin: WordPress Simple Shopping Cart » BUG in $cart_free_shipping_threshold calculation

  • Resolved paologalli

    (@paologalli)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mra13

    (@mra13)

    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?

    Thread Starter paologalli

    (@paologalli)

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

    Plugin Author mra13

    (@mra13)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BUG in $cart_free_shipping_threshold calculation’ is closed to new replies.