The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [action]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
68 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
27 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
45 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 ...
0
votes
1answer
65 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
98 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
77 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
444 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
67 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
144 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
184 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
246 views

Magento2 : admin grid action column position deviation

When I select multiple columns, the action is in the wrong position
0
votes
0answers
34 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
126 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
1k 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
51 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
56 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
804 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
74 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
241 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
538 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
1k 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
423 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
72 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
1k 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
690 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, ...
1
vote
1answer
792 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
174 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
413 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
59 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
42 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
100 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
140 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
365 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
310 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
282 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
205 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
512 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
105 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
473 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
369 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 ...
4
votes
3answers
4k 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
4k 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
2
votes
1answer
790 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 ...
5
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 ...