Skip to content

Commit

Permalink
feat: [MINT-3266] only display pdp modal for non-grouped products (#165)
Browse files Browse the repository at this point in the history
* feat: [MINT-3266] only display pdp modal for non-grouped products

* auto-changelog

* fix cypress binary missing e2e error

* auto-changelog

---------

Co-authored-by: magento-bot <[email protected]>
  • Loading branch information
milesmcleod and magento-bot authored Dec 18, 2024
1 parent ded83bd commit 6a2107d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ define([
offerId,
quantity,
}).then(cartUtils.refreshMiniCart)
// If no plan is selected, open the offer modal
} else {
// If no plan is selected and the product type is not 'grouped' (i.e. only one
// product config is present), open the offer modal
} else if (config.length === 1) {
event.preventDefault()
event.stopPropagation()

Expand Down

0 comments on commit 6a2107d

Please sign in to comment.