Questions tagged [querystring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
265 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 ...
2
votes
2answers
878 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<...
2
votes
1answer
151 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 ...
2
votes
1answer
4k 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
0answers
347 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
0answers
101 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 ...
2
votes
0answers
987 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
1answer
273 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 ...
1
vote
2answers
993 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/...
1
vote
1answer
170 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 ...
1
vote
1answer
32 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 ...
1
vote
1answer
68 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 ...
1
vote
1answer
974 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
1answer
45 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
1answer
51 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
0
votes
1answer
247 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
2answers
214 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 ...
0
votes
1answer
45 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
0answers
8 views

Pass URL Parameter to Order

In my Magento 2 store, I want to be able to pass a custom URL parameter source to my order, so that when the order is complete, we know what value (if any) was in the query string for the source key. ...
0
votes
0answers
21 views

Query string URL rewrite via .htaccess magento 1.9

I have created a CMS page having url key like brands.php, that cms page contains an phtml file as its content and when the page open its shows the list of all brands, When we click on any of the brand ...
0
votes
0answers
93 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 &...
0
votes
1answer
20 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=...
0
votes
1answer
25 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
2answers
85 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 ?
0
votes
1answer
542 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? ?...
0
votes
1answer
607 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?...