Questions tagged [widgets]

Administration, usage, and development of CMS Widgets

59 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
224 views

Magento 2 Widget Only displays image

I'm trying to add a standard widget from within WYSIWYG Editor, but it does not work, because only the image is shown. In the editor <p>{{widget type="Magento\Cms\Block\Widget\Page\Link" ...
5
votes
0answers
263 views

Magento : WYSIWYG in custom widget

I have tried adding a WYSIWYG editor to custom widget I have created using the approach outlined at: http://behrendtio.github.io/2013/04/12/using-a-wysiwyg-editor-in-a-magento-widget/ However, when I ...
4
votes
0answers
140 views

In Magento 2, what is the best practice for loading some CSS for a custom widget, so that the stylesheet only loads when the widget is present?

I have created a Magento 2 widget that displays a list of categories, similar to the one shown in this guide. The widget outputs the correct HTML, so now I need to add some styling to it to make it ...
4
votes
0answers
477 views

Magento 2 Widget Condition on edit not display

I am working on the Magento ver. 2.1.7 and added Widget Type Catalog Product List in the Home Page Block, with the condition If ALL of these conditions are TRUE : Category is 6 When I edited ...
4
votes
1answer
2k views

Magento 2 Open All Accordion

I'm trying to make a accordion faq page on mobile but it should be open by default? It's working when i use this line of code $( "#accordion" ).accordion( "activate" ); is there a counter part for it? ...
4
votes
2answers
842 views

Magento2, custom widget save data wrong encoding

I create a custom widget for magento2. I have one text parameter: <parameter name="title" xsi:type="text" visible="true" sort_order="1" > <label translate="true">Title</...
4
votes
1answer
3k views

Widgets not showing

I'm trying to create a simple widget that for example gets displayed on every site, but I can't get the widget to show. I'm also trying to add a standard Magento widget, but that doesn't work neither. ...
3
votes
0answers
231 views

Per Store Widget Instance Block References

I have a multi store magento site set up. There is just the 2 Websites and a single store view each. They both use different themes of the same package. Now setting up a block in local.xml of Website ...
3
votes
1answer
548 views

Is it possible to disable widget without widget.xml changes?

I have extension with widget.xml file where there are 5 defined widgets. 1 of the widgets is available only to premium customers. I don't want this widget to show up inside Widget type selection in ...
2
votes
0answers
214 views

Magento 2 - Using UI Component as input for widget

So far, in all the documentation and tutorials for UI Components that I've come across (Like the documentation here: https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html, or in ...
2
votes
0answers
29 views

Magento sampledata sales banners

I have some questions regarding the sales banners on sample data Magento sites. For example the below banner In the blocks editor, the html code for this block looks like this: <a class="block-...
2
votes
0answers
176 views

Custom Widget with 2 conditions

I'm attempting to build a widget that allows the customer to build product tabs. I'm using conditions to allow the user to filter on products (using the core CatalogWidget conditions block) Widget....
2
votes
0answers
76 views

I am creating a custom widget “SPONSORED BEST SELLER PRODUCTS” block to show on home page. Bestseller.phtml file not rendering in the front end

This is my registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); This ...
2
votes
0answers
80 views

Custom CMS page not showing in specied pages list of widget page in Admin - Magento 2.2.4

Hi I want to add a widget in my custom CMS page, but my custom page is not coming in list of specified pages dowpdown under layout updates in widgets page.
2
votes
0answers
454 views

Magento 2 QuickSearch widget

Does anyone have any experience with Magento 2 QuickSearch widget so perhaps they can provide a code sample (how to use it in module)? I have managed to include it to my js file, but i can not figure ...
2
votes
1answer
934 views

Magento 2 showing the same Widget twice

I need to create 2 widgets on the homepage (CMS Home Page -> Main Content Area). In order to do that, I created 2 modules (one for each widget) and extended from Catalog Product List to use my own ...
2
votes
2answers
2k views

Widget Frontend Display

I managed to develop a custom widget, the problem is that its not displaying in the frontend. The goal is to add the widget to a static block and then display the block in frontend. I created the ...
2
votes
0answers
94 views

Change “magento widget” name in WYSIWYG

In Admin (WYSIWYG) How do I change the name (through code) of my custom widget to something else than "magento widget"? Is it possible to change the icon for it as well?
2
votes
0answers
561 views

Magento new products widget

I am trying to create a CMS page which displays and paginates all the new products on a site. This first appears to be easy as there is a widget built in that lets you select if you want to use the ...
2
votes
0answers
572 views

Widgets + Static Block issue

I am struggling with an issue since yesterday, i really need some help from someone who is more experienced with magento. I have a problem with the Widgets/static blocks. Whenever i create a static ...
1
vote
0answers
37 views

How to add quantity increment and decrement button with catalog widget product Magento 2

I want to add custom quantity increment and decrement button with catalog widget product.
1
vote
0answers
29 views

Magento 2.3.3: Widget layout - Is it possible to add a widget to products by attribute?

I know Magento allows for widgets to be placed on specific products but I need to take it further. I need the option to allow me to filter by product attribute and apply widget to products with those ...
1
vote
1answer
255 views

How to add Qty Input to product list WIDGET

How can you add Qty Input to product list Widget in Magento 2. (not the the product list page as described here) I have added a product list widget to a CMS page like by clicking on the insert widget ...
1
vote
0answers
407 views

Dependable fields in custom widget

I have created a custom widget having Title and dropdown field and image chooser. I wish to add dependable fields.the image uploading field is visible according with drop down menu. widget.xml <?...
1
vote
2answers
1k views

How to create a custom Widget with custom conditions

I need to create a custom widget using custom conditions to show a product list in the home page. I have to show the option to add multiple inputs in the widget form to set conditions that I need. ...
1
vote
1answer
1k views

Magento 2:- How to create Vertical or Horizontal tagging with Tabs widget

I tried to create tabbing using Tabs widget but It does not display what i want. I follow this Link:- Tab widget and Building Tabbed Interface with Magento 2 Javascript UI Widget/Modal/view/frontend/...
1
vote
3answers
1k views

Add custom block before main content only on the contact page

i would like to add a static block between the nav menu en the content so i can give it the full width of the page. This block must only be visible for the contact us page. System: magento 2.1 ...
1
vote
1answer
32 views

Create a “Feeling Luky” widget Magento 2

I need to create a "feeling lucky" widget that have 2 fields: price range & color (both drop down lists), when user chooses his preferred price and color, I need to show 3-4 random products that ...
1
vote
0answers
88 views

What is the difference between the navigation and menu widgets

I've just noticed Magento 2 has two widgets that sound very similar, the menu widget and the navigation widget. They are both customised versions of the Query UI Menu widget and they both use the ...
1
vote
0answers
94 views

Magento 2, how to get a widget to update immediately?

So I've created a widget, and I noticed that the products were not updating as frequently as I wanted. So I re-created the widget within the same block. However, even after re-indexing, and re-...
1
vote
1answer
1k views

How to add widgets to specific pages in magento?

I created a static block. Then made a widget using that static block. And now i want to add that to the layout of some pages. If i choose display on all pages, it works on all pages. But as of now i ...
1
vote
0answers
57 views

Meigee Widget code 1.9.1.2 not displaying correctly

I noticed after installing the new security patch my homepage products blocks disappeared. I removed this code which pulled the New products to the home page, however this code blocks all other codes ...
1
vote
1answer
464 views

How can I include JS/CSS files only on pages which have my widget?

I'm creating a custom widget of a form element which requires some CSS and Javascript. I plan on injecting the CSS and Javascript files into the <head> section of any pages which uses that ...
1
vote
0answers
478 views

How to implement or extend product gallery widget

In template of module product-video. Widget productGallery called by data-mage-init attribute with template option pass through <div id="<?php /* @escapeNotVerified */ echo $block->getHtmlId(...
1
vote
1answer
50 views

filter / hide 1 category that would not show up on “ new in the store” block ( home page )

On my site I have a category with adult products. When you click on it you going to have a popup that says you must be 18 to enter, everything is good there, but here's my problem: Every time I ...
1
vote
0answers
205 views

Magento WidgetInstance is not defined / Unexpected Identifier

Magento is throwing the following error in console when we load the CMS->Widget page there is also an error which I think is related, but what I haven't been able to solve. Uncaught SyntaxError: ...
1
vote
0answers
41 views

“assign store views” Dropdown not visible when adding new widget instance

So I'm new to Magento, and have been getting to know it's functionality the past week or so. Getting the hang of it, but have run into a wall when it comes to adding widget instances. I select which ...
0
votes
0answers
23 views

Magento 2 add block parameter in widget

Like Magento default widget Catalog Product Link or Category link defined in the following file vendor/magento/module-catalog/etc/widget.xml How can I add a block and phtml as a parameter chooser ...
0
votes
0answers
50 views

Magento 1.9.4.0 CMS Block Widget Issue

I'm trying to add widget to cms block or page but when i add it only display short code on page and not render, i tried different magento default widgets results is same also tried using code on ...
0
votes
0answers
16 views

Recently viewed grid broke randomly

I've used widget to add recently viewed products to render on website. For now its at home, category and product page, means at in whole website :) But randomly images are failed to render, If it ...
0
votes
1answer
136 views

Magento2.3: How to hide static block-widget from specific page?

I have created one widget by creating a static block. My widget options are set to show on All pages. It's working fine. Now I need to hide that static block from the Checkout page, Cart page and ...
0
votes
0answers
31 views

how to remove Container and Template form widgets layout update field?

As Shown Image Want To Remove Container And Template
0
votes
0answers
22 views

Magento2 - Added footer reference block in default.xml Now want to show it

<referenceBlock name="footer_links_cms"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="about-link"> <arguments> <...
0
votes
0answers
25 views

How to rewrite jquery code in jquery ui widget

How to remake this code in ui jquery widget? There is such jquery code. When you select an item using the checkbox, the item is cloned and added to another block. Tell me how to rewrite it in jquery ...
0
votes
0answers
51 views

2.3.3: I have created a widget with WYSIWYG option & depends doesn't work well with it

I have created an option on my custom widget that uses WYSIWYG. All works fine with the depends in as far as if it matches it shows and if it doesn't it hides the field. However, if it does not match ...
0
votes
0answers
15 views

Edit an Widget in Magento 1

I am using below code to display an Widget in Home page. {{widget type="catalogsale/widget_carousel" products_count="20" template="catalog/product/widget/sale/sale_carousel_list.phtml"}} But its ...
0
votes
4answers
278 views

Magento 2 Custom query to display selected product in Custom block

I have some product ids . Currently I can display products in category using {{block . But now I am developing a custom block in app/design/frontend/Alothemes/bencher6/Magento_Theme/templates/myphp/...
0
votes
0answers
30 views

Extending Recently Viewed & Recently Compared Grids

I am struggling to extend the following two files in Magento 2.3.1 \vendor\magento\module-reports\view\frontend\templates\widget\viewed\content\viewed_grid.phtml and \vendor\magento\module-reports\...
0
votes
1answer
201 views

magento2: how to put widget (slider) in header?

could anyone advise me how to put widget (slider) in header just next to logo? (as on screenshot below)? Widget is ready and prepared by TemplateMonster extension, i just want to move it upstairs, ...
0
votes
2answers
647 views

Product List Widget

I tried to add product list widget to show all the products which have a special price but it gives me the following error. Error filtering template: Notice: unserialize(): Error at offset 298 of ...