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

Call to a member function getTitle() on null #104

Closed
IL-Michi opened this issue Dec 14, 2021 · 4 comments
Closed

Call to a member function getTitle() on null #104

IL-Michi opened this issue Dec 14, 2021 · 4 comments
Assignees

Comments

@IL-Michi
Copy link

hello, I have the problem as I put a bevariante2.
an error is output on the page.
I have set everything in the backend just as in Bevariante1 as soon as I delete the variante1 is displayed variant2.
Only if both are active comes this error.

@extcode
Copy link
Owner

extcode commented Dec 14, 2021

I don't know if I got it right. It is difficult to understand without an example.
I suspect that you forgot to select either the backend variant 1 or the backend variant 2.
You currently have to create an IRRE element for each combination of backend variant 1 and backend variant 2. Assuming you have T-shirts and the color (red, green, yellow) and size (small, medium, large) configured as backend variants respectively, then you need to create an entry for each combination that is available. So

red - small
red - medium
red - large
green - medium
yellow - medium
yellow - large

Then green in small and large and yellow in small would not exist.
The reason is the price and stock management for each combination.

I am aware that this is currently not so easy for editors to maintain, especially if there are many combinations. If it should be another, then I need a more detailed description.

@extcode extcode self-assigned this Dec 14, 2021
@IL-Michi
Copy link
Author

ok i see.
wouldn't it be possible to choose this in the front end in another dropdown menu ?
So it is already mega complicated for the customer

@extcode
Copy link
Owner

extcode commented Dec 15, 2021

There is a JavaScript File in the Resources/JavaScript folder. Documentated in the Changelog https://github.com/extcode/cart_products/blob/main/Documentation/Changelog/2.4/Feature-71-AllowToRenderBackendVariantsInDifferendSelectors.rst.

@IL-Michi
Copy link
Author

MEGA Perfect Work thanks for this extension.

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

2 participants