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

Page builder product carousel throws an error. #891

Open
dhruvi-prajapat1 opened this issue Mar 27, 2025 · 2 comments · May be fixed by #892
Open

Page builder product carousel throws an error. #891

dhruvi-prajapat1 opened this issue Mar 27, 2025 · 2 comments · May be fixed by #892
Assignees

Comments

@dhruvi-prajapat1
Copy link

dhruvi-prajapat1 commented Mar 27, 2025

Preconditions (*)
Tested on this versions:
1. Magento 2.4.7-p4
2. page builder v-1.7.5-beta1
3. page builder v-1.7.5-beta2

Description (*)
When adding a Product Slider through Page Builder and selecting the Product Carousel appearance, an error occurs:
“Error filtering template: Warning: Undefined array key "options" in /var/www/public_html/vendor/magento/module-page-builder/view/frontend/templates/catalog/product/widget/content/carousel.phtml on line 64”

Steps to reproduce (*)
1. Log in to the Magento Admin Panel.
2. Navigate to Content → Blocks and click on Add New Block.
3. Click Edit with Page Builder and add a Row.
4. Expand the Add Content menu and drag the Product widget onto the row.
5. Click Edit, select a Category, and choose Appearance: Product Carousel. (as shown in screenshot-1)
6. Save the Edit Products and observe the error.(as shown in screenshot-2)

Screenshot-1:-(Edit Product page)

Image

Screenshot-2:-(Error Page)

Image

Expected result (*)
The Product Slider should appear correctly after saving Edit Products.

Actual result (*)
After saving Edit Products an error message is displayed instead of the Product Slider.

Additional Information(*)
As I checked in file magento/module-page-builder /view/frontend/templates/catalog/product/widget/content/carousel.phtml The issue occurs when the product slider does not have a bundle product. At that time, the options are not defined, causing an error.

Image

A possible fix is to add a condition to check whether the options are available or not.

Image

Copy link

m2-assistant bot commented Mar 27, 2025

Hi @dhruvi-prajapat1. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

@dhruvi-prajapat1 dhruvi-prajapat1 linked a pull request Mar 27, 2025 that will close this issue
5 tasks
@engcom-November engcom-November self-assigned this Apr 2, 2025
@engcom-November
Copy link
Collaborator

Hello @dhruvi-prajapat1 ,

Thank you for your report and collaboration.

We attempted to reproduce the issue in version 2.4 develop but were unable to do so. Attached the screenshots for your reference, please review them.

Image Image Image Image

Steps to Reproduce:
• Log in to the Magento admin.
• Navigate to the admin panel content - blocks.
• Click on "Add New Block."
• Click "Edit," select a category, and choose "Appearance: Product Carousel."
• Save the edited products.

We followed these steps and did not encounter any errors. Could you please recheck the issue in the latest version? Alternatively, let us know if we missed any steps while reproducing the issue.

Therefore, we are marking this ticket as "Needs Update".

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants