Questions tagged [id]

The tag has no usage guidance.

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

magento 2.4 programmatically create new product with custom id

the usual procedure to create a new product via code is to call the product factory, set the new data, then save using the repository: $data = [ 'id' => $id, 'sku' => $sku, 'type' => \...
user avatar
  • 129
0 votes
1 answer
71 views

Pass Simple product id along with the swatch options attribute in swatch renderer .js magento 2.4

We get swatch options by swatch renderer .js file. I want to pass the product id of the simple product along with the swatch option. Please see attached screenshot. I want to pass a simple product id ...
user avatar
0 votes
3 answers
50 views

Magento 2 How change ID for order?

I have order with ID = 00000188 UPDATE `sales_sequence_profile` SET `prefix` = '9' WHERE `sales_sequence_profile`.`profile_id` = 1; And now my order ID = 900000188 But I want change to this format ...
user avatar
0 votes
1 answer
51 views

Order Id and order View link showing different order id

[enter link description here][1]In magento 2.3 multivendor marketplace When i am seeing my sales order from admin panel there i found order id which showing on Grid and order view link where order id ...
user avatar
0 votes
1 answer
90 views

get product Id using product SKU

I am trying to get the product Id but below are given the conditions through which I want to get Id of the product. I have SKU of the product. but using that sku I want to get Id of that product. It ...
user avatar
0 votes
3 answers
102 views

(Magento\Customer\Model\Customer\Interceptor) with the same ID "16" already exists. Error keeps showing in Health Monitor Suite

(Magento\Customer\Model\Customer\Interceptor) with the same ID "16" already exists. Error keeps showing in Health Monitor Suite.
user avatar
1 vote
0 answers
176 views

How to get product custom attribute by using sku or ID in Magento 2?

I have created a custom attribute for product in Magento 2. But how to get that value by sku or id in Magento 2 ? I have got the product id by $product = $this->productRepository->get($...
user avatar
  • 526
0 votes
0 answers
39 views

Change IDs and Change Order?

I'm working with 2.3.3 and I can't figure out how to change the order of items. We have a "downloads" page, which uses a "manage downloads" module (via the dashboard). When I add a ...
user avatar
  • 101
0 votes
2 answers
1k views

Magento 2: How to get customer id

Can any one tell me how can I get the customer id whose order is being created by admin in admin panel, in file /vendor/magento/module-sales/view/adminhtml/templates/order/create/form/account.phtml
user avatar
  • 700
0 votes
4 answers
1k views

How to get Magento 2 customer group ID

How to get Magento 2 customer group ID if user is logged in, in a .phtml file? I have already tried with: protected $_customerSession; public function __construct( \Magento\Customer\Model\...
user avatar
  • 1,427
0 votes
1 answer
76 views

What is the pageId for Customer/Account Page?

I want to change the landing page for a customer who has an active session to their customer/account page. I set up a conditional in aroundExecute() in app/code/MYNAME/MODULE/Plugin/CMS/Controller/...
user avatar
2 votes
0 answers
282 views

Magento2: Vat Validation on checkout page?

How can i validate VAT number on checkout page how it is validated on backend when setting store vat number?
user avatar
1 vote
2 answers
159 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\...
user avatar
  • 1,521
1 vote
2 answers
889 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.
user avatar
  • 55
0 votes
1 answer
230 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", ...
user avatar
0 votes
3 answers
693 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 * ...
user avatar
  • 1,372
3 votes
1 answer
345 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/...
user avatar
  • 1,372
1 vote
2 answers
2k 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
user avatar