• I have been pulling out my hair for the last couple of days as I cannot grasp what is happening and now I hope somebody in here might help me.

    I am adding new functionality to a woocommerce site (which I didn’t develop). The site is built up around a subscription where you book at least 3 pieces of clothes. For this purpose the WooCommerce Rental & Bookings System plugin is used. Everything on that part is working as it’s supposed to.

    However! Now I’ve been tasked with adding variable products which can be bought separately from the subscription.
    When clicking the “add to cart” button I’ve tracked the data to actually end up in the variable $cart_contents through the add_to_cart function. Now the weird thing is it gets removed from the cart_contents variable before the cart page is displayed, and I do not know why. I can track it through several other functions afterwards, but when the cart is loaded the product is gone. I’ve double checked product_id, variation_id and everything that follows.

    Has anybody tried anything like this before?

    I am setting up the page for free for my brother and I am at a complete loss on what to do from here.

    I hope somebody out there can help me.

    • This topic was modified 6 years, 6 months ago by annekatrine.

    The page I need help with: [log in to see the link]

  • The topic ‘Variable Products disappears from cart’ is closed to new replies.