Questions tagged [widget]

Denotes questions regarding Magento Widget

Filter by
Sorted by
Tagged with
0
votes
2answers
310 views

Magento1 Feefo widget js conflict with prototype.js

I want to display feefo carousal widget on my website. For that I have generate the widget code and trying to add on my magento 1.9 website. But Feefo widget JS is conflict with the prototype.js and ...
2
votes
1answer
38 views

Magento 2 extends ProductsList Widget

I am trying to extend Magento 2's core ProductsList widget, but getting following error: Fatal error: Uncaught TypeError: Argument 1 passed to VendorName\ModuleName\Block\ProductsList\Interceptor::...
0
votes
2answers
550 views

Remove title New Products from Magento 2 Content New Products Widget

I have scoured the internet looking for a solution of removing the title word New Products that exists just above the grid from the Magento 2 new products content widget. Not sure how to accomplish ...
1
vote
0answers
38 views

Magento2 - Get Widget from CMS Page

I have a cms page in backend, with one widget inside. Can i get the widget from html content of this page ? Because I would like to get the conditions of this widget. Like exemple : $toReturn = $...
0
votes
1answer
337 views

Own recently viewed widget (magento 2)

I want to make own recently viewed widget, cause this standard loads items with javascirpt (I want to have items directly). So I made this code, based on other posts: namespace AA\WidgetRecently\...
1
vote
0answers
294 views

Magento 2 : Product price should be change on custom option select in custom module

In my custom module, I display product on model popup. I set custom option in simple product. When, I select custom option then, product price should also update as like working in product page. But,...
1
vote
1answer
186 views

WhatsHelp on Magento

I need to know how to implements the WhatsHelp widget in Magento 1 This is the code: <!-- WhatsHelp.io widget --> <script type="text/javascript"> (function () { var options = {...
0
votes
1answer
241 views

Magento 2: How to add date filter to new product widget

I am using new product widget in my custom phtml template. It is showing the newly products. but i want to add the date filter to this products. How can i do it. Any help appreciated. template file ...
0
votes
0answers
43 views

Cannot see products on homepage

I did the following: Logged into Admin Created a simple product Added a product list widget to the home page Reloaded cache ... And I cannot see my product displayed on the homepage.
0
votes
1answer
510 views

Magento1 How to set template for a widget?

I have created a widget and I don't know how to set the phtml template for the widget.
0
votes
1answer
3k views

Magento 2 Confirmation widget confirm action

I'm trying to execute a function on confirm widget confirmation, but the confirm action is firing on load page always. Here is the HTML: <a class="action accept" id="accept_user" href="#"> ...
0
votes
1answer
1k views

Magento 2 product list widget, randomize [duplicate]

How can I change the sort order of the product list widget to random()? I am talking about the Product list widget you can insert on CMS pages. Thank you.
4
votes
2answers
907 views

Widget/block code in product custom attribute not rendering at front-end magento 2.2.5

I have created custom attribute of Input Type "Text Area" with WYSIWYG option Enable. After that add widget code in that product custom attribute input at store back-end. Its showing same code ...
0
votes
0answers
118 views

Custom widget doesn't show when added via the widget menu

I created a custom widget and it works when I add it on a page. But I want to use it more then once and prefer adding it in de content -> widget menu. But when I do that I get the following error: 1 ...
1
vote
1answer
629 views

How to display newly added widget for a particular category

I have replicated Catalog New Products List in magento and added a category chooser field to it. How to filter new products using category id? app/code/[vendor]/Newproducts/Block/Product/Widget/...
1
vote
0answers
42 views

Pricing condition not working in widget section for Product showing from Backend

I'm trying to create widget from backend for showing the particular some product list in home page. But when i'm giving pricing condition like below, the condition is not working and the UI portion ...
0
votes
2answers
247 views

How to create custom widget via Install?

I need to create widget category link via Upgrade. How to do this?
2
votes
2answers
1k views

Magento 2 decode widget code in category description

I have added widget(call static block) in category description http://prntscr.com/ko816y.But it is not call widget in front just showing output as it look in admin WYSIWYG editor. So,I want to convert ...
1
vote
1answer
715 views

Magento 2.2.5: Error when trying to Override Widget

I'm doing override widget to my custom module. So everything was great in the backend, until i come to the frontend and see nothing at all. I mean it works perfect in backend, but not with the ...
0
votes
1answer
494 views

Magento2 How can I choose multiple products by SKU?

How can I choose multiple products by SKU in a widget?
2
votes
2answers
373 views

Magento 2 + create widget via installData Script

I need to custom requirement for creating a widget via Script. but I have facing an error when try to add a widget via below script <?php namespace Test\Xyz\Setup; use Magento\Framework\Setup; ...
1
vote
0answers
169 views

Magento2 Multiple product chooser

I need a multiple product chooser for a widget. Can anyone please help me with some directions how can I implement something like that?
2
votes
0answers
239 views

Catalog Listing Widget - We're sorry, an error has occurred while generating this content

When I want to use the Catalog Listing Widget I get the following message on the front page: "We're sorry, an error has occurred while generating this content." Can anybody help me out with this ...
1
vote
0answers
297 views

Magento 2.2.5: How to create Button in Widget

i'm looking for the way to create Button in Widget I've done this but it throw an error said "Invalid xml type". So i thing that there's no such thing called xsi:type="button" in magento 2 widget. &...
3
votes
1answer
2k views

Category and sub category image widget

I tried to create category and subcategory image widget.I got first level of categories with category images. app/code/Customcategory/CatewithimgWidget/Block/Widget CatewithimgWidget.php class ...
1
vote
0answers
2k views

Error filtering template: Invalid block type

I'm trying to create my own widget in Magento 2 however I get this error: Error filtering template: Invalid block type: Inchoo1\CatalogWidget\Block\Product\ProductsList My code is identical to ...
3
votes
1answer
1k views

How to use Product Chooser Widget with UI Component Form

I want to have a field in my UI Component form and a "Select Product..." Button where I can choose a product and it gets inserted into the input. Similar to the "Catalog Product Link" Widget. Started ...
0
votes
1answer
203 views

Add (change) a Widget's option

With a custom module, I have made some widgets that I added to my Magento 2 installation. I am using this module in several other projects. I have added an option to the widget, an enabled/disabled ...
1
vote
1answer
600 views

Remove selected CMS block in custom widget Magento2

I have doubts in Magento2 widget. In my custom widget I have added the CMS block through chooser then saved successfully. When I come to edit, I need to remove the selected cms block in the widget. ...
1
vote
1answer
904 views

Magento 2 - Is there a way to change element “data-mage-init” without overriding a template?

For example I want to change some options of minicart dialog initialization. So I need to change minicart template (override this template in custom theme/module). Is there a way to change minicart ...
2
votes
3answers
5k views

Add custom template to existing widget (product_list)

I would like to make use of a product list widget but I need to use it with my own template file. I want to create a widget via content -> widgets. This is different from utilizing a widget from a ...
2
votes
0answers
470 views

Disable cache of static block Magento 1.9

How can I disable a widget or static block from being cached inside the Blocks HTML output cache? The widget loads a specific static block on all CMS pages. Inside the static block, I load a template ...
2
votes
1answer
598 views

add buy now button in homepage widget products list magento 2

How can i add buynow button on Homepage widget list products ? hello, I amm using this module magento2-buynow but this add in category page and product page. I need to add buy now button to ...
0
votes
1answer
967 views

How to pass a value to modal while opening

Is it possible to pass a value while opening a modal(js component of magento)? If the answer is yes, then how can i do it?
1
vote
1answer
496 views

(Solved) How to reach “add to cart” button and price inside Recently Viewed Products Widget in magento 2

I need to make some custom changes on add to cart button and item prices, in Recently Viewed Products widget. For add to cart button, i need some custom php statement, And for prices i need old price ...
1
vote
2answers
956 views

Render widget (Product list) inside PHTML

I want to group a list of products by Attribute set. What i did is, I created a CMS page, where I inserted a custom PHTML file. In this file I obtain all my Attributes set. After the custom block, I ...
0
votes
1answer
189 views

Magento 1.9 creating a widget ends with adding layout update

I'm trying to create a widget via admin panel. Created first a static block, via widget selected the right theme/store etc, but at the bottom to select add layout update it ends there. No reaction. ...
0
votes
2answers
1k views

Add category input to widget.xml

How to add this to my custom widget at backend?
0
votes
1answer
824 views

How to open the popup modal in ajax response (using magento jquery widget) in magento 2

I need to change my Java script code to jquery widget.Please provvide me a solution js file define([ "jquery", "jquery/ui", "Magento_Ui/js/modal/modal", "slickslider", 'mage/url' ...
1
vote
0answers
42 views

add jquery to parameters in custom widget type in magento2

I have created a custom widget type using below code <widget id="test" class="Namespace\Modulename\Block\Widget\Test"> <label translate="true">Namespace - Test</label> <...
2
votes
0answers
238 views

Insert widget in CMS page using the id of widget?

It's able to insert a widget in any CMS page using insert widget button. How can we insert an already created widget using its id in CMS page. I googled a lot...but not able to find this one.
1
vote
2answers
447 views

HTML tag in widget not show as HTML element when insert to the CMS page

I have created a widget text box that contains just an HTML tag. <h1>Some heading</h1> and then insert this widget to a CMS page with url: "cms_page_link". When I hit the CMS page URL, ...
0
votes
2answers
42 views

Widget has too many database calls? Need a refactor suggestion

I'm using Magento 1.9.3 and I have a theme that is loading very slow. After a debug I found that on the home page for example I'm loading New Products widget, Featured Poducts Widget, Sale Products ...
1
vote
1answer
580 views

In Magento 2.1.5, is there a way to render a widget within a template by its ID?

I would like to render a widget in my template by its ID, just like I have with blocks: echo $block->getLayout()->createBlock('Magento\Cms\Block\Widget\Block')->setBlockId('widget_id')->...
0
votes
1answer
293 views

How to extend all magento 2 widgets?

I'm trying to add extra configuration options to all widget configuration/edit screens, not just cms_static_block for example, but all available widget types. I've managed to add an additional tab (...
3
votes
1answer
335 views

How Do I Add Styling Or Groupings To Widget Parameters?

I have a custom widget with various parameters. Is it possible to style or add grouping, headings, fieldsets, basically anything to give some space and separation to the numerous parameters? My ...
0
votes
0answers
130 views

Can I add to the list of templates available for the new product widget

Is it possible to add to the list of available templates for the new products widget? I would like to custom render a view for my homepage. I have gone into Content->Pages->homepage and have ...
0
votes
1answer
122 views

How to insert a PDF link in a FAQ widget?

I'm new so I don't know how things really work here but I'm going to give it a try : I would like to know if there's a way to insert a PDF link in an FAQ widget. I used HTML coding in the WYSIWYG (am ...
2
votes
0answers
579 views

Magento 2 - Best approach to display and customize Recently Viewed Products with slider

Using our custom theme, we need to display Recently Viewed Products block on product detail page. We followed below approach Under Admin Panel we have Content -> Widgets Add Widget -> choose ...
3
votes
1answer
6k views

Magento 2: insert a “Bestsellers” widget via the Magento admin

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. On the home page, I want to insert a "Bestsellers" widget via the Magento admin, like the one ...