Questions tagged [widgets]

Administration, usage, and development of CMS Widgets

Filter by
Sorted by
Tagged with
20
votes
5answers
49k views

how to create a form popup-modal in magento2

I am new to magento2. i'm trying to create a popup-modal for my new form. I have created a popup which works fine but unable to create a modal. Following is the code for popup which loads on page ...
15
votes
4answers
24k views

how to implement Loader widget in magento2

I want to implement loader widget in magento 2, In my form i have placed one button <div style="display:inline; float:right; width:100%; margin-bottom:5px;"> <button style="" class="...
2
votes
1answer
3k views

Magento 2: use a chooser widget as a system configuration field

Is there an easy way to use the Magento\Catalog\Block\Adminhtml\Category\Widget\Chooser in my system.xml file for a field ? The idea is to be able to pick a category from the chooser widget to store ...
3
votes
1answer
799 views

Magento FPC - What makes this stay up to date?

See below for a rewrite of this question. A Magento EE 1.13.1.0 site that I'm working on is having some issues with Banners (powered by widgets.) The banners are caching when FPC is turned on, and ...
7
votes
3answers
7k views

Magento 2 Widget With Image Chooser

So am working on a widget which allows the client to choose an image from their library of images and then insert it into the widget's params. Here is the block class code I am using for the image ...
11
votes
2answers
5k views

Magento 1 Widget setup in backend - how do I move upwards

I have a widget setup on all category pages via backend -> CMS - > Widgets Now when I use this method I select a block for category pages and the block shows up nicely. It is at the bottom of all ...
1
vote
1answer
7k views

Get New Products List from specific Category with Widget in CMS

Is there any way to get New Products List from specific Category with Widget in CMS Pages? I have tried specifying category ID using category_id="12" but it is pulling latest products from all the ...
5
votes
3answers
5k views

How To Add Custom Notices to Page Top in Magento 2

I'm just started Magento and recently have some issues. So, this is what I want to do: I want to display Notices at the top of the site as following Image. Eg: I want to show some Discount Coupons on ...
4
votes
3answers
5k views

Mass action in widgets

A while back I found a question on stackoverflow about allowing multiple products via a widget. I thought to myself that it would be a great option and surely could not be that difficult. Sadly I was ...
2
votes
2answers
874 views

Magento 2.1.4 - List of products which have special price with widget conditions

I try to do a list of the products which have a special price defined. So I created a widget like that : But even the products which have their "Date To" that is passed are shown. Is it possible to ...
2
votes
3answers
4k views

Magento 2.1: create a WYSIWYG field in a custom widget

Is there a way to create a custom widget with WYSIWYG fields? I followed this tutorial here but when I enter data, they are not saved.
2
votes
2answers
383 views

Using Widgets and the Base Design Package

When you're setting up a widget instance, Magento asks you to select a Design Package/Theme. This includes the base/default package. Why is this here? Can is be used for anything? My initial ...
0
votes
3answers
2k views

Magento 2: add classes and icons to homepage widget

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 have inserted a "New Products" widget via the Magento admin. I am using ...
11
votes
4answers
9k views

Magento 2 - How to apply Slick Slider to Recently Viewed Widget

I have created a code but slider is not showing up in recently viewed products. Here is my code - I have downloaded slick js and css from the following link http://kenwheeler.github.io/slick/ Then ...
4
votes
1answer
545 views

Magento EE 1.14.1 RWD not displaying Rotating banner widget

I'm testing Magento EE 1.14.1 using the RWD theme (rwd/default) and have come across the following problem. I've created a very simple banner which is just plain text. It is not associated with a ...
3
votes
2answers
6k views

How to render widgets in product and category description in Magento 2?

In Magento 2 we can add widgets to CMS pages and CMS blocks with a directive like this (assuming we created this custom widget with a module before): {{widget type="Vendor\Module\Block\Widget\...
3
votes
1answer
3k views

Recently viewed widget display nothing - Magento 2.0.8

I installed Magento 2.0.8 without sample data. When I insert the widget in the static block, it does not show any recently viewed product in home page(after sign in). why it is not work in cms ...
2
votes
1answer
1k views

Widget dependency doesn't work for chooser fields

I have one yes/no select field in a widget.xml If "yes" was selected then category select field should be visible. But category select field always visible instead. That's wrong. Here is my widget....
2
votes
1answer
482 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
1answer
2k views

Copy a Widget Instance Programmatically, Preserving Layout Updates

I try to copy a widget instance. The following function is run from a console script (shell/), adminhtml Events are initialized. The problem: What I get from the $orig->getData('page_groups') ...
1
vote
1answer
458 views

Why does Mage_Catalog_Block_Widget_Link add ___store query parameter?

Just reading through the code it appears that this parameter will always appear in the link, I'm not entirely sure why though. I can understand why the value would get appended given hasStoreId ...
0
votes
1answer
2k views

Recently viewed products from all users

Is it possible to configure the recently viewed products widget to show the products that all visitors have recently viewed? The regular widget only shows the products which you have viewed yourself.
0
votes
1answer
126 views

Magento widget to display in wordpress home page

I inserted 3 widget in CMS -> Pages. I have to do display those widgets in home page. I used this code $aCmsPage = Mage::getModel('cms/page')->load('main-page', 'identifier'); echo $theContent = $...