Questions tagged [get]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
41 views

Adding data to database from custom form

I'm able to fetch data from custom form but not able to put it in database table. Here I post details of model and controller SimpleMagento\Custom\Model\Name.php class Name extends \Magento\...
0
votes
0answers
9 views

Magento2 : How To Access Custom Parameter's of Admin Url in admin login page

this is my admin url : http://127.0.0.1/m2-test/index.php/admin?username=test and i want to access username value in admin login.phtml i have tried with $_GET["username"] but it will return nothing ...
0
votes
0answers
15 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
1answer
32 views

Magento 2 - Get current page type

I have a title.phtml which loads the page title for the pages in the webshop. What I need to do is detect whether it's a product page or something else... What is the best way yo do this? Regards,
0
votes
1answer
42 views

How to solve Post/Get Method use in postman with Magento controller?

I am using Magento controller URL with Postman. When I select Get Method in postman then it runs perfectly with execute method. But when I use the Post Method that time it breaks from the execute() ...
0
votes
2answers
57 views

Magento 2 : Exception #0 (InvalidArgumentException): Invalid return type

Exception Exception #0 (InvalidArgumentException): Invalid return type #0 /var/www/html/magento/folder/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() ...
2
votes
1answer
165 views

How to use function $_GET in Magento 2?

I have below code in phtml 1: <?php $itemid = $item->getItemId() ?> <a href="<?php echo $this->getUrl('history/customer/detail', ['item_id' =>$itemid]); ?>">...
2
votes
1answer
44 views

How get Image Url by product_id or other way

I am rendering sales_items rows in frontend Screenshot is: Can anyone please help me to find how get image path here from product id or any other solution. and set path in src tag ? My .phtml file ...