Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [action]

The tag has no usage guidance.

1
vote
1answer
37 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
48 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
73 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
85 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
101 views

Magento2 : admin grid action column position deviation

When I select multiple columns, the action is in the wrong position
0
votes
0answers
28 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
76 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
902 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
46 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
45 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
578 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
54 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? ...
3
votes
1answer
155 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
295 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
874 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 ...
0
votes
1answer
337 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
63 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
895 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
543 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
16 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, ...
2
votes
1answer
652 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
152 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
354 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
52 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
40 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
88 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
137 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
334 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
285 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
226 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 : ...
3
votes
2answers
935 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
183 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
452 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
87 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="...
0
votes
1answer
402 views

Add a button in fornt of each row that send email to the a column email value

I have a form in front end that save vale in database and shown in the admin grid. I have an action button in front of each row so click of this button i want to get the rest of columns value. I have ...
0
votes
2answers
299 views

Magento2 - how to know when what parameter i have to pass in controller - _construct function

i was reading a book magento2 tutorial. When learning how to create module. 2 augments was receiving in _construct function of controller. Actually i am talking about this 2 \Magento\Framework\App\...
3
votes
1answer
2k views

Send Email and Save Data to database table with custom form

I have created the module with a form in front end on submit it send email and its working fine, now i also want to save the current form data to a Database table and keep the email functionality too ...
3
votes
3answers
3k views

Magento 2: Admin Action Logging Not able to Found

I'm using Magento 2 Comminity Edition Version 2.1.2. Need to configure Admin Action Logging. https://www.mageplaza.com/kb/how-to-configure-action-log-magento-2.html Not able to found.
1
vote
2answers
1k views

Form Submission not loading correct url

UPDATED-3 I have added a new page to front end, as you can see Adding new page to Front end, by fixing some issues, it is working now. but the issue I am facing now is in my from <div id="...
5
votes
1answer
3k views

What are the Dispatch/Execute() functions and how do they work?

I would like an explanation of the dispatch and execute functions, the differences between them, when they are/should be used and how. Please limit your answer to Magento 2
3
votes
1answer
685 views

How are pages such as customer account login protected?

I'm looking through controllers, routes, sections, observers... and I can't find the method for protecting a page from non-logged in customers. How is this done officially? I may have found an ...
6
votes
2answers
4k views

Change block's template in layout XML

How to change block's template in layout XML? I tried the solution proposed in this thread: <referenceBlock name="copyright"> <arguments> <argument name="template" xsi:type=...
0
votes
3answers
2k views

Easiest way to find Which module and layout file assigns a content block to a page?

After I found out a link or image after inspect element and changing it's css. I want to find the page and layout block to edit it's action etc, is there anyway to do it? Since, I'm getting hard ...
-1
votes
2answers
1k views

Magento 2: get controller, module, action name in template file? [duplicate]

How can I retrieve controller, module and action name within a template?
6
votes
3answers
1k views

Custom module dynamic action controller

Each controller I need to define how many action can be like saleAction() , productAction() something else. But I want to make a action who receive all action like ......Action() It's receive all ...
17
votes
5answers
23k views

Magento 2: How to get controller, module, action and router name?

Magento 2: How to get controller, module, action and router name?
0
votes
1answer
470 views

Call to a member function getTemplate() on boolean in

After activate cache I got this error in controller: Fatal error: Call to a member function getBlock() on string Below is my controller action code: public function loginAction() { if ($this->...
12
votes
5answers
7k views

Why can't I inject the ProductRepositoryInterface in Magento 2?

I have a controller action into which I would like to inject the product-repository namespace Nosto\Tagging\Controller\Export; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Store\...
0
votes
3answers
3k views

Magento 2 how to get Full Action name in controller action?

My controller working but getFullActionName() not called My controller path: Magento20/app/code/Test/Module1/Controller/Index/Index <?php namespace Test\Module1\Controller\Index; class Index ...