Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Add custom UI Component (button) to product listing with POST request

how can I add button that make POST request to controller next to "Add Product" button in product listing? So far I do it like this, but it isn't send POST: Vendor/Module/view/adminhtml/...
0
votes
2answers
11 views

Custom Category Attribute not rendered in backend Categories Page

i try to add a new category attribute in Magento 2.3.6 and render an input in the category backend. Setup worked, attribute is created. But the category_form.xml seems to be ignored. Maybe someone can ...
0
votes
0answers
11 views

checkboxset ui element not loading values

I have a custom module in admin with it's own admin page controller and ui-form with a variety of fields. One of these fields I want to be a 'checkboxset'. When I set the formElement value to that it ...
0
votes
1answer
14 views

Help to create form - now its neverending spinner magento2

I'm learning to create an UI components form, but stuck on neverending spinner. Help me to create this form, step by step, please. I have a module in adminhtml which shows a table from database. This ...
0
votes
0answers
86 views

how to provide data source for sales order grid using ui component in magento2 frontend

The grid basically should contain sales order basic details such as order number, order status along with it should contain number of invoiced items, number of shipped items, number of invoices along ...
0
votes
0answers
11 views

Magento 2 how to use custom ui component form layout in another layout?

I have a custom checkout step, and then I have another custom layout with the custom form container and static form with ui components. I also have 2 JS files separated, one for creating the extra ...
0
votes
1answer
22 views

How to show ui dynmaic row saved values in edit form magento2

I am facing an issue with dynamic rows in ui form...created a form with dynamic rows and saved successfully but in edit form the saved values of dynamic rows not displaying...how can i solve this ...
0
votes
1answer
33 views

UI form dynamicrows can only add one row?

I got a weird error and I can't seem to figure out how to solve it. I create a dynamic row within a ui form. All this works as supposed. BUT, when i create a add a record i can only add one... So the ...
0
votes
1answer
20 views

Magento2 remove Assign a Customer Group column from action dropdown

I want to remove Assign a Customer Group action from dropdown in customer grid but i cannot override it in custom module, can anyone let me know how to achieve it? i have tried by taking node and ...
0
votes
1answer
24 views

Duplicated Eav attribute in Product Edit form

I want to add a new attribute to the product edit form using the UI components, so I created a product_form.xml file in my module, and added the attribute with the code below: <field name="...
1
vote
1answer
60 views

Set Limit for Dynamic rows UI Component in magento 2

I have used Dynamic rows in product edit form. Here is my DataProvider class code use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier; use Magento\Framework\Stdlib\ArrayManager; ...
0
votes
0answers
21 views

Magento 2 - How to reorder UiComponents?

I have a really simple task, but I research for hours now and still cant figure it out. I created a checkbox in the checkout like this: app\design\frontend\company\fresh\Amasty_Checkout\layout\...
0
votes
0answers
18 views

Magento 2: Add a product programmatically in the checkout page

What the client wants is to add a step (product-selector-step.js) before the shipping-step and in that step he shows three options to select representing three simple products. What I need is to know ...
0
votes
1answer
16 views

Magento 2 - How to add a required checkbox to the checkout by using uiComponents?

I try to add a new checkbox for the user agreements. The checkbox is showing in the checkout fine, but it is not required. Whats the official way to make it required? THEME\Magento_Checkout\layout\...
0
votes
0answers
17 views

Magento 2 - How to customize “new address” form in checkout?

In magento you can add a new address during the checkout process. I need to add a little text at the position seen in the screenshot: I can't figure out how this is done. I've read through the ...
0
votes
1answer
24 views

Magento 2 - How to add logo and link to payment method in checkout?

I am using Amazon Pay. Currently it looks like this in the checkout: I need to add a logo and a link pointing to the info page about amazon pay: I solved it with a workaround by adding a javascript ...
0
votes
0answers
16 views

Magento 2 uiComponent multiple instance

I have a view with two templates that use the same uiComponent with Knockout Js. I spent hours trying to discover how to do not share the observables between two different templates. example: <div ...
0
votes
1answer
21 views

Pass data to uiComponent in Checkout

I have a simple uiCOmponent that I added to the checkout Layout to display in the jsLayout. The code looks like this. component.html <div class="delivery-estimation" data-bind="text: ...
0
votes
0answers
46 views

Magento 2: How can i check if field has data while Viewing the form(Ui component) data in backend

I created form using ui-component. after filling the data i display the data into backend. I want to display those field who has data in View action. EX. i want to remove company label if it's blank/...
0
votes
0answers
24 views

Add B2B Company Name in Sales Order create customer grid

I want to display B2B company name in customer grid while we create sales order from admin. For temporary changes I added my code in below class Magento\Sales\Model\ResourceModel\Order\Customer\...
0
votes
1answer
22 views

Hide a Ui Component Field based on condition on product edit

I have created custom field in Magento 2.4.1 product edit page, product_form.xml <field name="type" formElement="select"> <argument name="data" xsi:...
0
votes
1answer
29 views

Magento 2: Unable to add delete button in edit form using UI component

Getting below error while clicking on edit action from Grid. Fatal error: Uncaught Error: Call to a member function getUrl() on null in /var/www/html/myproject/machpack/app/code/Vendor/Module/Block/...
0
votes
0answers
20 views

Apply custom filters on custom Collection non db data provider

This is my dataprovider class under UI\Component\Listing\DataProvider\ namespace Arb\ArbReports\Ui\Component\Listing\DataProviders\Arb\InventoryReport; use Magento\Framework\App\Request\Http; /** * ...
0
votes
1answer
11 views

Form is not executed in admin panel form url show too many redirects error i give link in body

link form is not visible and give too many redirects error
0
votes
0answers
20 views

Magento 2 file uploader not working in other theme in frontend

I am using magento inbuilt file uploader component in my theme, I have 5 types of different themes and have called uploader component from one of the custom module, the issue is I cannot see file ...
0
votes
0answers
21 views

Why am I getting a DataProvider\Document instance in mass deletion?

I am using Magento 2.4 and I want to add a custom admin Grid for company products. The problem is that I get a an error when I want to perform a mass delete action. The problem appears in my action ...
0
votes
0answers
18 views

Magento 2 UI component Auto selected values are not populating

I have developed custom admin form by using UI component. Form is working good and saving the values in custom table.After saving the values, form should automatic prefilled with table data, but its ...
0
votes
0answers
11 views

How add custom checkbox to product price in save/edit product page on admin panel?

How i can add custom checkbox to save/edit product page in Admin? I need to add a checkbox like 'Use Default value'. Tell me how can I do this? Thanks everyone for the help!
0
votes
0answers
21 views

Magento 2 Calling Category Tree with UI component getting error “Call to a member function getData() on null”

I am working on admin custom page and calling Category tree using with UI component with below code: in UI component listing file adding below code: <field name="category_id"> &...
0
votes
0answers
19 views

How can I add a total qty column in the product grid in Magento 2?

I'm using MSI and I would like to add a column that shows the total qty of a product in all sources. So basically a sum of the qty in all sources. So let's say that currently one product shows ...
0
votes
0answers
13 views

Magento 2 How to use UI component grid in frontend and using export option

I have created grid on frontend custom my account section using UI component grid. Also I'm trying to implement export option on UI component grid. How can i use this controller in front end - mui/...
0
votes
1answer
35 views

How to get value from Ui-select in js magento2 at page load

I have created field in phtml and want to get values from multi-select dropdown inside js. Inside phtml <form id="attr-form" action="<?php echo $block->getUrl('*/*/save') ?>...
0
votes
0answers
15 views

Magento 2 : Expandable Column component - how to read data by row?

I need to use Expandable Column component in grid. I used code from documentation <column name="last_comment" class="ModuleCore\Order\Ui\Component\Listing\Column\LastComment">...
0
votes
0answers
9 views

How to detect if user is using a mobile device from video content-type?

I have created an extension module for video content-type, where I extend ui_component form and the config file video content-type. In the form I give the opportunity to the user in admin to give a ...
0
votes
0answers
62 views

how can I make website field required in product form magento 2?

I would like to prevent users from saving a product without first assigning a website to them. I was thinking I need to customize the product_form.xml ui component however I can't find any reference ...
0
votes
1answer
24 views

Mass action not working in Magento 2

In my custom module I am showing the records in the admin panel grid using ui_component and it's showing good. When I am selecting count()-1 records the selected parameter is passing to controller to ...
0
votes
1answer
17 views

Magento 2 custom admin grid keeps loading and never finishes

I added a custom admin grid, but it keeps loading and loading and it never ends. The table has just like 50 rows Here is an image Also here is my ui_component, I feel that something is wrong here, ...
0
votes
2answers
48 views

How to reuse Ui Component

I have a working Ui Component: component1.js: define(['UiComponent'], function(Component) { return Component.extend({ defaults: { 'template': 'template1.html', '...
0
votes
0answers
15 views

how to append media url in magento customer edit page admin custom field in magento 2.3

customer_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
0answers
33 views

How to reload a component on checkout page when shipping address is modified

I am using Amasty Deliverydate module, this module allows customer to select delivery date and time on checkout step. I am trying to customize this module and we have developed a feature where admin ...
0
votes
0answers
10 views

How to add uiComponent to Checkout

I am trying to add another block to the checkout. The uiComponent that I try to add is by default shown in the login popup that opens when you click on Log In on top of the page. So I know the ...
0
votes
3answers
12 views

Mass Action needs to change the place Magento 2

I have created the custom grid with UI Component and it's working good except the position of Mass Action. For this I have written below code: <?xml version="1.0" encoding="UTF-8&...
0
votes
1answer
168 views

Magento 2 dynamic rows add row not working

I'm trying to add dynamic rows in the product edit page. I have successfully added a dynamic row UI component; the problem is the 'Add' button is not working after one row is inserted. Thanks! this is ...
0
votes
2answers
44 views

magento 2 Admin Change grid data based on the selected options via ajax

I have an admin form inside which I have added a dropdown and one grid with UI component I want to change the grid data or need to apply filers to grid collection based on the selected value inside ...
0
votes
1answer
47 views

Magento 2 - How to use XML uiComponent instead of text/x-magento-init?

I found an easy hello world example from Max Pronko which uses text/x-magento-init to define a uiComponent. MODULE/view/frontend/templates/script.phtml <div data-bind="scope: 'pronko-component'...
0
votes
0answers
51 views

how to apply last filters saved in custom bookmark in frontend UI Component listing?

I created listing using UI Component in frontend. I also created custom bookmark for saving the state of the UI Component because I want store it as a customer, because the default bookmark only save ...
0
votes
1answer
32 views

ui component modifier

I'm using Modifier class to disable some ui components on admin screen. But when I implemented modifyMeta() method, some of the needed ui components not included in the metadata array (eg: gallery) So ...
0
votes
2answers
29 views

Messages add product, removeAll

where is function to remove all messages (add or error)? I want to remove message one by one, now magento deletes all at once.
0
votes
1answer
26 views

Add a custom input from phtml in admin form

I'm using custom phtml to display some data in an admin Ui form tab, and I want to be able to have a custom input that would get sent to the controller when I hit 'save' ui_form.xml <fieldset name=...
0
votes
0answers
33 views

How modify UI Component Option values in custom modules

I have a base module which defines a UI Select component like so: <field name="type" formElement="select"> <settings> <dataType>text</...

1
2 3 4 5
23