Questions tagged [get]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 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
20 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
36 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
160 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
40 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 ...