• Resolved davidol

    (@davidol)


    When a user removes the required product fromt he cart, the dependant product isn’t removed so all a cutoemr needs to do is add the required product, then add as many of the dependant products as they want and then remove the required product before checkout.

    The plugin is very elegant and would be very useful but unless it removes the dependant product it doesn’t seem to be of any use.

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

    (@somewherewarm)

    Hey @davidol

    Your cart should display a notice if a dependency is not satisfied in the cart, and checking out should not be possible.

    It would certainly be possible to “clear” cart items with missing dependencies on session load but we think that in the majority of use cases it’s a better idea to make customers aware of any restrictions/requirements (and encourage them to act upon this information).

    Appreciate the feedback!

    Cheers,
    Manos
    SomewhereWarm

    I have this issue too. I have set the rule for my accessory product to have dependency rules as purchase based and based on a category. This works for adding the product to the cart but if I go to cart and remove the main product, the accessory still remains, no notice and I can go to the checkout with that product only.

    Plugin Author Jason Kytros

    (@jasonkytros)

    Hey @katmacau,

    Thanks for reaching out!

    We tried to replicate this issue locally by:
    1. Creating a Simple Product with a Purchase Dependency type and a ‘Hoodies’ category dependency: https://cl.ly/02d608f24854.
    2. Adding a product from the ‘Hoodies’ category in the cart.
    3. Adding the Simple Product we previously created to the cart.
    4. Removing the product from the ‘Hoodies’ category from the cart — once we did that, then this notice showed up: https://cl.ly/58d720760e2a.

    Is this not what you see?

    If not, then there is a chance that this notice does not show up because of a conflict with your active theme or some other plugin.

    Here’s how we usually address this type of issue:

    1. Temporarily switch back to a default WordPress theme (or Storefront). If this resolves the issue, then please bring this to the attention of your theme author.

    2. If the issue persists, then disable all other plugins except for WooCommerce and WooCommerce Product Dependencies. If this fixes the issue, then slowly re-enable plugins until you find the one that triggers it.

    To avoid causing any problems to your live site, the best way to do this would be to try setting up a staging site, for example using a plugin such as WP Staging or Duplicator — and then troubleshoot the issue on the staging site.

    Note that some hosts provide a Control Panel option for creating development/staging sites easily — if you are not sure about this, it might be worth asking your host as this is definitely the easiest and fastest way to do it.

    Let us know what you find out!

    Cheers,
    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC
    https://somewherewarm.gr/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing required product from cart doesn’t remove the dependant product’ is closed to new replies.