All Questions

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

Build Customer View URL on Controller

How can I programmatically build this url: http://127.0.0.1/magento2/sales/order/view/order_id/61/? Im in a custom controller with the current Order object.
1
vote
0answers
21 views

Magento 2 custom ui_grid filterSearch issue

I have an error when attempting to search for a keyword in my custom table In Network tab, i have a call to https://mylocalsite.local/admin/mui/index/render/?namespace=my_grid&search=123&...
0
votes
1answer
28 views

WYSIWYG Editor Issue in UI Component multi row not working

I have created dynamic rows with multiple descriptions filed(1 In a row) with the WYSIWYG editor. Editor showing and working with first one-row element and rest element which added by adding more it's ...
0
votes
1answer
14 views

Is it a bad idea to allow magento upload SVG file for CMS page?

One of my user request to ask me to make the Magento able to upload svg file to the CMS. I did some research, some say security issue, but didn't tell much what kind of security issue it may happen. ...
0
votes
1answer
15 views

Continue to next step on click of Ship Here button

I am working on a project where I have to customize the checkout process. So I need a functionality where I want to move to the next step on selection of the shipping address. Below is my shipping-...
0
votes
1answer
17 views

adding tag to a specific page

hello everyone i have added a specific tag to all page of my website , but I want to add it to just the home page , can i achieve that ? i have added the meta tag like below, but it appears on all ...
0
votes
0answers
14 views

Create a custom tab layout for admin page

I'm trying to create an admin page separated into tabs that displays some custom phtml. I thought about using a ui_component form, but this requires a datasource which I don't have/need for this page. ...
0
votes
0answers
7 views

Magento 1.9 How to add custom button to sales_invoice/view in admin?

I want to add a custom button on the invoice view page in admin. anyone has any idea please share here.
-1
votes
0answers
17 views

Magento 2:how update on save indexer works?

There is a one mode in indexer Update On Save. How Update on save works in Magento 2 ? How Magento 2 knows that only saved products should be index ? Is Magento store the product data in table and ...
0
votes
0answers
12 views

Error when update/add product

In admin when i click on product edit get a error [2021-04-06 13:14:56] main.INFO: Broken reference: the 'product.reviews' element cannot be added as child to 'product_tabs', because the latter doesn'...
0
votes
0answers
7 views

Magento 2: Check quantity with custom data when create shipment

When creating shipment from the Admin I have to check the qty with the packed quantity from the custom table. I have created a plugin and it's calling but after this, it creates shipment for all the ...
-1
votes
0answers
13 views

Fatal error: Call to a member function setRule() on boolean

Fatal error: Call to a member function setRule() on boolean in /home/tvmrlxxyhoke/public_html/app/code/core/Mage/Rule/Model/Abstract.php on line 241 the code: protected function _resetConditions($...
0
votes
1answer
19 views

Load products for specific store Magento 2

$products = $this->productFactory->create() ->setStoreId($store_id) //this is not working ->getCollection() ...
0
votes
0answers
12 views

Magento 2 - Pub/Static files create everything EXCEPT mage folder with important js files (like mixins.js or common.js)

I am using Magento 2.4.1 CE. I am not sure what changed, but since about a week when I create my static files the front- and backend break because two folders including important files are missing (e....
0
votes
0answers
20 views

Bug to configure a widget : impossible to select a block

I am currently working on an e-commerce website, running with Magento 2.4.0. I have to create a new widget, but at the end of the configuration, I have to select a block, which is impossible due to ...
0
votes
1answer
16 views

How to get url parameter in Model/ResourceModel/agent/Grid/Collection.php

protected function _initSelect() { parent::_initSelect(); $agent_id = $this->request->getParam('agent_id'); } Try to get "agent_id" from url but getting this eror Type Error ...
-1
votes
0answers
16 views

Magento 2 : Install extension from composer

I am trying to install an extension by executing composer require elgentos/regenerate-catalog-urls but it shows error Problem 1 - Installation request for elgentos/regenerate-catalog-urls ^0.2.6 -&...
-1
votes
0answers
7 views

Product sorting error for arrow(asc & desc) with name and sku

In Magento 2.4.1, The product sorting by name and SKU is not working in custom product grid. I tried many solutions but not worked. Below is given the screen short of product to understant it more ...
0
votes
1answer
17 views

Warning: file_put_contents in plugin-list.php and PluginListGenerator.php in Magento 2.4.2 during compilation

While compilation the Magento 2.4.2 experienced following error Warning: file_put_contents(ProjectName/generated/metadata/primary|global|plugin-list.php): failed to open stream: No such file or ...
0
votes
1answer
21 views

Enable PayPal Guest Checkout option is missing

i'm currently testing around in our shop paying via PayPal Plus in sandbox mode. Paying via paypal is working so far with the sandbox accounts, now i want to activate "Enable PayPal Guest ...
-1
votes
0answers
23 views

How to disable showing popup on any pages?

Hi I have fancybox popup which show it on any pages, and I want it only on home page. Doesn't understood js. Please help me.... My code <script type="text/javascript"> require([ '...
0
votes
0answers
7 views

how to create controller to show product name and stock status (Available/out of stock) in magento?

I want to create a table to show stock status if all products. This table will contains following fields: => Product Name => Product SKU => Quantity => Stock Status (In Stock / Out of ...
-1
votes
0answers
8 views

How to save payment method in cart?

I get payment method code using ajax,but I don't know how to set it in table.
1
vote
0answers
23 views

Mass update customer attribute programatically in a single query

I've created a custom customer attribute via install script. Now I would like to bulk update this attribute for batches of customers programmatically. Preferably in a single query (using foreach would ...
0
votes
0answers
4 views

How to add an export button in the urlRewite module

I wanted to add a new button to export all URL addresses from my store. Unfortunately, this module is so weirdly constructed that I can't understand it. Anyone of you doing something similar? Or knows ...
0
votes
1answer
16 views

How to get value for dropdown in custom form?

customform.phtml <div class="field country required"> <label class="label" for="country"><span><?php /* @escapeNotVerified */ echo __(...
0
votes
0answers
10 views

How to create a uploader for multiple files in Stores -> Configuration?

I want to create dynamic rows where the user can add or remove a row, as well as for each row he can add a title and upload files, he can upload several files for each row, and I want to implement all ...
0
votes
0answers
10 views

how to display menu from the data of the Sutunam module in the weltpixel module in magento 2

comment identifier comment seront renseignés les liens dans weltpixel pour recréer le menu à partir des données du module Sutunam (sutunam_menu pour les entrées de menu (avec sutunam_menu_store pour ...
-1
votes
0answers
6 views

How to remove error Please accept data access terms and conditions in customer registaration for?

Please accept data access terms and conditions checkbox not showing on customer regitartion form.
0
votes
0answers
12 views

Sorting by position not working with Elastic Search 6+ on magento 2.3.3

When I use mysql as a default search engine in magento 2.3.3 everything works fine as it should but as I change the default search engine to Elastic Search 6+ the sort by position attribute does not ...
0
votes
0answers
11 views

how i can retrieve Minimum Amount in magento 2 using REST API?

Dears I am using Magento ver. 2.2.7 as backend for my app, i want to get "Minimum Amount" for orders when my users review them bascket. So i am looking for API to retrieve value of "...
0
votes
0answers
31 views

Admin order view custom form

I want to create a custom radio button in the admin order view. I managed to create installschema and the block itself in the order view but I don't know how to save and retrieve that data. Here's ...
0
votes
2answers
20 views

What is max_messages proper value for running message queue using cron job?

I'm using Magento 2.4.1, and this is my message queue configuration in app/etc/env.php 'queue' => [ 'consumers_wait_for_messages' => 0 ], 'cron_consumers_runner' => [ 'cron_run' => ...
0
votes
2answers
31 views

null Order on custom controller

Im in a custom controller tying to get the order info with checkout session. There is my code. $order = $this->_checkoutSession->getLastRealOrder(); // Magento\Sales\Model\Order\Interceptor ...
0
votes
1answer
25 views

Magento 2 - How to display recent order on Homepage?

I know that the "recent orders" section is displayed on customer's dashboard. I am wondering if I can display this "recent orders" on the homepage as well? My website requires ...
0
votes
0answers
18 views

Unit testing of a plugin

@edit It has already been solved How would the unit test of this plugin be? public function afterPrepare(uiMassAction $subject, $result) { $roleName = $this->adminSession->getUser()->...
0
votes
1answer
25 views

How to override adminhtml html file

I need to overwrite the file vendor/magento/module-customer/view/adminhtml/web/template/default-address.html. I have tried creating a custom module and adding the file in app/code/myvendor/mymodule/...
0
votes
0answers
16 views

Failure in automatic Technical Review when uploading a module to the Marketplace

We are trying to upload a module to our Magento Marketplace account. We have passed the marketing review but the technical review (Installation & Varnish Test & MFTF Magento Supplied) is ...
0
votes
2answers
28 views

Magento 2.3.5 with cpanel - Unable to downgrade composer to 1.10.20

(Magento 2.3.4) I am trying to downgrade composer due to not being able to run Composer commands as follows. NOTE: from my understanding Magento 2.3 is not compatible with composer 2. composer require ...
0
votes
0answers
22 views

Magento 2 has default slider js?

Magento 2 provide default Slider js rather than use third party slider js ? Because I do want to increase js size of Magento 2 Store. I tried to search,but I could not find any slider js.
-1
votes
0answers
28 views

How to move div element if specific div class exists on page

I need to check if div class=3 existing on the page or not, if exits then move div class= 3 to before div class=1, I want to move my div from div class=1 div class=2 div class=3 if div class=3 ...
0
votes
0answers
19 views

How can i change email template outer background color magento 2.4.1

I want to change outer background color of email template.So let me know how can i change background color. In which file i can change background color screen-shot : https://www.screencast.com/t/...
0
votes
0answers
15 views

Magento 2 Quote Refresh Api

HI I am developing an API where I faced a challenge in my cart listing api, I need to apply cart rule and add it in quote and need to update quote accordingly. The Problem here is my quote do get ...
1
vote
1answer
33 views

Magento 2 set child product image from URL

Magento 2.3.5 How to set child product image from URL for configurable product on the product detail page Example - product URL is - http://xyx.com/product.html#447=5439 dropdown is selecting ...
1
vote
1answer
21 views

How to Enable Search Engine Friendly URL's in Magento2?

I am looking to use SEO friendly urls. What would be the best approach to do so?
0
votes
1answer
17 views

Magento 2 Override view/adminhtml/ui_component XML file of third party Module

I am using Third Party Module for Admin section which used UI component to display data.The file path is Vendoname/Modulename/view/adminhtml/ui_component/news_data_listing.xml file .I want to override ...
1
vote
0answers
16 views

Magento2 negotiable quote save programatically

How to create and save the negotiable quote programatically in M2. Can any one provide some example with dummy data / (or) provide me the test script with simple example please Thanks
0
votes
1answer
22 views

M2: Preventing double cart entries when clicking “Add to Cart” twice

When clicking on "Add to Cart", my M2 website loads for 4 seconds and then redirects to the cart. Some visitors tend to click "Add to Cart" again after waiting 2 seconds. This ...
1
vote
2answers
32 views

Element 'block', attribute 'display': The attribute 'display' is not allowed… in magento 2

I am working with Magento 2.3.5 community edition. I am facing this issues Element 'block', attribute 'display': The attribute 'display' is not allowed in .. on magento frontend when I am in '...
0
votes
1answer
22 views

Magento 2 : How to set product stock status customer group specific?

My requirement is wholesaler can order out of stock prdocuts. I tried to create a plugin for the below file but didn't work. \Magento\CatalogInventory\Helper\Stock::addIsInStockFilterToCollection ...

15 30 50 per page
1
3 4
5
6 7
2134