• Just installed QuickShop 2.0 and am setting it up for the first time. I’ve only entered the example ” Cap | 25.00 ” item just to get started. I also left the default shipping amounts ($10 starting amount, $5 per item).

    I’ve noticed that when I add 2 “Caps” to my cart, the Cart widget shows the shipping amount as $20, but when I go to the Checkout page, the shipping shows as $15.

    I think the Cart is right and the Checkout widget is wrong? $10 starting shipping price + 2 Caps @ $5 each totals $20. Or should it be 1 shipping fee per type of item in the cart (i.e. no matter how many Caps you have in your cart, you get charged $5 for shipping all of them).

    Any ideas/insight here? I’m happy to fix the code, but I’m not quite clear on which one would be correct.

    http://wordpress.org/extend/plugins/quick-shop/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jazbek

    (@jazbek)

    Well, I decided to make it charge shipping on each item, so the checkout page reflects what the cart widget says. In order to fix it, change line 328 in quickshop.class.php from

    $totalShipping += $item['shipping'];
    to
    $totalShipping += $item['shipping'] * $item['quantity'];

    jessica

    Just a note about QuickShop and the admin interface.

    There are a few bugs in the admin interface that is used to accept some of the parameters, some of the form fields are not updated into the database records because they are missing from the submit list and can be added in. I have made a note of some before here http://wordpress.org/support/topic/322039.

    However today I figured out the other problem. I have set up a shop for a client and they had free shipping on everything. I struggled to save the zero shipping amount initially. Now after making a change to the products table the defaults came back again (this is also a bit of weak code that hauls the defaults in if you have not edited those fields). Then I tried to reset the shipping values back to zero again and could not even though my wife did it by fiddling a few minutes yesterday. It turns out that you need to enter in a real number “0.00” so it detects a field change, entering “0” causes it to read a NULL entry and then reload the default. I got it right by sheer frustration initially but was about to edit the defaults in the code previously, this time I had to use my head as I saw it could be done.

    Not a PHP specialist so not sure where to look for this but the way that EMPTY, ‘0’, NULL and FALSE values are handled is not clear to me.

    Anyway, the shop is working and live, did a lot of edits to the code to change the response texts and such but otherwise the function is pretty standard.

    KalleP

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Quick Shop] Shipping calculation inconsistency’ is closed to new replies.