Open m2-assistant[bot] opened 1 week ago
Hi @engcom-Hotel. 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:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @ilnytskyi,
Thanks for the report and collaboration!
We have reviewed the codebase of the below file:
And compare the changes made in the PR.
$condition->getType() === CombinedCondition::class
: This code compares the result of the getType()
method of the $condition
object with the fully qualified class name of CombinedCondition
. It checks if the type returned by getType()
is exactly the same as the CombinedCondition
class name.
And
$condition instanceof CombinedCondition
: This code checks if the $condition
object is an instance of the CombinedCondition
class or any of its subclasses. It is a more direct way to check the type of an object. Which seems relevant. Hence confirming this issue for further processing.
Thanks
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-13338 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
This issue is automatically created based on existing pull request: magento/magento2#39332: Allow custom catalog rule conditions
Description (*)
Due to the check based on object attribute there is no way to use custom implementations for catalog rule validation
Related Pull Requests
Fixed Issues (if relevant)
1.
Manual testing scenarios (*)
Expected Result:
Questions or comments
In SalesRule module there is a way to use custom classes and objects but not in catalog rules module.
Contribution checklist (*)