Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Need help with logic 1+1 product free

U04G1HQ0UAY Posts: 4 🧑🏻‍🚀 - Cadet
edited May 2023 in Help

I have a problem with logic 1+1 product free.
Products have the same SKU.
I set one product to price 0 and the other is full price.
In overview step the totals are 0 because of this.
Have someone an idea or proposal what is the issue.
Or how we have to map the free product that the calculation is ok (edited)


    UNYPGDYF7 Posts: 17 🧑🏻‍🚀 - Cadet

    Do you see 2 separated products in cart or just 1 with quantity 2?
    If you want, that products with same SKU are handles separately, you have to set a different groupKeyPrefix

  • U04G1HQ0UAY
    U04G1HQ0UAY Posts: 4 🧑🏻‍🚀 - Cadet

    I wan't to separate one product with the same SKU on two in overview step.
    So that one product has full price and one is for free.

    I need this functionality because this is how I get this product from a virtual till external integration.

    Which get all the products in the cart and if the product has a promotion than he return it response separate the same product with full value and one for free

    UNYPGDYF7 Posts: 17 🧑🏻‍🚀 - Cadet

    Do you have the demo shop locally? You could have a look whats happening there, if you select Add as separate item As I said.. you have to add a groupKey to the product.

    It’s also happening, if you are using the /cart/quick-add functionality. With this, each product will be added to cart separately.