Questions tagged [get]

The tag has no usage guidance.

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

Tax Percent function in magento 2

Tax Percent function in magento 2 . tax Percent data get in magento 2. $_order->getTaxAmount() . I try this function but that's not happening.
0 votes
1 answer
30 views

Create a REST API to get the data from the custom table in magento 2

I create a database table 'computergames' . Now the table display in postman by get request
1 vote
0 answers
17 views

Showing previous $_GET results when pressing back

I have a table controlled by a dropdown box. My dropdown for example has all animals, lion, crocodile, and wolf. When I press lion results show fine, I then click crocodile and again results are fine ...
1 vote
1 answer
688 views

How i can pass js variable to php file?

i need to pass a variable from file.js to my model.php with rest API in particular get method
  • 13
0 votes
2 answers
87 views

Magento 2 get Stock Item of virtual Product

1 exception(s): Exception #0 (Magento\Framework\Exception\NoSuchEntityException): The stock item with the "2056" ID wasn't found. Verify the ID and try again. -----In block File--------------...
0 votes
1 answer
28 views

Admin input value is not accessible after adding the order increment ID while executing the command

I created a custom CLI command where I have to delete the order Items using the Order Increment ID, Item SKU. I used the ask() method after executing the command php bin/magento webkul:orderDelete ...
0 votes
2 answers
24 views

Get Customer Data By update At Field

we try to get customer data By (Updated_At Field), rest/V1/customers/search?&searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][value]=...
0 votes
1 answer
34 views

Magento 2 : How to get hreflang from address url?

When i have the address: <link rel = "alternate" hreflang = "de" href = "..." />. I would like to take the hreflang value from this address, meaning "de"....
  • 3
0 votes
1 answer
382 views

Magento 2 Rest API response "There is no mediagalleryentryconverter for given type". How fix it?

I need to get All Products using Magento 2 Rest API, but on some products I get response: "There is no mediagalleryentryconverter for given type". How can I fix it? I use POSTMAN for testing....
0 votes
2 answers
1k views

Magento 2: How get All products (2000 products) using Rest API?

I use Magento2. I have 2000 products. I try to get all products, using Rest API. My request str.: GET https:///rest/default/V1/products?searchCriteria[pageSize]=1000. But this is not enough because ...
0 votes
2 answers
51 views

get() in CustomerRepository doesn't receive $customer from retrieveByEmail() for password reset

I've got the weirdest problem I've ever come across, I'm not brilliant with class based systems so maybe its not magento related... So the basics are that the reset password function isn't working. I'...
  • 1
0 votes
0 answers
29 views

"error": [{ "code": 404, "message": "Request does not match any route."}] error magento1.9

for custom get api request i am getting "Request does not match any route." error api.xml <route_entity> <route>/servicebms/outgoingcall/:k_number/:agent_number/:...
0 votes
1 answer
68 views

Phishing Attack - Magento 1.9 - Too many Get method request for customer login page - Site Down

The IP : 167.172.230.190 hit my customer login page too many hits makes my server down Screenshot : https://snipboard.io/kde4fw.jpg Notes : Custom login page captcha enabled, added that IP in IP ...
  • 105
0 votes
1 answer
27 views

How To Get Product Quantity?

I have tried using this code, but it doesn't return the product's quantity private $registry; public function __construct( Template\Context $context, Registry $registry, array $data = []...
1 vote
1 answer
395 views

Magento 2: How to use form key parameter in GET request?

I'm using magento 2.3.4 and i tried to generate a delete cart item like this in phtml file: <?php $formKey = $this->helper('Vendore\Module\Helper\Data')->getFormKey() ?> <a ...
  • 79
0 votes
2 answers
58 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\...
1 vote
0 answers
64 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
1 answer
80 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 ...
  • 3,818
0 votes
1 answer
1k 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,
  • 603
0 votes
1 answer
539 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
2 answers
848 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() ...
  • 1,367
3 votes
1 answer
276 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
1 answer
169 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 ...
  • 1,535