-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix the compatibility issue introduced by the change of catalog product view layout. #22034
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
Conversation
|
Agree. The existing templates that invoke |
|
Hi @rogyar, thank you for the review. |
|
✔️ QA Passed |
sivaschenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@sivaschenko. Agree. We need to choose between two evils here:
After some consideration, I prefer the second option. |
|
Closing the pull request considering the discussion above. Feel free to contact me in case of any questions or comments |
|
Hi @Hailong, thank you for your contribution! |
|
Agree! Just for information of any others who are using Porto theme with Magento 2.3.1, Porto theme has published a newer version which has a fix for this problem. |
|
@Hailong Where did you find the fixed version of Porto? I am encountering the same issue with the latest version 3.1.8 downloaded on themeforest |
|
@Seb33300 My theme was also 3.1.8 downloaded from ThemeForest. I just downloaded it again and checked it for you. The fixed file is in zip named |
|
@Seb33300 BTW, don't forget to unzip all the 'Patch...' zip files, and merge them into the theme. I don't like this either, but this is how Porto releases their new versions. |
Description (*)
Layout change of the Magento_Catalog::catalog_product_view.xml breaks legacy templates in which uses the $block->getProduct() function calls. Problem is the new introduced block class doesn't support this.
To avoid incompatibility problem. it's better to have the new class extends from the legacy class.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)