Questions tagged [id]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
27 views

M2 | How to Get Logged in customer ID in Model class?

I need customer ID in Model class as I am creating custom API. I can get customer ID in Controller as well as in Block class by all below ways: Injecting in constructor \Magento\Customer\Model\...
1
vote
2answers
37 views

How to get customer ID Magento 2.3.2

After logged in Magento frontend. I need to get ID of user on which account I am currently logged in. Please help.
0
votes
1answer
26 views

How to retrieve manufacturer id?

How to retrieve manufacturer id? $api = new maRest("www.host.com/magento/"); $api->connect("user","xxxxxxx"); $manufacturers = array( "option" => array( 'label' => "Sony", ...
0
votes
3answers
42 views

How do I get the current product id into wishlist.phtml in Magento2?

Here is My Block.php file app/code/Smartwave/Porto/Block/Catalog/Product/View/AddTo/Wishlist.php namespace Smartwave\Porto\Block\Catalog\Product\View\AddTo; /** * Product view wishlist block * ...
3
votes
1answer
62 views

Session value not set Properly in Logged users Magento 2.3

In my mobile number update module, logged user userId and mobilenumber set to .phtml hidden fields, but some times its not works properly ! please check my code app/code/{vendor}/{module}/Block/...
1
vote
2answers
54 views

Magento 2: How to pass custom params with url?

I want to pass custom params( product id and currency) with product page url dynamically. Example url: https://example.com/boys-5-piece-blue-suit-eric.html?id=123&currency=GBP Need help