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

Bug add extension on null #9

Open
ChristopherDosin opened this issue Nov 30, 2022 · 2 comments
Open

Bug add extension on null #9

ChristopherDosin opened this issue Nov 30, 2022 · 2 comments

Comments

@ChristopherDosin
Copy link
Contributor

in one of our Shopware 6 shops we have two other plugins active in addition to your plugin.

That would be “shopping cart free products / goals | by 28minds” and “Award Items”. As soon as a free product or a bonus item (using these plugins) is placed in the shopping cart, your plugin will issue an error message. In the CartPageLoadedSubscriber.php file, in line 122 of the addLineItemPropertyGroups function, the $lineItem parameter is set to zero, which leads to an error. Would it be an option here to include an if statement that checks whether $lineItem !== is null?

image

@azngeek
Copy link
Contributor

azngeek commented Feb 8, 2023

I had to uncomment this lines as it throws exceptions in combination with other extensions:

@Apatrid
Copy link

Apatrid commented Oct 20, 2023

I solved this by adding one line checking if $lineItem is not null
image

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

No branches or pull requests

3 participants