• Resolved costas96

    (@costas96)


    When I add to cart an item and then I add the same item again, at the cart page it is shown like the same item with quantity of 2 and with one order_id. What I want is to be able to add to cart the same product multiple times and each product to get a unique order_id. Is there a way to do that? Thank you.

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

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    There isn’t a built-in way to split cart items. But it looks like this tutorial can help you achieve your requirement.

    Thread Starter costas96

    (@costas96)

    Thank that actually does almost the job I want. It would be perfect if the quantity box would not dissapear. Is there a way that I can keep it (the quantity box) at the single product page?

    • This reply was modified 3 years, 6 months ago by costas96.

    Hi,

    Thank you for the update.

    It would be perfect if the quantity box would not dissapear. Is there a way that I can keep it (the quantity box) at the single product page?

    Removing the last line add_filter( 'woocommerce_is_sold_individually', '__return_true' ); would do the job?

    Thread Starter costas96

    (@costas96)

    Unfortunately it doesn’t. When i add, for example 2 same products from the counter box they still are interpreted as 1 product.

    Hi @costas96

    Ok, thank you for the reply. You’d need to tweak the code to make it work on your site which goes beyond the scope of support we are able to provide in this forum.

    I can recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack.

    Hi @costas96

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Woocommerce: Different order_id for same items in cart’ is closed to new replies.