Skip to content

Magento REST API returns not existing SKU when custom option was set #25461

@ihor-sviziev

Description

@ihor-sviziev

Preconditions (*)

  1. Magento 2.3.2 or 2.3-develop

Steps to reproduce (*)

  1. Create simple product with one custom option type drop-down with name "Color", and values "Red", "Green", also fill up SKU field for customizable options
    image
    image

  2. Create Configurable product with one custom option type drop-down with name "Color", and values "Red", "Green", also fill up SKU field for customizable options
    image
    image
    image

  3. Go to Frontend, add to cart two these products

  4. Get information about quote via REST API

  5. Go to checkout, execute following JS in developer console, see result:

require(['mage/storage'], function(storage) {
	storage.get('/rest/default/V1/guest-carts/' + window.checkoutConfig.quoteData.entity_id + '/')
	.done(function(result) {
		console.log(result.items);
	});
});

Expected result (*)

  1. You should have an ability to get real product SKU, it's useful for different types of integrations

sku: "Simple-1"
sku: "Configurable 2-a"

Actual result (*)

  1. You're having not real product SKU, but added all custom options

sku: "Simple-1-Red"
sku: "Configurable 2-a-Red"

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions