Questions tagged [action]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 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
1answer
18 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
0answers
23 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
1answer
41 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
3answers
62 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
0answers
25 views

How to apply Custom JS on action button in UI component Admin Grid Magento 2?

I have a custom Action column in UI component Grid in magento admin. Now I want to hide it on click by jQuery or JavaScript. As the field is created in Knockout JS, I am unable to apply custom jQuery. ...
0
votes
1answer
59 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 ...
1
vote
2answers
535 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
0answers
204 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
1answer
297 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
1answer
289 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
1answer
63 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
3answers
1k 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\...
1
vote
1answer
352 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
1answer
98 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
1answer
650 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
2answers
117 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
2answers
405 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
0answers
231 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
2answers
482 views

Magento2 : admin grid action column position deviation

When I select multiple columns, the action is in the wrong position
0
votes
0answers
37 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
1answer
330 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
1answer
2k 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
1answer
58 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
1answer
69 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
2answers
1k 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
0answers
81 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? ...
2
votes
1answer
370 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
3answers
863 views

Multiple url name and field addcolumn action

I have this code: $grid->addColumn('action',array( 'header' => $this->__('Action'), 'type' => 'action', 'action' => array( ...
0
votes
2answers
2k 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
1answer
623 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
1answer
97 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?
0
votes
2answers
2k 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
1answer
830 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
0answers
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
1answer
990 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
0answers
195 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
1answer
620 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
1answer
67 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
1answer
45 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', ...
0
votes
2answers
123 views

Order of processing actions in local.xml

This is an extract from my local.xml: <reference name="head"> <action method="addLinkRel"> <rel>stylesheet</rel> <href>//fonts.googleapis.com/css?...
4
votes
2answers
146 views

Is the column `Action` very important?

Is the column Action very important to being displayed in admin grids? It is actually doing exactly the same thing as "click on selected row" a'm I right ? So if I hide it will it affect anything ? ...
1
vote
0answers
390 views

magento2 Mass Action to Custom Page in Admin

I have added a custom option to the magento2 admin order action-dropdown in view/adminhtml/ui_component/sales_order_grid.xml. Then I created a custom method Controller/Adminhtml/Order/MassDoSomething....
0
votes
1answer
358 views

How to add more actions to a column in Magento grid?

In Magento 1.9 I add a column to Sales Grid using an observer. I want to show more actions instead only one action. With my code, in my column I see a select box, with the two actions. Instead I want ...
0
votes
1answer
324 views

Output profiler manually

Unfortunately, the profiler is not outputting data on my own controller actions, but those (including how magento comes to execute this action) I would like to profile. Is there a code I can run in ...
0
votes
1answer
2k views

controller action name of module is displaying in frontend

I am trying to find controller action of module for below Observer code, so that i can see those action names in log file : called_action_names.log , its displaying those names in log files. issue : ...
2
votes
2answers
1k views

Redirect Form Action to Controller (404 error on form submit)

I'm new to Magento. Need to create an extension which will enable to add comments to products on 'product view' pages. I created a new tab next to "descriptions" and "reviews" and added the form, but ...
1
vote
2answers
235 views

Magento getAction() not work on 1.7.0.2

Hello is there any alternative condition for below condition. I'm using Magento 1.7.0.2. $action = Mage::app()->getFrontController()->getAction(); if ($action->getFullActionName() == '...
0
votes
1answer
673 views

Magento prevent initialization of user session at ActionController

I want to prevent that Magento creates a session-file (eg sess_r8mgn8n6oep1roajrimu5ako83) under var/session when my nouserAction() gets called. So far I tried to set the FLAG_NO_START_SESSION-flag, ...
0
votes
1answer
147 views

How to add an admin internal action to a page link

I'm new to Magento, but I've set up some controllers and phtml files that are working. However, I have a phtml file containing a link: <i>Do you already have an account?</i> <a href="...