Questions tagged [action]
The action tag has no usage guidance.
92
questions
0
votes
0
answers
25
views
How to mixin a js action when there is already a mixin declared on it
I need to apply some additional code to Magento_Checkout\js\set-shipping-information.js.
However, I have got a third party module which already declared a mixin on it
'Magento_Checkout/js/...
0
votes
1
answer
36
views
Magento 2: Add Reset option in the Auto Generation coupon grid Manage Coupon Codes section
I need to add Reset option in Manage Coupon Codes Auto Generation coupon grid Action.
When select record(coupon code) in the grid and click on the Reset option then Submit button should be display and ...
0
votes
1
answer
1k
views
How to Integrate Button component with Form component? [duplicate]
I try to add my custom button to the form, not to the header of the form, but after some fields inside the fieldset, I found some examples here https://devdocs.magento.com/guides/v2.4/ui_comp_guide/...
0
votes
2
answers
749
views
Getting information about a request using HttpGetActionInterface
I'm in the process of removing the deprecated Action implementation from my controllers in favor of the ActionInterface implementations.
With the old extension approach of the Magento\Framework\App\...
0
votes
1
answer
29
views
Programatically mass change product prices
I am writing a module that uses a cli command get a csv file and use that to change the prices of a selection of products based on sku and new price retrieved from an CSV file.
I have the logic for ...
0
votes
1
answer
1k
views
main.DEBUG: Request validation failed for action ... Invalid request received at Account/CreatePost.php:327 on loop error in debug log
Hey There i have been facing a serious issue in my magento 2.3.7.
in my debug.log this error is constantly hitting n filling it in seconds
Request validation failed for action "Magento\Customer\...
0
votes
1
answer
172
views
How to replace Action\Action in a controller with both Get and Post requests
I'm trying to create a controller, but I need both Get and Post requests in this Controller. What's my alternative?
I can do 2 lines like this
use Magento\Framework\App\Action\HttpGetActionInterface;
...
0
votes
1
answer
97
views
Make action available only for admin
I added a button to admin order view which sends request to an url of an action controller (using ajax), and now I need to somehow make it available only for admin. What is the best solution for this ...
0
votes
1
answer
3k
views
How to use ActionInterface insted of Deprecated Action class
I start learning magneto 2. I give it a try with Max Pronko's videos. Figure out some of the codes that are outdated, deprecated.
Here is my controller. Any suggestion on how to use ActionInterface ...
0
votes
1
answer
30
views
Actions dropdown too far right in Admin Listing
I've managed to add a second action to the actions column in the admin product listing. It works fine until I add another column to the display. The dropdown menu doesn't "follow" the ...
0
votes
0
answers
109
views
After deleting the module I'am getting "class does not exist" - magento2.3
I had created the dropdown action in the admin panel in the customer grid after that I had deleted the module but the view all customer page is getting an error in the admin panel as the class does ...
0
votes
1
answer
369
views
Magento 2 Custom Admin Sub Menu Redirects to White Blank Page!
I created a Module and I am getting this 404 page error after I hit the submenu link.
Here is the code. I can not figure out what is wrong.
acl.xml
<?xml version="1.0"?>
<!--
/**
*...
1
vote
1
answer
26
views
are the two codes same?
I'm starting to learn Magento 2 and I read some instructions to create Controller.
There are the index.php. on Magento 2 _ development cookbook and another on website.
/** @var \Magento\Framework\View\...
0
votes
0
answers
30
views
cannot create new action
I want to create new action (like 'webrequest/index/search') on existed module. I created following https://www.mageplaza.com/magento-2-module-development/
But when I run http:///webrequest/index/...
0
votes
1
answer
1k
views
How create and download excel file in magento 2.3
I need to create excel file at front-end and need to download bu there is no any reference please help with some solution.
1
vote
3
answers
654
views
Magento 2 - Custom Grid Action 404 error Add Action Throws 404 Error
i Develop Simple Crude Operation Module That Throws 404
etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1
answer
1k
views
Action in admin grid magento 2 not showing
I'm having problem here. I found a similar problem with mine but the answer is not working on my code. this is the same issue with mine
Edit Action column is not showing in admin grid in magento 2
...
2
votes
3
answers
7k
views
Magento 2 admin menu action result Invalid security or form key. Please refresh the page. on click
I have succesfully added a new admin menu. But the problem is whenever i clicked the admin menu button, I got Invalid security or form key. Please refresh the page.
Here're some of my codes.
This is ...
3
votes
0
answers
1k
views
admin grid action with popup modal
<actionsColumn name="actions" class="Vendor\Module\Ui\Component\Listing\Column\SelectActions">
<argument name="data" xsi:type="array">
<item name="config" ...
4
votes
1
answer
775
views
Magento2 :How To Use Form Key In Frontend Grid Using Ui Component
When i try to perform massdelete action from frontend grid using uicomponent than it has throws invalid form key error.
Does anyone know how we can use form key in frontend grid ?
0
votes
2
answers
2k
views
Magento 2 cart rule conditions and action to exclude specific product using sku
I have added cart rule and its working properly, I need to exclude specific product from cart rule and others to go with cart rule.
EX: sku1 need to exclude from cart rule.
1.Only "sku1" in the ...
2
votes
1
answer
274
views
How to execute custom controller action for product in magento2?
I would like to write some custom code product actions in a controller is executed.
When I have click on the product than showing multiple brands and after that click on brand then show product ...
1
vote
6
answers
4k
views
Edit Action column is not showing in admin grid in magento 2
Why the edit option is not displaying in the action column. Kindly help me.
My Action.php code:
<?php
namespace AdminGrid\Grid\Ui\Component\Listing\Grid\Column;
use Magento\Framework\View\...
2
votes
1
answer
972
views
Issue with edit Option in Action column admin grid
While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.
This is my Ui_Component file (action section)
<actionsColumn name="...
2
votes
1
answer
171
views
How to create Delete function in My Order page
I want to add a new action in My Orders page that is Delete action
How can I do that? Can anyone help me with this function?
1
vote
1
answer
982
views
Magento 2 - Add Product Edit link grid action but it shows in the Grid total row
I add the product edit link in grid action by using following code
Path of my grid file: app\code\Vendor\Module\Block\Adminhtml\Abcreport\Grid.php
$this->addColumn('action', array(
...
1
vote
2
answers
373
views
How to remove the action of a menu.xml item?
I have a menu.xml like this:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu....
1
vote
2
answers
1k
views
How to give onclick event for admin grid action link
I have a custom admin grid for return items. For which I need to add a popup to add a comment for every action below
I have written a js function for the modal popup. But I am unable to trigger ...
0
votes
1
answer
293
views
Magento2 : How to add button in admin custom module page?
I want to add one button here
how I can add code??
and how to add action controller
any idea ??
i already tried this answer(https://magento.stackexchange.com/a/212656/73525) but showing
error
...
3
votes
3
answers
1k
views
Magento2 : admin grid action column position deviation
When I select multiple columns, the action is in the wrong position
0
votes
0
answers
50
views
Custom action won't work?
My Customized controller seems not work. Added new method which suppose to update some values in table, here is my method:
public function reorderAction()
{
Mage::log('=> test',true,'...
1
vote
1
answer
823
views
Magento how to change action url of contact page
I add contact form in CMS page using this code -
<form class="form contact"
action="<?= $block->escapeUrl($block->getFormAction()) ?>"
id="contact-form"
method="post"
data-...
0
votes
1
answer
4k
views
Admin grid view action magento 2
I have created admin grit using ui component. I'm trying to implement grid actions.the grid lists out my form details. how add view action to the grid
app/code/Dyode/Pricebeat/Controller/Adminhtml/...
1
vote
1
answer
68
views
On order page in action tab want to delete button
In the Sales>Order page on the right side, there is the drop-down option for Actions. In that actions tab, there is the delete option and I want to hide this option from that page. Anyone know how to ...
0
votes
1
answer
140
views
magento 2 - Actions column link to external URL such as google.co.uk?
I have the below code for a Action column option:
$item[$name]['view'] = [
'href' => 'www.google.co.uk',
'target' => '_blank'
),
'label' => __('View')
];
What I'm trying to ...
4
votes
2
answers
2k
views
Add new action to existing module, routing
I am trying to add a new action to the existing module Magento_Customer.
My module has the following namespace Custom_AccountReferral
I need to add a new action customer/account/referral/
I have ...
1
vote
0
answers
158
views
How to create custom button in the admin panel form?
I want to create custom button besides Update Quantity with an custom action where when you click on it, it makes the Quantity to refund column as zero on credit memo page. How can we create that? ...
4
votes
1
answer
819
views
How to use _redirect() method in Magento 2 model file
Magento\Framework\App\Action
Redirect method is defined in Magento controller interface
/**
* @var \Magento\Framework\App\Response\RedirectInterface
*/
protected $_redirect;
So i am aware about ...
1
vote
3
answers
1k
views
Multiple url name and field addcolumn action
I have this code:
$grid->addColumn('action',array(
'header' => $this->__('Action'),
'type' => 'action',
'action' => array(
...
1
vote
3
answers
4k
views
Magento 2. Grid Action column link open in new window
I've successfully created an admin grid using ui components.
I've successfully added an actions column with a link.
The link works but I want it to open in a new window or tab.
excerpt from ...
1
vote
1
answer
973
views
Mage2 - Custom Grid Action 404 error
I have create a custom admin grid for my blog module but "Add New Post" get a 404 page
etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1
answer
115
views
Missing the Queue Newsletter option
I'm missing the Queue Newsletter option in the action dropdown on the Newsletter queue page. I can't find any explanation on the net?
1
vote
2
answers
3k
views
How to call a controller action inside other Controller in Magento 2.2?
I have a form with text fields and one image file . I want to upload the image and next save the form information in the database.
I have two actions : Create and UploadImage.
I want to call the ...
0
votes
1
answer
1k
views
Call front end controller action in my observer
How can I call my custom front-end controller action in my Observer function?
Is dispatch function worked?
<?php
....
public function salesOrderSaveAfter(Varien_Event_Observer $observer)
...
0
votes
0
answers
17
views
Assign a template from a place other than local.xml
I'm creating a custom page for some categories, I'm filtering the different blocks that I need to use in the catalog/category/view.phtml, but in some categories I wanna use a template with 1 column, ...
1
vote
1
answer
1k
views
Admin custom page form action not working
I have create custom page in admin. Here am trying to save the some data to database.
I have doubt in form action this my code
.phtml
<form action="<?php echo Mage::helper("adminhtml")->...
0
votes
0
answers
279
views
Trigger custom js script by using Magento observer
I need to trigger some custom js script in Magento for following actions,
1) customer account creation (customer_register_success)
2) Add to cart action (checkout_cart_product_add_after)
3) Remove ...
1
vote
1
answer
1k
views
Custom action logging in Magento 2 EE
I'm trying to find out how to add custom event logging in the Magento 2 admin to log actions taken by our employees.
One of the reasons we've upgraded to the Enterprise edition is the addition of ...
0
votes
1
answer
70
views
Custom customer area tab not showing as current due to no controller name
I have set a new page in the customer area with link that links to my new controller with below code:
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-...
0
votes
1
answer
46
views
Admin Grid Erratic Edit Form Behavior
My custom module uses an Admin Grid to display my model. I have added a link to my edit method with a button as follows:
$this->addColumn('action',
array(
'header' => 'Action',
...