magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.31k forks source link

Product Fields Auto-Generation does not populate meta tags on products added via API #37503

Open lytesaber opened 1 year ago

lytesaber commented 1 year ago

Preconditions and environment

Steps to reproduce

  1. Log into Magento admin
  2. Browse to Stores > Settings > Configuration > Catalog > Product Fields Auto-Generation
  3. Configure Mask for Meta Title (Default Config): {{name}} | Test Store
  4. Configure Mask for Meta Descripton (Default Config): {{name}} at Test Store. Free delivery on orders over $75.
  5. Save configuration
  6. Create/post a new product record via Magento's REST API (Name: Example Product)

Expected result

New product is created with both Meta Title and Meta Description fields based on the Product Fields Auto-Generation mask configuration.

Expected Meta Title Value: Example Product | Test Store

Expected Meta Description Value: Example Product at Test Store. Free delivery on orders over $75.

Actual result

Both Meta Title and Meta Description fields on the newly created product are blank.

Additional information

Product Fields Auto-Generation feature works for the product created manually in the Magento admin panel however not for products created programmatically via the API. Using the product fields auto-generation feature is still required even when syncing in new products from external POS or ERP systems which don't usually store website specific meta data.

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @lytesaber. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://ef8fd27d2aff099c51a28c3eb3ba4a89.instances-prod.magento-community.engineering Admin access: https://ef8fd27d2aff099c51a28c3eb3ba4a89.instances-prod.magento-community.engineering/admin_fb54 Login: db1ec386 Password: f6de9224fc86

engcom-Bravo commented 1 year ago

Hi @lytesaber,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Steps to reproduce

Screenshot 2023-05-16 at 2 21 45 PM

It is working fine while creating product from admin manually.

Screenshot 2023-05-16 at 2 14 27 PM Screenshot 2023-05-16 at 2 15 28 PM

When we create product via API Both Meta Title and Meta Description fields on the newly created product are blank.

Screenshot 2023-05-16 at 2 28 37 PM Screenshot 2023-05-16 at 2 29 49 PM Screenshot 2023-05-16 at 2 23 39 PM

Hence Confirming this issue.

Thanks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-8780 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.