Rozszerzenie warunku w funkcji importProductFeatures oraz wydłużenie czasu odświeżania strony po dodaniu produktu lub kombinacji
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user