Questions tagged [sku]

Question related to Magento products' SKUs. It is an identification code that helps track the item for inventory.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

Magento 2 - Adding part number to Invoice and sales > orders > view page

I am trying to added part numbers into the invoice and order view pages. SKU numbers are pretty useless when picking stock when its all part numbers. I have not been able to find someone who has been ...
user avatar
  • 1
1 vote
1 answer
89 views

Magento 2 : Create comma seperated sku filter for custom product grid

I am using Magento ver. 2.4.4. I have a custom grid, displaying the below fields data. item_id, rma_id ,product_sku ,order_item_id ,reason_id resolution_id ,condition_id. I want to create a ...
user avatar
0 votes
0 answers
48 views

Magento 2 - Fulltext search Product SKU / Product Name in Sales Order Grid

I'm a newbie, new to magento 2. Please guide me here: I want to search fulltext product sku and product id in grid order. I have now added the product sku and product id to the grid, the filter is ...
user avatar
0 votes
1 answer
10 views

How do i create a stock level report in magento?

I need to get a stock report from Magento. what do we have in stock? what SKUs - what Qty. how do I do this?
user avatar
0 votes
1 answer
13 views

Forced rename update function (sku number input > url key input)

How do I code a function that force sku input data into url-key input data everytime I update a simple product or groupe product? This code work only on product creation but I want it to work on ...
user avatar
  • 3
0 votes
1 answer
91 views

How can we resolve the sales order filter with sku gaves "Something went wrong with processing for sku colum....." in Mageto 2

The Sales Order Grid Not Working And It's Gives this kind of error when search by sku "Something went wrong with processing the default view and we have restored the filter to its original state....
user avatar
0 votes
1 answer
177 views

Following products with requested skus were not found:

I'm using Magento 2.4.3 and have sold an item, but when I go to ship it, I get this error "Following products with requested skus were not found: Prod-P1234". The product exists with that ...
user avatar
  • 444
0 votes
1 answer
23 views

Magento2 - 2 catalogs with the same SKU products

Is it possible to create 2 independent catalogs that will have products with the same SKU? Store1 - catalog1 (SKU1, SKU2, SKU3) Store2 - catalog2 (SKU1, SKU2, SKU3) Or it's never going to work? SKU ...
user avatar
  • 1
0 votes
1 answer
40 views

Magento 2 Get Product By First 6 digit SKU

As stated in the title, I want to be able to get Product by only the first 6 digit SKU no Full SKU No : 1350022021000 First 6 Digit SKU : 135002 I have done the code below to test if able to get the ...
user avatar
0 votes
1 answer
40 views

How to get product list by multiple categories with multiple SKUs in Magento 2.3.5

I'm trying to get product collection by Multiple Category Ids with Multiple SKUs. The result has been coming wrong. I can't understand where I'm wrong. The code is given below <?php namespace ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
0 votes
1 answer
41 views

Product is not showing when I enter SKU in the URL bar (www.mysite.com/sku)

I have enabled the Amasty_ElasticSearch module, when I put SKU in the site URL, It shows an error 404 message. Like this : (www.mysite.com/sku). But I have another Site where It brings me the product ...
user avatar
0 votes
0 answers
63 views

How change Sku , Attribute , and title name dynamically in product page for magento 2.4.1?

I'm on the product page of Magento 2.4.1 I try more guides but everyone says this guide does not work for 2.4 I'm new on Magento no have good experience someone can help me? Thanks
user avatar
1 vote
1 answer
173 views

Get SKU of simple product after selecting options of configurable product

How can I get the SKU of a simple product on a configurable product, after options are selected? I tried this solution but I get various errors and issues which make me think it is outdated. Magento 2 ...
user avatar
  • 13
0 votes
0 answers
20 views

Magento 2.3 - Update Bulk Product SKU using CSV - old orders, old invoices, old shipments

Could someone can help me? I want to update 6000 sku's from 12 digits to 13 digits. I tried the below script which is working fine but only changing the current sku's digits, not in the old orders, ...
user avatar
0 votes
2 answers
27 views

How do I remove a product page SKU in Magennto2

how to remove sku on product page in magento2
user avatar
  • 51
0 votes
1 answer
32 views

Overriding the addtocart button for third-party api

I am new to Magento2 and currently working on a project where some products can be custom-designed via a separate API. So when the add-to-cart button is clicked, instead of adding the product to the ...
user avatar
  • 13
1 vote
0 answers
29 views

Is it possible to export single product by sku?

I want to export a single product using SKU and I'm wondering if it is possible at all. If anyone has done, please let me know
user avatar
  • 11
0 votes
0 answers
27 views

How to change SKUs en masse in Magento 2?

Migration from Magento 1.9.4 --> Magento 2.4.2-p1 I ran the settings and data migration and migrated product photos from Magento 1.9.4 to Magento 2.4.2-p1. Everything is great except when we try ...
user avatar
  • 306
0 votes
0 answers
61 views

Recently Viewed Widget - need product sku for image src

My product images are served from https://website-list.s3.amazonaws.com/xxxxxx.jpg where xxxxxx is the product sku. I have created a module to change the Image URL on several templates, following the ...
user avatar
0 votes
1 answer
86 views

how to get sku in template

I want get sku <?php echo __('Product code') . ": " . $item->getSku(); ?> This is my code, it not work <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING....
user avatar
  • 5
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
2 answers
57 views

php code to generate sku in magento 1.9.3

We have a mass import &update module installed in our magento 1.9.3.10, but the products in the import feed do not have skus. Therefore we need a php script to enable us to generate sku when ...
user avatar
0 votes
0 answers
35 views

Magento 2: which event fires before a product gets added into cart on the admin side?

When an admin wants to reorder an item I want to check whether that item is enabled or disabled and if its disabled I want to skip that product based on its SKUs from adding into my cart. Which event ...
user avatar
0 votes
0 answers
60 views

Can we display discontinued products in website?

Can we display discontinued sku? I have a some SKU’s in my website, but after some time it's discontinued, but people still search for it. I've seen this feature in many websites showing discontinued ...
user avatar
  • 409
0 votes
1 answer
180 views

How to align the SKU column in invoice pdf?

In generated pdf for the invoice, I have the name of the products overlapping the SKU column , I have changed some code but I don't really know how to get rid of this problem , if anyone can help me ...
user avatar
  • 109
1 vote
1 answer
203 views

I need to show the product sku in two places on the product page in Magento 2

I'm trying to show the product sku in two different places on the product page. Is this possible and if so how can I do it? The sku is currently further down the page but I would also like to display ...
user avatar
0 votes
1 answer
2k views

How to get parent sku from child sku magento 2

I have a child SKU in an array and I need to get all the parents from the existing child SKUs from the array. Can everybody help me ? Thanks
user avatar
  • 728
0 votes
1 answer
180 views

Remove trailing and first space from sku

I have Magento 2.2.2. Some SKU products contain a trailing space. How to using data patch or MySQL database query which will remove all leading and trailing spaces from SKU products.
user avatar
  • 138
0 votes
1 answer
385 views

add the sku to the url key Magento 2

I want to rewrite the url of product from www.example.com/product-name.html To www.example.com/SKU.html Someone can help me? The products we sell are unique, but share the same name. So when we add ...
user avatar
  • 309
1 vote
0 answers
177 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
18 views

error comming while add to cart using textarea in magento 2.3.5

I am facing this kind of error while creating module for custom add to cart in magento 2.3.5. So can anyone have idea then please share with me. Thank you in advance.
user avatar
  • 498
1 vote
0 answers
118 views

Magento 2 How to Update Product Saleable qty using programmatically with Magento standard code

How to Update Product Saleable qty using programmatically with Magento standard code ? i am able to update product quantity using below code - protected $_stockRegistry; public function __construct( ...
user avatar
  • 1,143
1 vote
0 answers
19 views

Intercept Default field values

Talking about Default Field Values, I'd like to intercept and edit those autogenerated values. I'd like to do this for: Sku URL key E.g. Product name: My Beautiful Product Autogenerated SKU: m-btfl-...
user avatar
  • 115
1 vote
0 answers
83 views

Magento 2.3 Edit Configuration product added SKU undefined

I have added Product and parent products save When I Edit Configurable products Select Attribute Values and add more parent products Then next Select Skip image uploading at this time Step 4: Summary-...
user avatar
2 votes
0 answers
792 views

Search by SKU not working in magento 2.3

I am facing some problems while searching with SKU in the catalog search. I have already turned on "Use in Search" and "Visible in Advanced Search" fields for SKU product attribute. However, when I ...
user avatar
0 votes
1 answer
414 views

sort order as newest product first option in products in category in category edit does not showing in magento 2.3.2

I want to sort category default sort as newly added SKU at top and oldest at last , this means new to old (SKU) default sorting in frontend of magento 2. But i am not able to see option => sorting ...
user avatar
0 votes
1 answer
123 views

Magento 2 How to Insert sku in product title

run this sql query but nothing happened:: UPDATE `catalog_product_entity_text` as pt LEFT JOIN `catalog_product_entity` as p ON p.`entity_id` = pt.`entity_id` SET pt.`value` = CONCAT(pt.`value`,' (',...
user avatar
  • 332
0 votes
1 answer
625 views

Magento 2.2.3 How to export products with SKU filter in admin?

Hi, I need to export products with .csv file. But I need to export products with specific SKU. For example, I wanted to export the products which SKU was 60010, 60012 and 45580 I know I should apply ...
user avatar
  • 23
0 votes
1 answer
131 views

Magento2.3: Product level validation in cart price rule is not working

I want to apply coupon for a particular product, so I have set the coupon is valid for SKU basis and selected the product which I wanted that the coupon has to apply. Please see the below screenshot. ...
user avatar
  • 480
0 votes
2 answers
495 views

Display related products on sidebar

I want to display related products if they exist on the sidebar on product page over featured products. Please advise EDIT ADDED catalog_product_view.xml code <referenceBlock ...
user avatar
1 vote
2 answers
353 views

Why my bundle products return a different SKU?

I'm getting the SKU from my Bundle product and the products associated too, but the result bellow showed up. Bundle Product SKU: BundleQA-GT-5AHG30008P Simple Product SKU: GT-5AHG30008P It's ...
user avatar
0 votes
1 answer
39 views

Magento 2: Disable search by SKU storefront

I would like disable the storefront search by SKU. I changed but it still shows results by sku. Any idea?
user avatar
  • 529
0 votes
1 answer
155 views

How to disable sku from dashboard ? Magento 2

I need to disable Sku from the dashboard and not from the code, is this possible?
user avatar
  • 728
0 votes
0 answers
99 views

Search Product by SKU programatically using search criteria

I need to search product programatically using search_criteria public function search($storeId, $searchTerm, $searchOrder, $searchDir, $page, $pageSize, &$totalSearchResults, &$attrs_applied, ...
user avatar
  • 529
1 vote
1 answer
233 views

How to add SKU in the attribute list in the More Information tab of the product view page?

I have added the following code to catalog_product_view.xml to show the SKU in the list of attributes inside the "More information" tab <referenceBlock name="product.info.details"> <...
user avatar
  • 176
0 votes
1 answer
129 views

Magento 2 SKU and URL Key is not generating unique by default

When I create multiple product with same SKU and same URL Key it is creating, as I know Magento do not allow this. I googled alot but didn't find any configuration for this, Please guide me what is ...
user avatar
  • 934
0 votes
2 answers
596 views

Unable to get Stock Item via REST API

I have a product with a very weird SKU (which is valid in Magento 2.3.2): Although, REST API requires using SKU as a part of URL to get the stock item info. How is it possible to use that SKU as a ...
user avatar
  • 105
1 vote
0 answers
256 views

Magento 2 exclude products from catalog price rules

I'm facing this problem. I have around 70 products in different categories and different attributes sets, but with the same common attribute (SKU). I have 3 catalog price rules which applies ...
user avatar
2 votes
1 answer
279 views

Add a 2 character prefix to the SKU on the product detail page

I've been trying without success to prepend the the SKU on the product detail page with 2 characters - R9. I've already added some customisations to the page using a catalog_product_view.xml but I ...
user avatar
  • 23

1
2 3 4 5 6