• This plugin is already totally kick-ass and works great. What I’m proposing here would just make it more streamlined and operate with native WooCommerce functionality. It’s more of friendly suggestion than anything else ??

    But currently you have 2 different scenarios that happen when deleting a product from the shopping cart depending on how it was deleted.

    1) This is how the cart should look after deleting it’s only product. You can see it in action by clicking the “X” button to the left of the product picture in your shopping cart. The shopping cart is empty of all tables and fields, all it has is a blue notification bar with an “undo” link and a button to return to the shop. See here: https://smrtshot.com/i/gDvnl

    2) But this is how the cart looks after changing the product quantity to “0” and then confirming the dialog box. The cart does not display the correct messaging, and it keeps all the other parts of the shopping cart that should not be showing when it’s empty. See here: https://smrtshot.com/i/gDxTZ

    In fact, if you hooked the “quantity 0” delete functionality into the way WooCommerce normally handles cart deletion (like in scenario 1 with the “X” delete) then you wouldn’t even need the popup dialog box that you have created, because the user could just use the normal blue status bar with the “Undo” link inside like it was intended.

    Just some food for thought!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author moiseh

    (@moiseh)

    Hi bennygill

    I appreciated your thoughts, i guess that this make sense.

    But i think that many users dont have updated their woocommerce to the newest versions, so they don’t have the “Undo” funcionality.

    For this reason i added the configuration ~2 weeks ago on this plugin, to make the confirmation optional:
    “Show user confirmation when change item quantity to zero”

    Hope that this helps to explain, and sorry my bad english,
    Thanks

    Thread Starter bruceleebee

    (@bennygill)

    I did not realize the “undo” text and link was part of a new version, I have had that functionality for a long time.

    If you hook the “quantity 0” deletion into the same “X button” deletion, then users can have the option to run off “Show user confirmation when change item quantity to zero”.

    At the moment the only choice is to have the the popup turned on because if it”s turned off the user will see nothing.

    Would be great to make the “quantity 0” deletion operate in the same way the “X button” deletion does, because then users would have the option to run off the confirmation popup. It would also future proof the plugin, because will no doubt soon upgrade thier systems.

    Plugin Author moiseh

    (@moiseh)

    Hi, i hooked into wordpress delete link when quantity changes to zero, as you say.

    Please re-download this plugin to test.

    Thanks for the feedback ??

    Thread Starter bruceleebee

    (@bennygill)

    Hi, I have updated to the new version, but it seems there is a bug.

    When I select “0” quantity from the drop down box nothing happens. And if I then click the “update cart” button it causes an error.

    See screenshot of error here: https://drive.google.com/file/d/0B055z1MmFr09MFVSSUNqZ0RhVWM/view?usp=drivesdk

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Idea: Hook “quantity 0” into normal delete fucntion’ is closed to new replies.