Skip to content

Commit 49a0b96

Browse files
committed
Explicitly hide solo parameters in updateUpsale
Added explicit calls to hide solo parameter elements (104 and 78) in the updateUpsale function to ensure they are not displayed when showing box1 and box2. This provides extra safety in case these IDs are not included in allBoxIds.
1 parent 676ba4a commit 49a0b96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/js/components/productPage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,9 @@ function updateUpsale($this, event) {
10891089
} else {
10901090
// conf2: show box1 and box2, hide other box params (including solo)
10911091
allBoxIds.forEach((id) => $(`.parameter-wrap.parameter-${id}`).hide());
1092+
// explicitly hide solo parameter ids to be safe
1093+
$(`.parameter-wrap.parameter-104`).hide();
1094+
$(`.parameter-wrap.parameter-78`).hide();
10921095
$(`.parameter-wrap.parameter-${box1}`).show();
10931096
$(`.parameter-wrap.parameter-${box2}`).show();
10941097

0 commit comments

Comments
 (0)