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
2
votes
1answer
2k views

Dynamically updating the sku on the product page of a configurable product based on selected options

I've successfully got the attributes to update dynamically for the SKU on the product page based on the simple product selected (through help found on the web). I'm now trying to apply this logic to ...
3
votes
5answers
2k views

How to get Magento2 product with REST if sku has slash?

Does anyone have an idea about how to get a product with slash through the rest api ? I have a product with sku 100/1. The closest I have gotten is to call: get /rest/V1/products/100%252f1 But it ...
4
votes
1answer
1k views

Safely update SKU from DB Magento2

In a store of mine, built on Magento 2.1.x I need to perform a bulk update on product SKUs. I am thinking about doing an UPDATE directly on the DB, on the catalog_product_entity table, since I ...
0
votes
1answer
990 views

basic product repository save not work in cron - magento2

I tried the below code in custom controller and cron job method [just load and save] after that I felt some issues $product = $this->productRepository->getById(548); $this->productRepository-...
0
votes
0answers
15 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
28 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
15 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-...
0
votes
0answers
22 views

Custom SKU mask generation

I'd like to customize the SKU auto generation based on product name. Something like... given a product name, SKU should be generated in this way: Replacing space with _ Removing vowels etc... How ...
1
vote
0answers
32 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-...
0
votes
2answers
1k views

Product SKU requirements. What characters are restricted from a product SKU and can there be spaces in the middle of the SKU?

For product SKU's can there be spaces in the middle of the SKU? Are there any character restrictions that can not be used for a SKU ?
1
vote
1answer
943 views

Display Child Product SKU in Product Page

I am using Magento 2. I would like to display child product SKU in Main product page while user clicks on configurable Swatches. I am trying to gather information from below file. public_html\vendor\...
2
votes
2answers
894 views

Passing sku code value to TrustPilot product review

hope someone can help. I'm trying to set up a 3rd party review platform (TrustPilot) for our Magento 1.9 CE store, using Ultimo theme. There is a product review box which will display individual ...
0
votes
1answer
1k views

Display Dynamic SKU on configurable product view Magento using Image Swatch

I've used the code from the answer in this thread: https://stackoverflow.com/questions/13444995/display-dynamic-sku-on-configurable-product-view-magento It works great when I'm using the drop down ...
6
votes
1answer
1k views

How to get the product id and SKU code of the product selected

I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a ...
0
votes
0answers
19 views

how to increase sku 64 symbols to be 255 symbols at magento 2.3.2

how to increase sku 64 symbols to be 255 symbols at magento 2.3.2 the below image https://i.imgur.com/MaWo0Qo.jpg i did this solution but still same issue any advice set "const SKU_MAX_LENGTH = ...
1
vote
0answers
74 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
0answers
30 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
44 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
37 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
2answers
84 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
55 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
1answer
16 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
28 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
41 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
39 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, ...
3
votes
3answers
6k views

different inventory levels for same SKU multi store

We have a Canadian website and a US website. All products are shared. But we have two warehouses, one in each country. Therefore we need different stock levels for our websites. Any ideas?
0
votes
0answers
10 views

Is it possible to create a product without assigning a sku?

as a bundle item, need to crete a product that a display layout is pulliung from that consisets of several ite,ms that DO have part numbers, but i need the core product to not contain a product number....
0
votes
1answer
47 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 ...
1
vote
1answer
32 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
163 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 ...
0
votes
1answer
359 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....
0
votes
0answers
11 views

Updating configurlabe product sku in observer

I am trying to update a configurable product SKU and it is children SKU in observer after this event catalog_product_save_after. When I update the SKU the association between parent and child product ...
1
vote
0answers
88 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
69 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
167 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
4answers
117 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
0answers
22 views

Custom sku for product based on category break configurable relations

I am trying to develop a module to change the SKU for the product if the product SKU contain auto keyword I created events.xml file and added <event name="catalog_product_save_before"> &...
1
vote
1answer
61 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\...
0
votes
0answers
24 views

Create Simple products with Configurable Product name instead of SKU

When you create simple products in Magento 2.1.18 they inherit the SKUs name from the Configurable product. But we want it to be the Product name instead of the SKUs. Is this easy code change or ...
0
votes
1answer
21 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
2answers
266 views

Magento 2 stop Magento updating the SKU on duplicate

When I try to create a product with an SKU the same as one that already exists Magento allows the creation but changes the SKU to be xxx-1. Is there a way to stop this?
0
votes
1answer
40 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
42 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
413 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
83 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
162 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']...
2
votes
1answer
265 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
166 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 ...
0
votes
2answers
57 views

Magento 2 url key includes SKU number, how to remove?

The big problem with Magento somehow amending the url key to include the SKU where /product-title-stec00778.html should be /product-title.html and the SKU is SKU STEC00778 Any ideas? Not ...
0
votes
1answer
67 views

Magento 1.9 Suddenly will not accept an SKU starting with a letter

I'm currently running a staging copy of a live Magento 1.9 site. On this staging site I have noticed that if I attempt to add a new product with an SKU that begins with a letter (character between A-Z)...

1
2 3 4 5