magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.49k stars 9.29k forks source link

Catalog rule with 'is not one of' not working with multiple SKU condition #39204

Open arjun-tm opened 20 hours ago

arjun-tm commented 20 hours ago

Preconditions and environment

Magento 2.4 or above

Steps to reproduce

  1. Include SKU attribute in promo rule conditions Store > Attributes > Product > Edit SKU > Use for Promo Rule Conditions > Yes
  2. Create Catalogue rule, fill required values
  3. While configuring conditions, choose Product attribute SKU and condition as 'is not one of'.

Expected result

  1. Catalogue rule not applied to selected SKUs

Actual result

  1. Catalogue rule was not applied only to the first product from the selection but all other products were applied the rule.

Additional information

This issue is similar to the issue #21618 but the thread was closed as it was working as expected with is one of condition.

The issue can be fixed if the SKUs selected doesn't have any spaces in between as XX,XY,YX,YY etc if there is a space in between the SKUs, then the condition fails to work as expected.

Release note

No response

Triage and priority

m2-assistant[bot] commented 20 hours ago

Hi @arjun-tm. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.

m2-assistant[bot] commented 20 hours ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down: