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
1
vote
2answers
1k views

Magento 2: How to move breadcrumbs and sku before product title?

I am trying to move breadcrumb and SKU to show above the product title using xml. Like <move element="breadcrumbs" destination="product.info.main" before="page.title.wrapper" /> But ...
0
votes
2answers
233 views

Magento2, How to pass product data as query string in Url using JSON template? Custom Module

I am trying to get product name, product SKU, Quantity in Url such that when I write 1 in Url 1-50 products should display, when writing 2 as page number 51-100 products should display. And data goes ...
1
vote
1answer
929 views

Undefined variable: /vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php while save configurable product in magento2

When I save configurable product with big length sku then error showing "0":"Notice: Undefined variable: product in /MASKED_DIR/2018-08-06_12-56-07/htdocs/vendor/magento/module-catalog/...
4
votes
4answers
915 views

How to get product images based on its sku?

I implemented a custom module Company/Module. In the controller folder i have upload.php file. I need to modify this file to display the output in a tabular form with sku and product image. Please ...
0
votes
1answer
213 views

How to get product images which are associate with its sku?

I want to upload a csv file which contains product sku and i want to get product images which are associated with that sku.please help me out.thanks in advance.
2
votes
2answers
115 views

Auto generate SKU for products that do not have one in Magento 1.9

Is it possible to generate skus for all products that do not have already one?
0
votes
1answer
37 views

Custom SKU pattern

I want to create an custom SKU pattern that is somthing like this: {attribute set id}{auto number} and I want it to be at least 5 numbers long. For example: 05004 where the 05 is for the ...
0
votes
2answers
263 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
353 views

Magento2 How can I choose multiple products by SKU?

How can I choose multiple products by SKU in a widget?
1
vote
1answer
395 views

Display Product Sku in Child Products - Magento 2.2.3

On our Magento site, we have it so it displays the SKU under the main product title, but if there are child listings, possibly for different configurations of the product' the sku isn't appearing. I ...
1
vote
1answer
265 views

How to display Name, Thumbnail Image, Price, Add-to-cart Button On CMS PAGE?

I need to display all my products like, Sku Name Price Thumbnail Add-to-cart(Button) How can i get all above details on CMS Page? Note : Add-To-Cart Error
1
vote
1answer
216 views

How can I add a SKU column in the Best Seller Product Report

How can I add a SKU column in the Best Seller Product Report.
1
vote
1answer
58 views

What is the best way to save a list of SKU in the admin to use in frontend as an array?

I need to create a list of SKU separated by commas (sku1,sku2) to use them in the frontend of the site as a global variable. I tried adding it as an attribute per product and I also tried to create a ...
2
votes
2answers
998 views

increase length of sku in magento 2

We use magento 2.2.2 and we need a longer SKU. We set "const SKU_MAX_LENGTH = 255;" in the file module-catalog/Model/Product/Attribute/Backend/Sku.php but it does not work
0
votes
1answer
475 views

How can I stop Magento from appending SKU?

So I have a bunch of products with custom options and I would like to stop Magento from appending those other SKUS for these orders. This is how it shows: SKU1-CUSTOMOPTION1SKU-CUSTOMOPTION2SKU How ...
2
votes
0answers
52 views

Magento 2: Not transferring Item Name to paypal

is there a way for the PayPal express checkout module to not transmit the Item title/name to PayPal? Example: Current Status: Item name transmitted to pp: Leggings 3/4 legs whatever blah blah Size L ...
0
votes
2answers
87 views

How can I search by remove ' - ' from my SKU?

I have sku like this '1-83574148-0'. when I searched with keyword '1835741480' . It's no result . How can I search by remove ' - ' from my SKU ?
0
votes
1answer
442 views

Magento 2 Restrict SKU Characters

I am using Magento 2.2.2. I want to restrict the number of SKU characters to be entered in the Admin Product Detail Page. How to achieve this.
1
vote
1answer
319 views

Magento 1.9.2.3, Shopping Cart Rule are not working properly

Currently I am facing issue regarding Shopping Cart Rule in Magento 1.9.2.3. I have apply rule on just Single Product SKU but somehow it applies on other product as well. Don't know whats Wrong?
2
votes
1answer
1k views

Magento 2.2 How to add product sku to order confirmation email?

I am working on a new site using Magento 2.2. This is my first project using Magento 2. Can anyone guide me how to add the product SKU to the order confirmation email? When I go to Backend -> ...
1
vote
0answers
21 views

Creating a 2 product kit for a specific combined price

We want to be able to offer our customers kits. If you buy one of the following top SKU and one of the following bottom SKU you get the kit for a set price. How do we setup this in our promotions.
1
vote
1answer
643 views

Shopping Cart Price Rule - By Using selected SKU Free Shipping Not Working?

I using default UPS, USPS, FEDEX, DHL Courier services, How can i give selected products sku free shipping, how to do that? Workout: Using selected sku's for free shipping not working? Note : In ...
2
votes
0answers
187 views

How to prevent adding same item into wish list twice in magento 2.1.9

I need to prevent users adding same item into user wish list. I could find an answer here .But i'm not able to implement it. please help me with the implimentation.
0
votes
1answer
255 views

Display a link if SKU exists

I'm trying to add a link to an order confirmation email. The link should only display if SKU 2133 exists. The problem when SKU 2133 exists it displays SKU 2133 does not exist. Before adding the ...
6
votes
3answers
7k views

What is the difference between Product ID and SKU?

What is the difference between Product ID and SKU in Magento 2?
2
votes
1answer
138 views

Call the product to the home page using a SKU or ID Magento 2

I'm trying to develop an extension. I want to select a product SKU in the admin to be able to display the product on the home page. app\code\My\Mpanel\etc\adminhtml\system.xml app\design\frontend\...
1
vote
2answers
51 views

Access product sku within app/design/frontend/theme/Magento_Catalog/templates/product/price/amount

Is there a way to get the product sku within the app/design/frontend/theme/Magento_Catalog/templates/product/price/amount.phtml file? I need to retrieve the product sku value there, because i want to ...
2
votes
2answers
2k views

update Sku in using catalog_product_save_after in magento 2

I try set new sku using catalog_product_save_after event, its continuously run this observer, But Not save the sku value. events.xml: <event name="catalog_product_save_after"> <observer ...
1
vote
1answer
1k views

Magento 1.9 — Add SKU column to Sales Orders Report

I am trying to add a SKU column to the Sales > Orders column. After looking at the article below, I was going to change the copy of core sales order grid (app/code/local/Mage/Adminhtml/Block/Sales/...
1
vote
1answer
30 views

Verify product availability by SKU

I've a form in which I'm using ajax to get product sku and quantity from user. I successfully got those entered data in form to my custom module's controller. Now I need to verify that user's ...
0
votes
1answer
226 views

Product SKU based on manufacturer

I would like to generate the product SKU automatically for every product created in admin panel. I have found this extension which works to generate the SKU based on product name and it's category, ...
1
vote
2answers
2k views

Magento2 Auto Increment SKU

I am willing to get product SKU value to auto-increment in Magento 2. For example the last product created sku was 100001 then the next product would be 100002 and so on.
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 ...
1
vote
1answer
23 views

Products in Magento - SKUs from a category

Would you have any way to get product SKUs from a category? For example, I have a category with id = 13 and I need to get the SKUs of these products dynamically, so I can do checks that I created in ...
5
votes
3answers
8k views

Magento 2 - get special price of product by product id or sku

I need to get the special price of a product by product Id or Sku. Let's say I have an existing product with Id '21' and Sku 'test-21'. This information is provided in my custom block class, how can ...
0
votes
2answers
471 views

Help to bulk update SKUs and Cost Prices

Good morning I am migrating my product portfolio from Magento 1 to Magento 2 and I need to bulk upload new SKU codes and new cost prices from an XL or CSV file how do I do this? Also on Magento 2 ...
0
votes
1answer
111 views

How to make SKU# visible on frontend?

I want to make SKU# visible on website. I found directions to update list.phtml and view.phtml. It says to go to app\design\frontend\rwd\default\template\catalog\product\view.phtml. Please advise ...
2
votes
2answers
800 views

Product collection sort order by custom skus string, when the sku has a hyphen in it, it will result a error

Product collection sort order by skus could use $collection->getSelect()->order(new /Zend_Db_Expr("FIELD(e.sku, $skus)")); (Magento 2: Order product collection by the order string(skus, ids etc) ...
0
votes
0answers
39 views

How can i apply extra fees for selected products

I need to apply some percentage off fees for selected products, how can I do that?
0
votes
2answers
95 views

Fatal error: Uncaught TypeError

Related to this- Newsletter Checkbox on contact us page in magento 2 I am using magento 2.1.7 version. I created this module and it gives me error as:- Fatal error: Uncaught TypeError: Argument 1 ...
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 ?
2
votes
1answer
594 views

SKU non-Default label is not reflected on the frontend in Magento 2

I am trying to change the SKU attribute label from "SKU" to "Item" on the Product Page on the storefront by adding a label to the attribute in Admin Panel by going to Stores > Attributes > Product ...
2
votes
1answer
504 views

How Can I Apply TAX Rule Based On Individual SKU Wise - Taxable Goods

I need to apply the tax rate for my all products with the unique tax rate, Tax rate different from each other, I mean all products have the own tax rate. How can I solve it?
1
vote
2answers
334 views

Auto-increment when generate SKU with Observer

I have created an observer for auto-generating SKU when admin add product. This is my Custom_Module/Model/Observer.php class Bookandgo_AutoSku_Model_Observer { public function autoGenerateSku($...
0
votes
1answer
358 views

How to get Parent SKU for packing slip pdf?

Basically in my magento store (i am using magento 1.9.2.4) I have configurable product called "Design Dino Tee Shirt" with SKU of DESIGNDINO and the associated products are lets say "Blue Color - S" ...
1
vote
0answers
34 views

Link Product A and Product B to the same product with unique SKU and discret stock

like my Title says we want to link a product A and B to the same product. At this point, we aren't using at our Magento 2 shop a Configurable Product to select a specified product only to create ...
0
votes
1answer
242 views

SKu is not defined error when uploading product [duplicate]

Hi can any one help me to fix this error I am not able to upload any product I am gating this error (Line No 1 Skipping import row, required field "sku" is not defined.) I am uploading the Sku like ...
0
votes
0answers
86 views

how to build sku in magento2

Here i have a requirement to build SKU. Basing on category,subcategory & brand. Rule is to con-cat 1st 3 chars of categories and subcategories and brand followed by DB increment number. At the ...
0
votes
1answer
178 views

Line No 1 Skipping import row, required field “sku” is not defined

Hi can any one help me to fix this error I am not able to upload any product I am gating this error (Line No 1 Skipping import row, required field "sku" is not defined.) I am uploading the Sku like ...
2
votes
2answers
214 views

One product with more SKUs depending on colour choices

Help with this one guys... I'm using Magento 1.9.3.0 - I have one product that has two different product codes depending on panel finish (M - magnolia and W - white) but also adds two letters of ...