{"id":18607875,"date":"2025-08-21T08:00:51","date_gmt":"2025-08-21T08:00:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wrong-quantity\/"},"modified":"2025-08-21T08:00:51","modified_gmt":"2025-08-21T08:00:51","slug":"wrong-quantity","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wrong-quantity\/","title":{"rendered":"Wrong quantity"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi, I have set up buy x get y where you must buy 2 products from a category, then you get a free specific product<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wordpress.org\/45c8afce-4ffb-4ac0-9e81-861d936f54b0\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It works, it adds the product when you add 2 products from the category but when you click on the basket it shows the quantity as 2 free gifts instead of one and when you click on checkout it changes to 3 and every time you refresh the page it increases the quantity. Another problem is that when you remove one of the qualifying products, the free gift still stays in the cart<\/p>\n","protected":false},"template":"","class_list":["post-18607875","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18607875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18607875\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18607875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}