Questions tagged [querystring]
The querystring tag has no usage guidance.
26 questions
1
vote
1
answer
98
views
Magento 2 Pagination Urls changing from ?p= to &p=
For some strange reason, despite not running any recent updates, our pagination links have broken on all categories.
So they are occuring as &p=2 rather than ?p=2. The link still works if you ...
0
votes
1
answer
256
views
Treating "integer" data as "string" in the "entity_id" field of customer
I'm facing an intriguing issue in Magento 2, and I would like to know if anyone has come across this or has any relevant information about it. In the Magento 2 database schema, the "entity_id&...
0
votes
0
answers
732
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
&...
1
vote
1
answer
1k
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 ...
3
votes
2
answers
7k
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<...
1
vote
1
answer
435
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 ...
0
votes
1
answer
33
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=...
1
vote
1
answer
556
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)
->...
1
vote
1
answer
479
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 ...
0
votes
1
answer
388
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/...
0
votes
2
answers
1k
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 ...
1
vote
1
answer
60
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
2
votes
0
answers
563
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', ...
2
votes
2
answers
332
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 ...
0
votes
2
answers
212
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 ?
2
votes
1
answer
8k
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 $...
2
votes
1
answer
241
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 ...
0
votes
1
answer
350
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/...
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 ...
0
votes
1
answer
626
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?
?...
2
votes
0
answers
152
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 ...
0
votes
1
answer
745
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?...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
1k
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 ...
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 ...
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/...