Rozszerzenie warunku w funkcji importProductFeatures oraz wydłużenie czasu odświeżania strony po dodaniu produktu lub kombinacji

This commit is contained in:
2025-02-10 08:35:10 +01:00
parent 261a74862c
commit 073c6b2686

View File

@@ -236,7 +236,7 @@ function importProductFeatures($productId, $featuresString) {
$featureId = $feature->id;
}
if ( $featureId == 47 )
if ( $featureId == 47 or $featureId == 76 )
continue;
$featureValueId = Db::getInstance()->getValue(
@@ -451,6 +451,6 @@ foreach ($productsBySymbol as $symbol => $products) {
}
// reload page after 1s if product or combination was added
if ($productAdded || $combinationAdded) {
// echo "<script>setTimeout(function(){location.reload();}, 250);</script>";
echo "<script>setTimeout(function(){location.reload();}, 5000);</script>";
}
?>