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 [parameter]

The tag has no usage guidance.

0
votes
2answers
22 views

What's the logic of inherited constructor order parameters

I have this module class namespace VendorName\Module\Block\Magento\Framework\Pricing; use Magento\Framework\Pricing\Amount\AmountInterface; use Magento\Framework\Pricing\Price\PriceInterface; use ...
1
vote
2answers
120 views

Magento 2 - Controller with parameter

I want to create the controller which get the parameter like http://example.com/manufacturerpages/index/id/497 When I do this, It goes to 404 error plus I am also not able to get the id in ...
0
votes
1answer
26 views

How to create custom api with parameters in magento1?

How to create custom api with multiple parameters passed in the api call file in magento1. I have added the code in request call. But it is not working. Thanks in advance wsdl.xml file <?xml ...
3
votes
2answers
64 views

Magento 2 - Unable to Get Request Params in controller

I am trying to get input data in the controller but controller not getting url params. <?php namespace Crud\Crudatfrontend\Controller\Result; use Magento\Framework\App\Action\Context; use ...
0
votes
0answers
23 views

how to add tab link to current url in magento 2

i have tabs on my page with tab1 tab2 tab3 im working on adding tabs to current url I'm getting from get method to which tab going to see by option box like this input url ...
0
votes
1answer
128 views

Magento 1.9 - Mage->app()->getRequest()->getParam() not working

I am fetching the URL params as below. Mage::app()->getRequest()->getParam('test'); Debugging with echo before the above statement, it works fine. But placing echo after this statement return ...
2
votes
2answers
110 views

Magento 2 get product id from admin product edit page

I am creating a custom grid on the product edit page, for the grid collection I need to filter based on the product id, for that I am trying to get the product id from the URL using below code $this-&...
0
votes
3answers
137 views

how to pass a variable from one phtml to another?

I have two phtml which have its own unique block file. I need to pass variable from one phtml to another. PHTML 1 <?php $option_id = 20; ?> <a href="<?php echo $baseUrl ?>/...
3
votes
1answer
94 views

Do bound parameters get escaped using the Core/Resource model?

Consider the following example: $connection = Mage::getSingleton('core/resource')->getConnection('core_read'); $email_address = $_GET['email']; $sql = 'SELECT * FROM `foo` WHERE `email_address` = ...
0
votes
0answers
50 views

filter_url_params in magento 2 Ui component is not working properly anybody have solution

I want to show data according to id that is shown in my URL..... my URL is http://dev.magento.com/admin/customer/index/edit/id/1/key/06ae49324c0bb7e328bc5bd4bb75954fcc787d538a59cb97ce4e1809a1a17ff3/...
0
votes
1answer
25 views

Dynamically change template based on user type

We're about to move to Magento 2.3. Trying to understand whether a product page can display one of two actions based on the visitor/customer type. I have one product with two different customer types....
0
votes
0answers
157 views

How to get or append some extra query param to url

I have added some links in top. i want get query param from url and append in to every links in top dynamically like my links are = test1, test2, test3 My mail url is = https://apcd.com When ...
1
vote
1answer
303 views

Magento 2 pass multiple parameters in the admin grid action url

In Magento 2.2.5, I am sending the id in the url now, But, I want send multiple parameters in the admin grid action url. I created admin grid using layout Blocks. Not used ui component. How to ...
1
vote
1answer
1k views

magento 2 redirect url with parameters from controller

I am trying to redirect to a different controller from one controller . I also want to set an Url parameter along with the redirect. But this is throwing me an error Uncaught Error: Call to ...
2
votes
0answers
15 views

Parameter to give permissions to Role in order to modify customer information

I would like to have a parameter which if selected Yes, the dealers of the webpage aren't able to modify any customer information. If selected No, nothing happens and they can modify anything they ...
0
votes
0answers
42 views

Display color in the widget panel Magento 2

I need to create a custom widget, where the Content Manager will be able to select a color from a set of 6 hex colors. Because the names of the colors are in hex format, how can I display the color ...
0
votes
0answers
34 views

Changing the style of xml widget in Magento 2

Is it possible to change the css style of how the parameters are displayed in the xml widget?
0
votes
0answers
72 views

Magento 2 custom parameter type in the widget

How can I create a custom parameter type, and use it in my widget? Basically, I want to create a drop-down menu with a different background color for each option. Thank you 😊
0
votes
1answer
31 views

Which Magento 2 core function creates the url for the static folder files including css, js and images

I want to add a parameter at the end of the static content urls, but i am unable to find a global method where i can make a change and it starts reflecting on the all static content urls. My file and ...
3
votes
1answer
541 views

Pass variable from phtml to js

I am trying to pass variable to js but it is not working. My phtml code is like this- <script type="text/x-magento-init"> { ".open-modal-form": { "Vendor_Mod/js/modal-...
1
vote
1answer
361 views

Magento 2.2. Get error with ''@param string[] $types' in REST API

Using magento 2.2. I create rest api for edit address which need pass param in 'array of string' but i get an error: Doc: Magento Configure services as web APIs Used array of string for pass param ...
3
votes
0answers
620 views

How can I pass a URL parameter to admin grid data provider?

I have a custom admin grid, which lists only the orders that contain the product given as a URL parameter. My URL is of form https://www.example.com/admin/mymodule/orders/index/product_id/123/ I ...
0
votes
1answer
85 views

Magento 1.9 - Append current url with parameters

I want to add currency param with current url like www.example.com to www.example.com/?currency=USD Want to load website with param by default because default currency is USD. I found this ...
0
votes
3answers
600 views

How to call helper class in controller magento 2?

I have a helper class with parameter as shown below. I need this function to work on a specific controller. But returns this error. My helper Code below <?php namespace Rk\Wallet\Helper; class ...
0
votes
1answer
749 views

Magento remarketing tag

I have a magento remarketing tag but I can not configure it correctly. I have the following parameters: var google_tag_params = { ecomm_prodid: 'REPLACE_WITH_VALUE', ecomm_pagetype: '...
4
votes
1answer
48 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 ...
5
votes
1answer
1k views

Magento2 plugin around method different between callable and Closure paramters on param $proceed

I have checked magento2 ,There are two types of parameters can be send to around method \Closure $proceed example aroundSave(\Magento\Catalog\Model\Product $subject, \callable $proceed) ...
1
vote
1answer
272 views

How to send parameter to controller

I found this code below at AddressesPost.php for addresses.phtml. How can addresses.phtml send parameter continue or new_address so AddressesPost.php can getParam('continue') or getParam('new_address')...
2
votes
0answers
314 views

Magento 2: dataprovider getData() get called twice losing my requestdata

In magento 2 I created a grid through UI components. It gets populated with my dataprovide class getData method: public function getData() { $questionSetId = $this->request->getParam('...
6
votes
4answers
3k views

Get parameters from URL Magento 2

Assume I have a URL like this, http://mystore.com/cms/sales/order/view/order_id/286/ I want to get values of the order_id which is 286, Please help with some example or snippet in Magento 2.
3
votes
0answers
270 views

Magento 2 custom module friendly URL's

I have my url structured like so: "http://domain.com/post" where post is my module's main router url. Then for each post I have: http://domain.com/post/category/view/id/1. and my url rewrite is ...
8
votes
1answer
4k views

magento 2 api route with input parameter

I'm trying to create an api route with input parameters but I'm not getting the expected result. Here is my webapi.xml: <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
2k views

Magento 2 - How to handle POST request with many parameters in Rest API?

I'm confusing about the correct way to send parameter to POST request in Magento 2 API For example, now I need to send a request body like this: { "first_name":"test_first", "last_name":"...
1
vote
1answer
859 views

Magento URL-safe parameter

I want to transmit a token as URL-Parameter. Is it safe to just encrypt the token like in Version 1? Or needs the token to be encoded like in Version 2 because of unsafe characters? $token = Mage::...
0
votes
4answers
3k views

Extra parameters passed to parent construct

When I run setup:di:compile command in M2, I got this error in one of my modules. Extra parameters passed to parent construct: $context File name : edit.php Location : /app/code/Vendor/Module/...
1
vote
1answer
2k views

Magento2 - Impossible to get widget configuration

I'm developing a module with a widget. I make my own widget.xml following some differents guide in the net. But, I've configured the widget from the back-office and I can't retrieve the widget data. ...
1
vote
0answers
54 views

Magento URL parameters

Is there a way that I can hide URL parameters identifiers? from: domain.com/frontname/param1/x/param2/y/param3/z to: domain.com/frontname/x/y/z
0
votes
1answer
240 views

how to keep URL parameters for conversion?

We have Facebook users that come to our website, and we need to count their purchases as the number of conversions. for example, we have the following URL with parameters: http://domain.com/pdppage?...
3
votes
2answers
390 views

How can we setPost value in Magento2

In magento1 we are able to set Post value like following $this->getRequest()->setPost('super_attribute', null) So how can we set post in magento2?
1
vote
0answers
261 views

Is it possible to link to a bundled product with pre-selected options and quantity?

I have read that we could have pre-selected configuration by using # (has tag) followed by attribute id = value id, but how can we achieve the same for a bundled product? For example in the demo ...
0
votes
2answers
87 views

Get params from URI (edit admin grid form) exists but returns empty values [closed]

My URI when I click edit on any admin grid rows http://localhost/magento_1.11/index.php/admin/index/edit/entitiy_id/2/key/012d8de26b4b3f5718c3d5267cdd6c97dfba9f67ebc2c75774a632c4887d833c/ And in ...
2
votes
4answers
2k views

How to remove Duplicate parameter in URL?

In my custom module I have passed parameter in URL like this: <?php $currentUrl = Mage::helper('core/url')->getCurrentUrl(); ?> <a href="<?php echo $currentUrl .'?alpha='. $letter ;?&...
1
vote
0answers
855 views

Get Current URL, With Modified Parameters

Problem I'm trying to come up with a consistent way to get the current URL of the page, including parameters from both the key/value/key/value structure and the ?key=value&key=value structure. ...
5
votes
1answer
4k views

Is there a way to pass a coupon code as a URL parameter?

I would like to create URLs which activate a specific coupon. It could be as simple as passing the coupon code as a URL parameter. When a coupon is passed, I'd like it to automatically be populated ...
1
vote
1answer
8k views

Remove or manipulate parameters in controller

I am trying to remove a parameter under certain conditions when it is passed to my controller. The var_dump of the request contains all the parameters. The parameter I want to remove is called ...
1
vote
1answer
241 views

Magento Parameter not adopt when use mod_rewrite

first of all I have to say that this looks for me like a very complex problem. I just tried about 30 variants and solutions I found, none of them works perfect. I have a Magento 1.8.1.0. Community ...
0
votes
2answers
1k views

How do I send a parameter to a function from block?

This is my try: $this->addTab( $grup_name, array( 'label' => Mage::helper('netgroup_attributegrouping')->__($grup_name), 'title' => Mage::helper('...
0
votes
1answer
544 views

URL with parameter leeds to 404

I've created a module that has frontend page. I want to pass parameters to that page. When i enter http://mydomain.com/news - it shows me my page but when i cal http://mydomain.com/news/id/1 - it ...
0
votes
1answer
129 views

Get rid of ?frontend= parameter

CMS-Pages like imprint, terms, etc ... seem to have ?frontend=xxxxxxx GET-variable in URL. How can I stop Magento from adding this to the URL?