Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple variants in basket #2

Open
DhruvBasan opened this issue Dec 8, 2023 · 0 comments · May be fixed by #4
Open

Multiple variants in basket #2

DhruvBasan opened this issue Dec 8, 2023 · 0 comments · May be fixed by #4

Comments

@DhruvBasan
Copy link

Preconditions

Tested on this versions:
1. Magento 2.4.6-p1
2. Magento 2.4.6-p2
3. Module-version 1.2.5

Description

When attempting to offer multiple child variants of a single configurable product as free gifts, we encounter an issue. For example, I created a configured product named "test-tshirt" with child variants like "test-tshirt-Black," "test-tshirt-Blue," and "test-tshirt-White." I then create a cart rule with specified conditions, intending to provide 1 quantity each of the mentioned SKUs (test-tshirt-Black, test-tshirt-Blue, test-tshirt-White) as gifts. However, only one SKU( test-tshirt-Black with 3 quantity) is being given as a gift

Steps to Reproduce

1: In a clean Magento shop ,installed the Magesuite-FreeGift module
2: Now From the admin side, create a configurable product with multiple color or size variants. For example, I have created a product called 'test-tshirt' as a configurable product and added variants such as 'test-tshirt-Black,' 'test-tshirt-Blue,' and 'test-tshirt-White.'
3: After,navigate to Marketing -> Cart Price Rules. Create a new cart rule, and within the Actions tab, set the options as depicted in the screenshot below
image
(Note: in gift sku’s add multiple child varients of same configurable product else you can not reproduce the issue )
4:Upon adding a product from either category 3 or 4 (Gear or Bag) from frontend, only one SKU (test-tshirt-Black) is provided as a free gift with a quantity of 3. The other SKUs, namely test-tshirt-Blue and test-tshirt-White, are not being given as free gifts. I have attached a screenshot for your reference to verify the issue.
image

Expected Result

All the sku’s that i add in gift sku’s should be given as gift

Actual Result

Only one product is given as gift when i add multiple child varient sku’s of one single configurable product

@DhruvBasan DhruvBasan changed the title Issue when we try to give multiple child varient of one configurable product as free gift Multiple variants in basket Dec 8, 2023
@zeel1012 zeel1012 linked a pull request Mar 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant