Questions tagged [widget]

Denotes questions regarding Magento Widget

Filter by
Sorted by
Tagged with
0
votes
0answers
18 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
1answer
9 views

Widget Display Options in Magento2 - select all subcategories of category in one click

Is it possible to select all subcategories of category with one click only ? I want to display my widget on category and all subcategories of this category. At this moment I must select every ...
0
votes
0answers
10 views

VAT widget returns different store value on multi website Magento 2

I have Multi Website on my Magento 2.2.0 Configured Show VAT Number on Storefront(eav_attribute taxvat) Website level attribute_id | website_id | is_visible | is_required | default_value | ...
0
votes
0answers
10 views

Issue : When my widget load , my Jquerry no more avaible

I try to add Widget on product page that is a calendar which use jquery in an another webservice . In my phtml i use file_get_content But when i do this my widget does load corectly but all my other ...
0
votes
0answers
9 views

Position of Magento 2 custom widget

I would like to know if we can manipulate custom widget position, so to be at the top of category pages not at the bottom for example
0
votes
1answer
25 views

magento 2 How to add custom content under the buy button for a specific product

I want to add some custom content under the shopping button on the product page of the specified category. I have used the block and widget functions to create it, but the display position is not what ...
0
votes
1answer
32 views

How to get collection of all the widgets created in admin panel?

In admin panel, I create a widget by choosing it's Type, Design Theme and applying the custom widget options. I have not selected any Layout Updates for that widget. Let's say I have created ten ...
1
vote
0answers
22 views

After including a JS file in my Magento 2 custom widget, i m getting $. is undefined

I have created a custom widget that requires jQuery code. I have included the js file but when I'm trying to view the changes in the frontend, I'm getting jquery error. I tried including the file ...
0
votes
0answers
32 views

Add Custom Attributes and Custom Columns To Product Chooser Filters in Widget Setup

I'm trying to add custom columns / attributes to the product chooser filter when configuring a new widget. I've narrowed it down to magento\module-catalog\view\adminhtml\templates\catalog\product\...
0
votes
1answer
28 views

How to pass a variable to a JS widget in Magento 2

This is my script from my phtml file: <script type="text/x-magento-init"> { "*": { "Vendor_Namespace/js/custom": { "ajaxShipmentUrl": "<?php echo $...
1
vote
1answer
21 views

How to Override jquery widget method in Magento 2?

I'm trying to override Magento_Checkout/js/sidebar.js _initContent method. I need to delete two events from it and create my own events instead. Is it possible without copying the full method from the ...
0
votes
0answers
32 views

Why use blocks, widgets and LESS when building standard web pages?

why would I use blocks, widgets and LESS to build a web page when the CRM supports standard web page construction? I am trying to understand the overall logic and strategy of building themes and ...
0
votes
0answers
11 views

How To Add Layout Updates Widget Container In Admin Form In Magento 2?

I want to create a layout updates widget container in the admin form in Magento 2. If Anyone Know Plz Tell. Thanks In Advance.
0
votes
0answers
48 views

Jquery ui widget implementation instead of just jquery code

I have code that performs the function of interactivity. When you click on the checkbox, the block is cloned and added to another block. Here is an example on codepen: https://codepen.io/annbin/pen/...
0
votes
0answers
8 views

Magento2 How to refresh price from widget product's after currency switcher on Homepage

Does anyone know how we can refresh product price from widget products after switch currency on Homepage ?
1
vote
0answers
16 views

Magento2 Product Price For Widget is not refresh price with currency switcher

I have create one widget and display some products to that product, but while change currency using currency switcher , it does not change new currency
1
vote
2answers
207 views

Magento 2 Add widget using WYSIWYG field in a custom widget

I have created a custom widget and it contains a WYSIWYG field. Everything works fine except the add widget option. When I add the widget it will displayed in the editor. When I click the save ...
0
votes
0answers
14 views

Installing Magento 2 Theme - No Widgets or Blocks

I have downloaded, uploaded and activated the theme - but no widgets, blocks or anything specific to the theme are anywhere to be found. I uploaded the app and pub folders and ran the php commands, ...
2
votes
1answer
25 views

Add a block to programmatically generated widget

I need to generate a widget block with upgradeData.php and assign a block to this widget how can I do this? Folowing is my code for widget generation: Setup/UpgradeData.php public function ...
0
votes
0answers
11 views

Pagination in Magento2 widget block

Hi is there any way to do pagination in widget block . For example have a category with id 355 . I want to display that category product in a page . So I am using widget(following code) {{widget ...
0
votes
0answers
24 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
85 views

Magento 2 How add dynamic rows field to custom widget

I need add dynamic rows field to my custom widget, which should have three columns: title(text field), color(select field), url(text field). There should also be an add button, and delete buttons for ...
0
votes
2answers
43 views

Help in remaking the code on the widget

The challenge is that I have checkboxes on the page. This code finds all the checkboxes on the page and if the checkbox is selected, it adds it to a separate block. I want to limit the amount that can ...
0
votes
0answers
13 views

Load widget content after header image

So, I have some issues with loading a call to action button. To make the header work, we've created a Magento Widget which includes the header image itself, but also the possibility to enable or ...
0
votes
0answers
11 views

Magento 2 - Use \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser with search by keyword

I want search by keyword field which can search in grid columns and get results based on keyword. For Ex I need exact search which is available in product admin grid in product chooser form.
1
vote
1answer
48 views

Change “Add to Cart” Button Text Of Widget Magento 2.3.3

I want to change button text "Add To Cart" To "Some Text" With Custom Condition For Widget... Using Custom Module Create widget :-
1
vote
1answer
61 views

How to get Product id from specific Product Catalog Rule?

I created a widget which is a display product section for a specific catalog price rule selected by admin. Ex: Admin select 20% off on pants from backend & '10' will be limit of displaying ...
0
votes
0answers
18 views

Unable to get only Image URl in Magento2 Custom Widget

I have requirement of Image in the widget and i have using Wyswigy editor to add image, but i Image url to be wysiwyg/pic 01.jpg but i am getting <img src="{{media url=&quot;wysiwyg/pic 01....
0
votes
1answer
12 views

Widget layout error on saving

Testing a widget I created, I get a weird error when I try to set up the layout where the widget should appear. After hitting the "save" button I get the following: File "/http/var/view_preprocessed/...
0
votes
0answers
27 views

Magento2.3.3: Custom Widget return null in Block file

I try to create a custom widget List of comma-separated product ids to be displayed on the front-end.getting id's from widget and use in block But in block it return null value. how can I get these ...
1
vote
2answers
28 views

How can I load popup widget unload or on ready?

I am trying to load popup widget , admin specifies it will be unload on ready . Where can I specify it must pop unload or on ready ? define([ 'jquery', 'Magento_Ui/js/modal/modal', 'mage/cookies' ],...
1
vote
0answers
28 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
26 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
14 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
45 views

Magento 2 :How can i get rating stars and product detail in my widget?

I have made a widget to get reviews of all products on a single page. but not be able to show rating stars and products details with that. I tried many solutions but nothing works <?php $...
0
votes
0answers
28 views

Insert a widget/block reference in product/view/description.phtml

I am trying to display a widget linked to a new block reference I created. I would like to put this block reference inside my catalog/product/view/description.phtml file This is the code I am trying ...
1
vote
1answer
52 views

Add Custom JS to Modal Insert Widget Admin Form

I am wanting to do custom javascript to manipulate the Widget Options when adding a widget (using the WYSIWYG editor) in the Admin panel. I have found that the layout handle adminhtml_widget_index is ...
0
votes
0answers
73 views

Add Custom Attribute To Recently Viewed Products Widget

I have override widget_recently_viewed.xml in my theme in Magento_Catalog with <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
75 views

How to load content through ajax call in collapsible Widget

I want to load content dynamically through ajax call. For that, I read below documentation. https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/widgets/widget_collapsible.html#...
0
votes
0answers
234 views

Magento 2 Sort product in cms page widget block

I want to insert multiple products in a cms page using SKU . So i did using blocks . So please see my code {{widget type="Magento\CatalogWidget\Block\Product\ProductsList" show_pager="0" ...
1
vote
1answer
238 views

Magento 2 Custom Product block using SKU in cms page

I want to display custom product block in cms page . I have sku of the products . No how can i display this product in cms page . I know how to display one product using sku . But is it possible to ...
0
votes
1answer
46 views

Custom php code in magento not working / magento block path wrong

i am new to magento & using magento 2 . I have to run a php code in my cms page . When i check the website i can understand that the theme is Alothemes Bencher6 . So what i did is app/design/...
0
votes
0answers
44 views

Show product blocks based on product id

I am new to Magento. I have some product ids. I have to list this product on my custom page. These products are selected from different categories. So I cant make these products in same category and ...
1
vote
0answers
162 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
1answer
35 views

Magento 2: How to override new_grid.phtml in Custom Module?

I need to override product/widget/new/content/new_grid.phtml file in my custom module. Please tell me the possible ways to do it.
0
votes
0answers
38 views

Error while extending jQuery widget

I'm trying to extend the widget in vendor/amasty/label/view/base/web/js/label.js and override a functionality in one of its methods. The error I get is: TypeError: base is not a constructor in ...
0
votes
0answers
27 views

How to create custom Widget programmatically that will allow me to show the newest Products in Home Page?

I want to create a Custom widget through codes that will allow me to display the newest products on the home page where my widget will get inserted.
0
votes
1answer
25 views

Magento 2 Calling widget/template_filter in .phtml

Where is the equivalent way of writing the following Magento 1 code for calling a custom widget in Magento 2.3.1? Mage::getSingleton('widget/template_filter')->filter($_product->getData('...
0
votes
2answers
229 views

Magento 2: add magento widget button on product WYSIWYG editors

I am missing the "insert widget" button on all WYSIWYG editors on the product edit pages. The magento guys seem to not have thought this through properly. I found a way to add them to categories: ...
0
votes
0answers
85 views

Adding images or links to Wysiwyg inside widget returns an error in Magento 2

I am having trouble implementing a WYSIWYG editor inside a widget. Preconditions (*) 1. Magento 2.3.1 2. Add a Wysiwyg element to a widget app/code/{Vendor}/{Module}/etc/widget.xml <parameter ...

1
2 3 4 5