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

Ig 533 coupon investigate itemable coupon history not showing #58

Conversation

rukmi-patel-it
Copy link

No description provided.

sampoyigi and others added 10 commits December 13, 2021 23:31
[ci skip] [skip ci]

Co-authored-by: Sam Poyigi <sampoyigi@users.noreply.github.com>
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
@rukmi-patel-it rukmi-patel-it force-pushed the IG-533-coupon-investigate-itemable-coupon-history-not-showing branch from eaffaf4 to e3676c8 Compare May 8, 2024 10:47
src/Cart/CartCondition.php Show resolved Hide resolved
Comment on lines +179 to +182
public function getModel()
{
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to define this here as not all cartcondition will require it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is required here even for all conditions other than Coupon. Removing this code would result into error as below.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, getModel method is only available on the coupon cartcondition, same as appliesOnMenuItems and getApplicableItems methods. I think we should move the logic into the coupon condition since it is more specific to the coupon and not all cartconditions would have a getmodel or applicable items method

src/Cart/CartCondition.php Outdated Show resolved Hide resolved
src/Cart/CartCondition.php Show resolved Hide resolved
Comment on lines +179 to +182
public function getModel()
{
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, getModel method is only available on the coupon cartcondition, same as appliesOnMenuItems and getApplicableItems methods. I think we should move the logic into the coupon condition since it is more specific to the coupon and not all cartconditions would have a getmodel or applicable items method

@sampoyigi sampoyigi closed this May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants