Questions tagged [widgets]

Administration, usage, and development of CMS Widgets

Filter by
Sorted by
Tagged with
1 vote
2 answers
178 views

Load widgets in specific position on category list page - Magento2.4

We would like to create widgets with layout updates and load these widgets in a specific place on the category list page. So we would like to create a widget from admin, load a CMS static block and ...
JGeer's user avatar
  • 1,416
0 votes
2 answers
29 views

Widgets- Icons too small

When I try including widgets the product images are barely visible. (Too small) Is there anyway to rectify this?
BLou's user avatar
  • 1
0 votes
2 answers
44 views

Insert Widget Catalog Product Link in Better Blog not showing on front end

We are using the Better Blog extension inside of Magento to create multiple posts for marketing. It uses the same Page Editor as Element->Pages on the Magento Admin Panel. In the editor you can add ...
hans's user avatar
  • 1
1 vote
1 answer
24 views

Can a widget extend a class besdides Template?

All widgets I have ever created programmatically extends Template implements BlockInterface and I was curious if you can extend different classes for a widget module's block?
A. Andersen's user avatar
1 vote
1 answer
333 views

Product related widgets in GraphQL

I have a situation. We have built our Magento site as headless (data is provided from GQL). Category pages, PDP, catalog search result pages, etc all are headless except CMS pages because of product-...
Adarsh Khatri's user avatar
1 vote
1 answer
316 views

Magento JS Widget not able to observe submit event on Reorder widget

I am working on Reorder product widget of Magento located as vendor/magento/module-sales/view/frontend/templates/reorder/sidebar.phtml It contains the list of products which are recently ordered and ...
Dexter's user avatar
  • 3,613
0 votes
1 answer
189 views

Magento 2: issue with external call javascipt

I've created custom .phtml file in app/code/Trustmate/Opinions/templates/trustmatewidget.phtml Here I add a short link to the .js code called code from URL with reviews slider on the bottom page. ...
Sylvester's user avatar
  • 2,204
0 votes
1 answer
727 views

magento 2.4 add childBlock to widget

I'm trying to create a custom product list taking the related product list as reference. The related list is defined in the catalog_product_view.xml: <block class="Magento\Catalog\Block\...
Lou Nik's user avatar
  • 433
1 vote
2 answers
1k views

Add dynamic rows (No UI Component) block, into the custom widget

I need to add dynamic rows into the custom-made-widget, without uiComponent. I have a system.xml with the block: <section id="general" type="text"> <group id="...
AcidBurn's user avatar
0 votes
1 answer
868 views

Magento 2.4 - Make uiComponent a slick slider / run jQuery after uiComponent finished rendering [duplicate]

I want to make the "recently viewed products" widget a Slideshow, using slick Slider. Here's what I did so far, although this might not be the correct approach: I copied template and ...
Chaz's user avatar
  • 269
0 votes
1 answer
719 views

Using different background images for desktop/mobile display on blocks - widgets

I created a block and a widget in magento 2.4 page top to display as a banner promotion, but i want a different display for desktops and different for mobile. what i have tried: <div style="...
Frank Tobi's user avatar
0 votes
2 answers
841 views

How to add color picker in widgets in magento 2.3

i want to add color picker in widget https://magento.stackexchange.com/a/190260/73525 This above link is working for system config same thing i want in widget as field Any one have idea about this
prabhakaran7's user avatar
  • 1,077
2 votes
0 answers
350 views

Magento 2 How to create checkbox field in widget

I have a custom widget in which I need to create the checkbox field in one of my widget. I am using parameter type as block Below is my code 1 . widget.xml file <widget class="Sandesh\...
sandesh s's user avatar
0 votes
1 answer
172 views

Magento 2.3.2 widgets on home page showing twice

I am using magento 2.3.2 with zemez theme. I added 8 widgets including slider, featured products and featured brands. Widgets were showing fine on admin and frontend when checked a month ago. Today ...
Seefan's user avatar
  • 540
0 votes
0 answers
30 views

magento 2 append widget

<reference name="content"> <block type="cms/widget_page_link" name="48fc761f38fa9838fcc3a3b498c47f72" template="cms/widget/link/link_block.phtml"&...
aich.khalid's user avatar
0 votes
1 answer
46 views

Do you know any good courses/tutorials/blogs?

I am learning more and more about Magento 2 yet I still feel like there is much to learn. I was wondering what good sources/methods of learning the following subjects are. Basics Things like the ...
Alphaegen's user avatar
0 votes
1 answer
235 views

Using the Magento Catalog Widget options for my own Widget

The widget I'm building shows 4 products on the homepage. These products are required to be configurable (Example: multiple colors), have a custom cache timeout, and easily selectable in the options ...
Alphaegen's user avatar
0 votes
0 answers
105 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 ...
Suneth Kalhara's user avatar
0 votes
1 answer
1k 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 ...
Teja Bhagavan Kollepara's user avatar
0 votes
0 answers
65 views

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

As Shown Image Want To Remove Container And Template
Ashish Bhungani's user avatar
0 votes
0 answers
141 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 ...
ann karsksya's user avatar
1 vote
0 answers
44 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 ...
Kieran's user avatar
  • 98
0 votes
0 answers
66 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 ...
abu abu's user avatar
  • 744
0 votes
4 answers
742 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/...
John's user avatar
  • 75
5 votes
1 answer
775 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 ...
sitian Gu's user avatar
0 votes
0 answers
57 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\...
Speedingorange's user avatar
2 votes
1 answer
15 views

Cannot put an element on the top Footer

Dear Magento developers, Currently I am trying to put an element block on the top of Footer, here is my wanted result: Here is my default.xml <referenceContainer name="page.bottom.container"> ...
Yusuf Ibrahim's user avatar
2 votes
0 answers
31 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-...
codeer's user avatar
  • 21
2 votes
0 answers
519 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....
itdev's user avatar
  • 41
3 votes
1 answer
523 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 ...
Holly's user avatar
  • 4,863
1 vote
4 answers
2k views

Display Widget in phtml file magento 2

I have Following widget and its working in cms page but now I want it to display in phtml file {{widget type="Magento\Catalog\Block\Widget\RecentlyViewed" uiComponent="widget_recently_viewed" ...
Harsh Jayswal's user avatar
4 votes
1 answer
1k views

Creating custom widget, how to use existing block like "RECENTLY VIEWED PRODUCTS" for a custom block, so that It should support all magento themes

registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); module.xml <...
Rohit Jaiswal's user avatar
2 votes
0 answers
135 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 ...
Rohit Jaiswal's user avatar
0 votes
1 answer
2k views

Magento 2 Get widget parameters as array

Is there a way to get all the widget parameters in an array instead of loading the data of a specific widget parameter like below? $this->getData('widget_parameter_1'); So, something like: $...
ElFietsbel's user avatar
0 votes
1 answer
555 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, ...
bofh's user avatar
  • 197
0 votes
1 answer
48 views

Wrong template location after overwrite

I have overwritten the _beforeToHtml() method in the class Magento\CatalogWidget\Block\Product\ProductsList. After doing this, I received the following error: Invalid template file: 'product/widget/...
Maarten Wolfsen's user avatar
2 votes
1 answer
2k views

magento 2 widget layout update : specified pages section not showing all cms pages

I have created widget that i want to show on sidebar of about us and our company page, but in widget layout update >> specified pages section i can not find any option to see any option of My Cms ...
user1799722's user avatar
1 vote
1 answer
2k views

Magento 2, how to add color swatches to custom widget template

The custom module lists certain configurable products. I need to display the color swatches, I tried below but it returns nothing! in myTempalte.phtml <?php use Magento\Framework\App\...
Zinat's user avatar
  • 2,049
1 vote
1 answer
1k 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 <?...
Nismath vi's user avatar
3 votes
1 answer
3k views

Magento 2, add sku selector to custom widget

How to add below in my custom widget.xml? below code does not have possibility of multiple products selection :( <parameter name="id_path" xsi:type="block" visible="true" required="true" ...
Zinat's user avatar
  • 2,049
1 vote
2 answers
3k 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. ...
Hector Andres Rojas's user avatar
2 votes
0 answers
129 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.
Ankush Verma's user avatar
2 votes
1 answer
2k views

Call Widget from phtml file?

Trying to call a widget (from a custom form extension) in a phtml. Here's what it looks like when embedded in a CMS page: {widget type="PluginCompany\ContactForms\Block\Form\Widget\View" form_id="1" ...
brackfost's user avatar
  • 1,020
1 vote
1 answer
107 views

Error while adding layout update to the widget

I am using a theme that has been built on Magento 1.9. Whenever I am trying to add layout update to a widget and save it I am getting the error below. An error occurred during saving a widget: ...
Akshay Vasu's user avatar
0 votes
0 answers
114 views

Using product list widget to just show price? [duplicate]

How can I use a product list widget to just show the price of the product on an cms page.
DevAnd's user avatar
  • 516
0 votes
1 answer
64 views

Cart Page Widget Location

On the cart page I'd like to fill the large white space with the widgets highlighted. I currently have them put into the page with a Widget set to the main content area. Is there an easy was to ...
07lodgeT's user avatar
0 votes
2 answers
1k 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 ...
user2641473's user avatar
1 vote
2 answers
2k 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/...
Kushal Dani's user avatar
  • 2,104
1 vote
2 answers
432 views

Inherit Widgets from Theme Parent

[[ TLDR: I'm looking for info about (or a module) that would allow me to have child themes inherit widgets from their parents. For widgets that were created on the backend. ]] This is for Magento 1....
Μάκης Παλάσης's user avatar
1 vote
3 answers
4k 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 ...
naknak12's user avatar

1
2 3 4 5