Skip to content

Add-to-cart checkbox still visible when $canItemsAddToCart = false #6891

@thdoan

Description

@thdoan

Preconditions

  1. Magento version: 2.1.1

Steps to reproduce

  1. Edit vendor\magento\module-catalog\view\frontend\templates\product\list\items.phtml
  2. Set all instances of $canItemsAddToCart to false
  3. Go to a product page (e.g., /caesar-warm-up-pant.html)

Expected result

  1. The add-to-cart checkboxes in Related Products should not be visible.

Actual result

  1. The add-to-cart checkboxes in Related Products are still visible:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 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 developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions