Skip to content

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

Open
@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

Labels

CDIssue recommended for the contribution dayComponent: CatalogIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions