Questions tagged [request]
The request tag has no usage guidance.
31
questions
0
votes
0answers
29 views
Request parameters to filter SQL query using session
I want to filter the Coupon Usage table based on the request parameter passed in querystring.
http://localhost/magento2.4/admin/dev_grid/index/index/key/...
0
votes
0answers
9 views
Get query id from request in magento 2
This is the data i am getting
2021-02-05T10:14:33+00:00 INFO (6): actionPOST http://local.hm.com/graphql HTTP/1.1
Host: local.hm.com
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: node-...
0
votes
1answer
15 views
How do I capture GraphQL POST data?
I'm trying to debug an issue with a custom GraphQL module. I want to log the POST data that's being sent to it. I know it is being sent, because the response works OK for the most part. There's just a ...
0
votes
0answers
12 views
How to change billing address before they save?
On payment page i have form with new billing address, when i save this form magento first send data to V1/carts/mine/estimate-shipping-methods
But on this page i have telephone field which not exist ...
0
votes
1answer
54 views
Request Parameters with php 7.4 and magento 2.4.1
After updating from 2.3.5p2 to 2.4.1 and from php 7.1 to php 7.4 I have strange trouble with request parameters.
I see, that there are parameters set, when I var_dump
$parameters=$this->request->...
0
votes
1answer
157 views
Magento 2 Get CMS page page_id from url
I simply want to get the CMS page id from a random url.
So i have a page with the url "Foo/Bar", and I can get the page id for that page using :
$pageId = $this->_request->getParam('page_id', ...
0
votes
1answer
47 views
Disable URL redirection from catalog to product view in case of the error “The requested qty is not available” when adding too much products to cart
I can't figure where to find the code displaying "The requested qty is not available" and redirecting to the product URL when we add more product than the stock.
[I'm using Magento 2.3.3 and custom ...
-1
votes
2answers
57 views
How to retrieve post and get request values in Magento2?
I am creating Extention and I need to send posts and get requests. I want to fetch that variables values that are sent using get or post method.
0
votes
1answer
41 views
*Why save magento visitor happen only when POST/PUT request?
I was involved in development of some service integration with magento. I provided this service callback URL. In controller/action I am creating a customer and making it logged in. But then I noticed ...
0
votes
2answers
75 views
Magento 2.3: How To Get The Primary Key From URL…?
I'm very new to Magneto 2.3, I'm trying to get the primary key from URL, this is my code:
This is my import button, on click of this button, a function hit.
/app/code/EC/Customimport/view/adminhtml/...
3
votes
4answers
1k views
Magento 2.3.0 How to get request parameters in event observer?
I would like to get a request parameter in the observer file.
Below is the observer code.
etc/frontend/di.xml
<event name="review_save_before">
<observer name="set_customer_data" ...
1
vote
0answers
101 views
Magento 2 Issue with JavaScript and CSS Merge
I have checked my site for speed and it was requesting 258 requests.
I have merged all JavaScript and CSS files and again tested it but still 251 requests are there.
While in view page source I can'...
2
votes
1answer
49 views
Magento 2 Make GET Request url to rewrite acceptable
For example I have this url which makes get Request and renders block with specific collection by Id.
mainpage.com/products?some_category=99
Since Magento 2 Url Rewrites only accept /params/...
2
votes
2answers
609 views
Magento2 filter not working for request parameter for order grid
I want to filter Sales Order query based on request parameter passed in querystring like following:
http://127.0.0.1/website/admin/sales/order/index/key/...
0
votes
3answers
2k views
Calling bin/magento return an exception
I have a Magento 2.3.0 website that works correctly but suddenly (maybe after a products import, but also other various activities were done) when I try to call ANY (reindex, deploy...) command of "...
0
votes
1answer
86 views
request sql bad with invalid quote
We are trying to migrate our code from magento 1.7 to 1.9 and I have an issue when i build a request with magento 1.9.
I wrote this for a column on the order grid :
$this->addColumn('id_po', ...
1
vote
0answers
495 views
WebAPI gives error: Class “array” does not exist
I want to send a list of statuses to my API. I send an array because it may be a lot of statuses. So my JSON looks like:
{
"statuses":[
"status_ok",
"status_failed",
"...
0
votes
2answers
1k views
Magento 2.2.4 : post data in url
I want to get parameters from my page to the second. My values are submitted in the first page, but I can't achieve to get data on my second page (where I want to display theses data). I'm trying this ...
0
votes
1answer
225 views
Magento 2: Where does the _request- parameter> getParam ( 'sort')?
I have a problem with an extension and it is that it returns the SAP data sorted in ascending order and I need them in descending order.
The list is obtained from a helper that passes as a parameter ...
1
vote
2answers
42 views
Parameters through url
I'm trying go get parameters from my submitted form (my form is devided in two parts). When I submit my first form, my page go to the second part (on the right view). But I'm stuck here. I have that :
...
8
votes
3answers
7k views
How to set Post Value of Request
I have already know how to get the POST value of Request.
I used to use this code below to get the value:
$this->getRequest()->getPostValue();
But how can I set the value of POST. Something ...
4
votes
1answer
57 views
Page not found while trying access controller with parameter in url
i created a simple controller like this:
namespace Namespace\Module\Controller\Confirm;
class Index extends \Magento\Framework\App\Action\Action
{
protected $resultPageFactory;
public ...
7
votes
3answers
4k views
How to send data from html template to controller magento 2
My controller is calling but how to send data and retrieve data?
My template:
<!-- ko -->
<tr class="totals fee excl">
<th class="mark" colspan="1" scope="row" data-bind="text: ...
0
votes
1answer
269 views
Seeing duplicate cookie response headers
When looking at the request headers for my Magento 1 site I can see it has 2 cookie request headers.
Set-Cookie:frontend=3dt1aedashghghg1vr9ua0tghms7; expires=Fri, 20-Oct-2017 07:52:20 GMT; Max-Age=...
0
votes
2answers
406 views
Fix magento 1.9 installation error “Invalid backend name []”
When we install Magento 1.9 it shows: There has been an error processing your request Invalid backend name. How do i fix this?
1
vote
0answers
224 views
Saving form data in configuration observer in Magento 2
I have a field in store configuration that has a select per store that contains a language setting.
I've also written an observer that fires when this section of store configuration is saved. However ...
0
votes
1answer
529 views
Magento Ajax request - again
My AjaxController
class AMBit_Product_AjaxController extends Mage_Core_Controller_Front_Action{
public function getdataAction(){
echo 'PRODUCTS IN THIS CATEGORY';
...
2
votes
1answer
3k views
Magento 2 : How to get request and send response in custom REST API?
I have created a custom API i need to know how can i get request and response using this custom API ?
I use this link to create custom API : http://inchoo.net/magento/api-magento/magento-2-custom-api/...
2
votes
1answer
278 views
How can i bulk ADD URL Rewrite Management
How can i add bulk URL Rewrite Management, i need to migrate new website, but i have already promoted my old site products, so, after i change new site, old site url return blank page, or empty page. ...
-1
votes
2answers
115 views
How can i get Details from Database and Display to my Customized Page
I need to get details from database, **Actually am installed extension form builder**, i get details from that, and get that details from database and display into my customized page, like name, user ...
6
votes
0answers
134 views
How to send custom request to authorize with Direct Post in Magento2?
In magento2 - I want to capture some amount other than order manually from authorise. How to create manually request? And How to sent request to authorise with Direct Post method.