Questions tagged [querystring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
392 views

Magento 2 - Pass Currency Param in URL

I want to add Currency parameter in Magento 2 page URL.Like www.example.com/product.html?currency=GBP Is there any way to do this? Need help.Thanks EDIT: Created a plugin but not working di.xml &...
user avatar
1 vote
1 answer
756 views

Magento 2 - Get search query without temporary or virtual table

I was trying to debug the search query. Temporarily I changed the _getProductCollection method in vendor/magento/module-catalog-search/Block/Result.php . I notice the query string contains some ...
user avatar
2 votes
2 answers
4k views

Magento2 : How To Get Parameters from URL In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<...
user avatar
1 vote
1 answer
126 views

Append extra param for my Magento 2 entire site dynamically

my requirement is like one magento site with having some query params. By starting website with www.abc.com/?id=1-2-3 like this i want carry this query param my entire site can any one how can achieve ...
user avatar
0 votes
1 answer
26 views

get querystring variables to display on static page

How to get querystring information and display on a landingpage? This is a link created on another website with variables to pass to magento2.3.1 website. www.mymagentowebsite.com/staticpage.html?w=...
user avatar
  • 142
1 vote
1 answer
140 views

Find duplicates in many columns query builder [closed]

I have this code to find duplicates, but i compare All columns in same row, also it returns only one row $groupBy = explode(',',$request['fields']); $duplicates = DB::table($module) ->...
user avatar
1 vote
1 answer
245 views

Magento 2 add query string to url when redirect to 404 page

Magento 2 custom module i am trying to add query param https://test.com/index?id=L_FRR3039-ODKLWG-GP4QPY if i give above format getting 404 page not found https://test.com/index?id=L_FRR3039 it ...
user avatar
0 votes
1 answer
161 views

Magento 2 custom module shortened url with query string goes 404

I have a custom controller page : http://dev.test/myfrontend/ The above works fine. also the bellow one works http://dev.test/myfrontend/index/index/ Now if I add query string: http://dev.test/...
user avatar
0 votes
2 answers
610 views

Magento2, How to pass product data as query string in Url using JSON template? Custom Module

I am trying to get product name, product SKU, Quantity in Url such that when I write 1 in Url 1-50 products should display, when writing 2 as page number 51-100 products should display. And data goes ...
user avatar
  • 1,521
1 vote
1 answer
57 views

Magento 1.9 : I have a very strange Magento problem

Error : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'i1115580_mg3.sales_flat_shipment_track' doesn't exist Query: SELECT track_number FROM sales_flat_shipment_track
user avatar
2 votes
0 answers
423 views

What is the use of load() method in collection?

CASE productCollectionFactory load function gives data in query but not in object $collection = $this->_productCollectionFactory->create() ->addAttributeToFilter('status', ...
user avatar
  • 7,399
2 votes
2 answers
292 views

Setting my base_url to Secure

Setting my base_url to HTTPS drops the query string I set the base URL for my site to https://www.example.com, now when user comes to my site from a non secure URL (link) that has a query at the end ...
user avatar
0 votes
2 answers
127 views

How can I search by remove ' - ' from my SKU?

I have sku like this '1-83574148-0'. when I searched with keyword '1835741480' . It's no result . How can I search by remove ' - ' from my SKU ?
user avatar
2 votes
1 answer
7k views

Magento 1.9 - how to display Magento query as a SQL string?

It works beautifully if I'm trying to get collection but it won't for single product by SKU. for example: $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $_sku); echo $...
user avatar
  • 867
2 votes
1 answer
190 views

Getting the wrong chinese string in search query result!! Magento 1

I have a store in chinese language. When I search for any product it works fine. But when I sort the result page by sku, name or price it does not work. It seems that I've got the wrong url for ...
user avatar
0 votes
1 answer
311 views

Magento 2 how to pass query string to checkout js files

I'm using magento 2. I need to add some string query in the checkout all .js files. ex - http://127.0.0.1/Magento-CE-2.1.6/pub/static/version1498714113/frontend/Magento/luma/en_US/...
user avatar
  • 1,118
0 votes
1 answer
46 views

Cart Issue from calling custom code

I am creating an app for Magento 1.9.And during my process, i tried to add a product to the cart by the query like this (http://localhost/zara/rest/addtocart.php?prodid=4&qty=1).It's added on ...
user avatar
0 votes
1 answer
578 views

Magento query to sort products alphabetically

Does anyone know if there is a query string to sort products alphabetically within the product list ?product_list_order=position ?product_list_order=price The above works but the below doesn't? ?...
user avatar
  • 757
2 votes
0 answers
118 views

Query string to select configurable variation

I want to select the configurable variation on page load based on the query string parameter. I cannot find anything on google for this so I am guessing it is not core magento functionality. Does ...
user avatar
  • 139
0 votes
1 answer
693 views

Remove query strings from static resources

I am checking my website performance in gtmetrix and I found that Remove query strings from static resources's GRADE are just 34% because of some of image URL content parameters like Aigner.JPG?...
user avatar
1 vote
1 answer
1k views

How to limit the search result in Magento 2 with query string

How can I limit the search results in Magento 2 with query string, we have something like this to perform the search http://domain.com/catalogsearch/result/?q=search_term Is there any query string ...
user avatar
  • 2,184
1 vote
1 answer
732 views

What does the 's' parameter in the URL mean?

I am still fairly new to Magento's URL system. I do know that name value pairs are separated with slashes (though you can also pass a ? and then a=5&b=6&z=etc) What is the "s" meaning in the ...
user avatar
2 votes
0 answers
1k views

Magento + gclid + redirect is not working

I've just been on the phone with Adwords and they've told me my gclid url query string is not working properly. So I did some digging and found this stackexchange question / answer that really looks ...
user avatar
  • 392
1 vote
2 answers
1k views

Add to cart query string keeps going to product page

I'm using magento 1.9.1 and on a custom listing page I'm trying to add an add to basket form. This is supposed to add to the basket using a query string. <?php $formKey = Mage::getSingleton('core/...
user avatar
  • 2,154