Questions tagged [widgets]

Administration, usage, and development of CMS Widgets

Filter by
Sorted by
Tagged with
0
votes
1answer
9 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 ...
0
votes
0answers
31 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
56 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
17 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
185 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
32 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> <...
1
vote
0answers
40 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.
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 ...
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 ...
0
votes
0answers
61 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
20 views

Magento 2.3.3: How would I add a Color Picker to my custom widget options? [duplicate]

I need to add a color picker to my custom widget options how would I go about doing this? Thank you
0
votes
0answers
19 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
312 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/...
2
votes
0answers
235 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 ...
0
votes
0answers
31 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\...
2
votes
1answer
12 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"> ...
2
votes
0answers
30 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
194 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....
1
vote
1answer
268 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 ...
0
votes
3answers
800 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" ...
4
votes
1answer
139 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 <...
2
votes
0answers
78 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 ...
0
votes
1answer
1k 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: $...
0
votes
1answer
221 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
1answer
40 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/...
2
votes
1answer
790 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 ...
1
vote
1answer
930 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\...
1
vote
0answers
432 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 <?...
3
votes
1answer
1k 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" ...
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. ...
2
votes
0answers
84 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
1answer
710 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" ...
1
vote
1answer
69 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: ...
0
votes
0answers
108 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.
0
votes
1answer
43 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 ...
0
votes
2answers
709 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 ...
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
2answers
224 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....
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
2answers
704 views

Magento 2.2.2 - Include external/internal Javascript for specific CMS page

I need to integrate addthis widget on CMS page. In my custom them I created xml file cms_page_view.xml which resides at app/design/frontend/Vendor/Themename/Magento_Theme/layout/ <?xml version="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
1answer
2k views

Magento 2 - Extend catalogAddToCart widget

What i am trying to do is extend the catalogAddToCart widget so i can write some custom code without modifying the widget itself. So I've doen the requirejs file here: Vendor/default/...
0
votes
1answer
89 views

magento 1.9x switching widgets

My magento acts up weird. I have normall magento caching enabled, but also OPcache enabled on php 7.1.10. The problem i have is when i load the website in one browser i see the following: When i look ...
0
votes
1answer
236 views

Magento add Image Slider getting unserialize(): Error

I have tried to add Image Slider into my home page using following the steps using the following link https://magenticians.com/customize-homepage-magento-2-add-image-slider/ When I clicked save after ...
4
votes
0answers
145 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 ...
0
votes
2answers
37 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 ...
11
votes
4answers
7k 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 ...
0
votes
1answer
414 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')->...
3
votes
2answers
2k views

Magento 2 - Use of the Media Image Uploader

I created a new Block that renders a button to upload an image via Magento's Mediabrowserutility. This Module is also used for uploading images to a CMS Page. The Block is used to add Image Uploads to ...