Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Apply filters or mass actions on grids with fake collection (or wirhout ui components)

I a admin grid with a change on _prepareCollection() function to get the collection from a response of api call, its working fine. But I do not have the filters or mass functions, how can I do that ...
0
votes
0answers
17 views

Store switch error in admin magento 2

I have a custom module. when I switch store view it not show anything. normally it still working fine in all store view update: I have added it in XML file <referenceContainer name="page....
0
votes
0answers
5 views

Field Action for Column component

Can someone explain me what I should put instead of "TARGET_NAME" and "ACTION_NAME", I can't find any example in Magento 2 source code. <column name="column_with_action"> <argument name="...
0
votes
0answers
12 views

UI component admin action edit button AND Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested data doesn't exist

Hi, i'm new at magento 2 and have a question. How to do the "Alterar Pontos" button, do the same action as "edit column" ? the "Alterar Pontos" button is creating a new object. i just want to edit ...
1
vote
1answer
33 views

Ui element and knockout js array subscriber/listener

I would like to do 2 thinks with knockout js and UI component Fill in input in a grid based on entity_id - Works great Trigger callback when one of input has changed The second part works partly. ...
0
votes
1answer
14 views

Admin ui form category tree population issue

I've got an admin ui form with category tree field https://github.com/DominicWatts/Announce/blob/429e2f6228b5911f261df6f6855d76913c934f9a/view/adminhtml/ui_component/xigen_announce_group_form.xml#...
1
vote
0answers
16 views

Need to display tier price range on recently viewed products widget

I need to display the tier price min and max value in recently viewed products widget instead of regular price. It seems completely UI components involved. I found the file where I can see the ...
1
vote
0answers
20 views

Problem for create dependency between Custom Fields and Customer Group Id field in customer form UI component

I created a new extension that add more fields to customer to control sales reps users. The fields and data are working as expected. But I want make the new fields be hide or disable for some customer ...
0
votes
0answers
15 views

Magento 2 Use Filters on Custom Columns that are not attributes in the db-schema

I got a custom grid table in ui components I got a column ("Cifra Corrente" -> current_amount) that IS NOT an attribute in my db-schema, it's calculated in my dataProvider getData(), I calculate it ...
0
votes
0answers
16 views

Custom filter in order grid

I'm trying to add a new field to order grid with custom filter. Right now I managed to make it work, but I want to add my custom filtering rule. I added the column to db_schema.xml and in my module'...
1
vote
2answers
52 views

Values for checkboxes not coming through on save for admin form ui grid

I've created a grid under a tab in an admin UI form. But I'm having trouble saving the checkbox change values. I can't catch the tab checkbox values on form submit in the controller. Only the values ...
0
votes
1answer
12 views

Admin form not pulling through form values when turning collapsible to tabbed form using ui form xml

I'm working on an admin ui form https://github.com/DominicWatts/Announce/blob/hotfix/tabs/view/adminhtml/ui_component/xigen_announce_group_form.xml I've added tabs In order to get the tabs working ...
0
votes
0answers
15 views

magento 2. DataProvider connection core_config_data

I want the values ​​from the input to be saved in the core_config_data database, nothing happens. Even in this test version. <?php namespace Aserty\TopText\Model\Settings; use Magento\Framework\...
0
votes
0answers
10 views

How to create Multi Image Uploader in custom ui component form?

I trying to create a Multi Image Uploader field in my custom admin ui form. The multi Image uploader is need like as product form multi image uploader. If anyone good in this part, help me! Note: I ...
0
votes
0answers
13 views

Data persistor in the same form for edit and add new element Magento 2

I got this structure for my form: route: admin/partnerportal/partner/edit ui_component: partnerportal_partner_edit.xml layout: partnerportal_partner_edit.xml I use the same form to edit existing ...
0
votes
0answers
17 views

How to dynamically hide normal fieldset (or) Non tab fieldset in ui component?

I created a custom admin form using Ui component. In that form i need to show and hide a fieldset dynamically based on a condition. I tried to add class for that fieldset, But the class not working in ...
2
votes
1answer
30 views

Magento 2: Custom field Dropdown options admin form always empty

I'm using magento 2.3.4 and I tried to create a custom form with dropdown options like this: <field name="year"> <argument name="data" xsi:type="array"> <...
0
votes
1answer
20 views

Magento 2 How to observe cart price in JS Component

I want to show amount after which free shipping will be available in mini cart like below For that I override minicart.phtml in view/frontend/layout/defaul.xml like this <?xml version="1.0"?> &...
0
votes
0answers
11 views

Add a popup and redirect button on an admin form

I have an admin ui_form used to edit some entity and I want to have a button that makes it so that when I click on it, displays a confirmation popup, then redirect to some function, with the ...
1
vote
0answers
18 views

Magento 2: admin ui-component tab view from issue

In admin ui-component in a custom module, when I use page layout admin-2columns-left and <layout> <navContainerName>left</navContainerName> <type>tabs</...
0
votes
0answers
9 views

Magento 2 How to show total discounts on cart summary (including special price and catalog rules discounts)

Would it be possible to get a total discounted amount from a quote and add it as a total to the totals component in the cart and checkout summary?
1
vote
1answer
10 views

Default checkbox in ui_component admin customer_form to true and checked?

https://devdocs.magento.com/guides/v2.3/ui_comp_guide/components/ui-checkbox.html devdocs says default value is false but there is no clue how to turn it to true. Anyone know what to add in xml file ...
0
votes
0answers
7 views

In Magento 2: Using a ui-components form, how can I split the fields in 2 columns

I am developing a ui_component form to edit a custom table in Magento 2.3 I can see how to create vertical sections in the xml file: <fieldset name="general_information"> <argument ...
0
votes
0answers
11 views

Magento 2 Custom grid join with product table filter is not working

I've created a custom grid using Ui Component, In my custom table I have a product_id, So instead of showing the product_id, I like to show the product name in my grid so that I have added the below ...
0
votes
1answer
17 views

Magento 2.3.4 Custom uiComponent admin form joint table Add New gives ambiguous query

Collection: protected function _initSelect() { parent::_initSelect(); $this->getSelect()->joinLeft( ['secondTable' => $this->getTable('...
1
vote
1answer
26 views

How can I disable a field in admin customer edit but enable when create new?

I'm having a enabled field in admin/customer/index/new but when forward to admin/customer/index/edit/id/{id}, I'd like to have it disabled. It'd be great if done in PHP. I notice that both using base/...
0
votes
0answers
13 views

Not getting value of Condition rule in Save

I created a few fields in condition rule in UI component, now I am getting other fields value but not my condition rule field. I follow the answer to add the condition rule field. Here is a ...
0
votes
0answers
15 views

Access uiComponent form data in javascript

I'm trying to create a button on my admin form that triggers a confirmation popup then redirects to a custom controller with the id of the current loaded entity in the form. From what I have read in ...
1
vote
1answer
79 views

How to Debug UI Component only showing spinner

I am currently developing a customer AdminHtml page with a form, and after fixing some other errors (which showed error messages) it shows only the spinner when loading the page. How can this be ...
0
votes
0answers
7 views

Magento 2 - How to use swticherConfig for hiding a fieldset, not a field

As we all know switcherConfig can be used to show/hide fields inside a form or fieldset, How can we use it to hide fieldset not just a field.
0
votes
0answers
34 views

How to create custom payment module in magento 2?

I want to get payment request in Test\Testpayment\Gateway\Request Request.php namespace Test\Testpayment\Gateway\Request; use Magento\Payment\Gateway\ConfigInterface; use Magento\Payment\Gateway\...
0
votes
0answers
18 views

How to customize ImageUploader component?

I am currently using an ImageUploader in a dynamic rows element. However, I have a couple of obstacles I need to overcome: 1) How to remove the "Upload" button? 2) When using the "Select from ...
0
votes
1answer
15 views

How to render date field in UI component (in php not xml) in magento 2

How to render date field in UI component(in php not xml) in magento 2 I am building form as in the catalog (meta arrays), datetime eav attributes. I have tried like below 'date_of_stock' => [ ...
0
votes
0answers
28 views

Use knockoutjs in Ui component of Admin form

I have created a form using UI component on Admin side. If i want to add a .phtml then i can add the file this way. <htmlContent name="driven_form_design"> <block class="Magento\Backend\...
0
votes
0answers
12 views

How to save new fieldset fields in product form in backend in magento 2

I have created new field set with two fields in product form. How do I save those fields in a separate table in Magento 2? Please provide me a solution. My code Vendor/Modulename/view/adminhtml/...
0
votes
0answers
7 views

Date are preserved even after clear filter in Magento UI grid

On the order grid, I have applied the 'Purchase Date' filter which is working fine. But after press the 'Clear all' link and apply the filter again. The date is preserved in date related filter (...
0
votes
1answer
21 views

How to show the column from sales_order in the sales grid admin Magento 2.3

I want to show the column and it's data from sales_order in the sales order admin panel magneto. How to show this.
0
votes
0answers
8 views

How to show dynamic rows inside custom tab in magento 2

I have need Dynamic rows in product form like "Customizable Options". I have added custom tab inside product form by using the following link How to add custom new section(tab) in Product form in ...
0
votes
0answers
13 views

UI Component: How to filter a custom column with data generated by logic?

I added a custom column named Payment Code to order listing page in admin: <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
9 views

How can I get store config value in ui_component xml file?

any idea on get store config value in ui_component xml file? EX: I want to get weight unit for a input form, then I tried <item name="addafter" xsi:type="helper" helper="Magento\Directory\Helper\...
0
votes
0answers
5 views

How to get Customer Grid in UI Component popup model?

I am developing a custom module where I need to relate the customers like a parent, child which is like adding a related products on the product page. Can anyone help to achieve this?
0
votes
1answer
13 views

Magento 2 | Add field to customer edit in adminhtml

I want to edit a field to the customer edit in admin html. When you look at the picture I want to add a field below "First Name". I don't want to create a customer attribute, I just want to add a ...
0
votes
0answers
12 views

Add custom checkbox next to custom product attribute input page in product edit page In Magento 2 backend

I created a custom attribute for product called keybrand, i allow this product attribute can be editable from magento 2 backend. Now i want to add the check box input next to this custom attribute ...
0
votes
1answer
37 views

UI component add text field for mass action in grid issue

This is my ui component: <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:...
0
votes
1answer
18 views

Magento 2 Hide Shipping Price on Checkout with Mixin

I have added a mixin for checkout shipping.js: requirejs-config.js var config = { config: { mixins: { 'Magento_Checkout/js/view/shipping': { '...
2
votes
0answers
50 views

Product grid checkbox input at sales rule form Magento 2 not working

I'm using Magento 2.3.4 and want to add product grid with checkbox as an input for sales rule form (shopping cart price rule), i follow the instruction to add product grid input from here but when I ...
0
votes
0answers
37 views

Magento 2 - Hiding prices by customer

I am trying to hide prices when a specific customer attribute is set to "true". Because of FP-Caching, this has been very difficult to accomplish. I can't update the FinalPriceBox directly with ...
0
votes
0answers
11 views

No-route with all magento grid/listing

I am having problem when moving to new server use Ubuntu. All my controller when loading grid/listing using UI component goes to 404 with no-route: That is example: domain.com/wondergopher/admin/...
0
votes
0answers
12 views

Magento 2 UI Select - selected category ID's sorting

in custom module i added UI Select with categories, module is used to render and export xml with product list from selected categories. i want to enable some kind of sorting of selected categories, ...
0
votes
0answers
25 views

How to export csv, xml file with name, not id in grid backend?

I exported successfully CSV and XML file but the data is Button ID, not Button Title like in the picture. How can I export with the data is Button Title, not Button ID? Thanks in advance

1
2 3 4 5
21