Skip to content

ProductAlert: Product alerts not showing in admin side product edit page #10007

@chiragp-wagento

Description

@chiragp-wagento

Preconditions

Below is environment I am using

  1. Magento version CE 2.1.5
  2. PHP Version 7.0.15
  3. MySQL Version 5.7.18

Steps to reproduce

  1. Make any product out of stock and view the product in front side
  2. Make sure you are logged in and click on " Notify me when this product is in stock " link to subscribe for stock alert and it will show "Alert subscription has been saved." success message.
  3. Now, when we edit the same product in admin side then it should show Product Alert grid with 2 section, 1. Price Alert Subscriptions and 2. Stock Alert Subscriptions

Expected result

  1. It should show Product Alert grid in product edit page in admin side

Actual result

  1. Product alert grids are not showing in product edit page

After troubleshoot I have found that below code is not added in catalog_product_edit.xml that's why tab is not showing.

<referenceBlock name="product_form">
            <block class="Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Alerts" name="alert.tab">
                <arguments>
                    <argument name="config" xsi:type="array">
                        <item name="label" xsi:type="string" translate="true">Product Alerts</item>
                        <item name="collapsible" xsi:type="boolean">true</item>
                        <item name="opened" xsi:type="boolean">false</item>
                        <item name="sortOrder" xsi:type="string">2</item>
                        <item name="canShow" xsi:type="boolean">true</item>
                        <item name="componentType" xsi:type="string">fieldset</item>
                    </argument>
                </arguments>
            </block>
        </referenceBlock>

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: 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 developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions