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
0answers
16 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 ...
0
votes
0answers
30 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 ...
0
votes
1answer
26 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....
0
votes
0answers
21 views

Hide products when customer add specific product to the cart Magento 2

is there any extension or a way to restrict products in Magento 2 by SKU? ex: I have products AA1001, AA1002, BB1001, BB1002. When a customer adds AA1001 to the cart straightaway the extension will ...
0
votes
0answers
19 views

If I enter the article number “S55XK”, the articles “S55AK, S55BK, S55CK, S55DK, …” will be found

The extension that article numbers with an "X" are still found, as well as the category How can I work with elastic search in Magento2. I need the solution for below example - For example, ...
0
votes
0answers
18 views

Adding sku number in image field

I'm looking for an automated solution where the sku number is added to the image on frontend. Like this below: Running Magento 1.9.2 Thanks :-)
0
votes
1answer
38 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 ...
0
votes
2answers
27 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
25 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 ...
0
votes
1answer
36 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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
14 views

How can i get SKU in API response: M2

GET /rest/V1/guest-carts/".$quote_id."/totals RESULT: [items] => Array ( [0] => Array ( [item_id] => 2275060 ...
0
votes
0answers
15 views

Apply Special Price to SKUs with a Coupon Code?

We're using Magento 2.34. We want to set up a shopping cart coupon where customers get a special price for a set of SKUs with different price levels if they enter the correct coupon code at checkout....
0
votes
1answer
798 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
0
votes
1answer
77 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.
0
votes
1answer
98 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 ...
0
votes
0answers
37 views

Magento 2 API 404 ERROR Looking for SKU

We are having this issue with making API calls to Magento 2. We are working with Magento EE ver. 2.3.5-p2. Making calls: https://localhost/rest/all/V1/products/mreht.Digit?editMode=false&...
1
vote
0answers
52 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($...
0
votes
0answers
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.
1
vote
0answers
81 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( ...
1
vote
0answers
17 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-...
1
vote
0answers
58 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-...
1
vote
0answers
554 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 ...
0
votes
1answer
233 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 ...
0
votes
1answer
89 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`,' (',...
0
votes
1answer
365 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 ...
0
votes
1answer
88 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. ...
0
votes
2answers
308 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 ...
0
votes
1answer
114 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 ...
0
votes
1answer
30 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?
0
votes
1answer
74 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?
0
votes
0answers
60 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, ...
1
vote
1answer
87 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"> <...
0
votes
1answer
84 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 ...
0
votes
1answer
364 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 ...
1
vote
0answers
180 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 ...
2
votes
1answer
164 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 ...
0
votes
1answer
468 views

Magento2.3: How to move sku above product title?

I want to move the sku above the product title. But the problem I'm facing is that I can see two of the sku's in the product page(one is under product title and another is parallel to price). Please ...
1
vote
2answers
295 views

How To Add Item Sku's and Product Names To Magento 2.2.7 Sales Order Grid

I have modified the order grid layout by adding this code in: vendor/magento/module-sales/view/adminhtml/ui_components/salesordergrid.xml <column name="order_items" class="Magento\Sales\Ui\...
1
vote
4answers
285 views

How to use Split or explode Function in Observer?

Observer File : <?php class Gta_MatchProductOrder_Model_Observer { public function checkproductinorder($Observer) { $order = $Observer->getEvent()->getOrder(); $items ...
0
votes
1answer
23 views

SKU codes problems while uploading bulk products

I am having problem while uploading bulk products. Let suppose I am uploading 3 products having SKU following: SFP-10G-AOC1.5M-AO SFP-10G-AOC1-5M-AO SFP-10G-AOC1/5M-AO While uploading my slugify ...
0
votes
1answer
83 views

Create a script to update the SKU and set SKU using CSV

How To Create a script For Update Product SKU Using Custom Script.
1
vote
0answers
49 views

How does SKU number is generating in Magento 2?

I would like to know how Magento 2 generates SKU number? While checking Mask for SKU in admin, there is filled as {{name}}. So when I create a product, the SKU automatically filled with the product ...
0
votes
2answers
797 views

Magento 2 How to update SKU after saving product from admin panel?

I want to update product sku after save product. I had used this event :- catalog_product_save_after In Observer, public function execute(\Magento\Framework\Event\Observer $observer) { ...
0
votes
1answer
149 views

Magento 2 - Cannot edit or update SKU Value

When I try to update SKU from the admin catalog page in Magento 2. It throws error "Validation failed" and in exception log, it shows the following error. main.CRITICAL: Validation Failed {"exception"...
2
votes
2answers
254 views

Load Product Qty by sku in Magento 2 Controller

public function execute() { // Product Colletion $collection = $this->_productCollectionFactory->create(); $collection->addAttributeToSelect(['name', 'special_price', 'entity_id']...
0
votes
1answer
814 views

Magento 2 this is possible to set different SKU store wise on a same product

I want to set different SKUs for different store wise. This is Possible? Example, I have an ABC Product. For the English Store, I want 'En-Abc' SKU. For the Arabic Store, I want 'Ar-Abc' SKU....
2
votes
1answer
463 views

How to remove SKU column from order details in My account page

I wish to remove SKU from order details. Open my account page in frontend 2.Go to My Orders 3.Click View Orders link from the list of orders How to remove the SKU colum and its associated details. ...
0
votes
1answer
391 views

How does Magento 2 sku generated automatically?

I want to know how does Magento 2 sku generated automaticlly. I wonder when I type product name while creating new product in admin then its sku is automatically typed in sku field. I researched ...

1
2 3 4 5