".$style["StyleCode"]." is published and "; if ($style["Variants"][0]["NewStyle"]) { echo "is a new style
"; } else { echo "is an existing style"; } echo ""; foreach ($allsizes as $key => $size) { echo " | ".$size." | "; } echo "|
---|---|---|
".$color." | "; foreach ($row as $sku) { if ($sku["published"]) { echo ""; } else { echo " | ";
}
if ($sku["newcolor"]) {
echo "New color "; } if ($sku["newsize"]) { echo "New size"; } echo " | ";
}
echo "
".$style["StyleCode"]." is not published. It will not be displayed
"; echo " ‚2.0‘,
‚method‘ => ‚call‘,
‚params‘ => array(
‚db_name‘ => „production_api“,
‚password‘ => „YOUR_PASSWORD“,
‚user‘ => „YOUR_USER“,
„LanguageCode“ => $language
),
‚id‘ => 0
);
$ch = curl_init($url);
$jsonDataEncoded = json_encode($jsonData);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‚Content-Type: application/json‘));
$result = curl_exec($ch);
$jsonDataDecoded = json_decode(json_decode($result)->result, true);
curl_close($ch);
return $jsonDataDecoded;
}
$languagecode = ‚en_US‘;
$stpm = getAllSTSTProductsV2($languagecode);
?>
echo „
„.$style[„StyleCode“].“ is published and „;
if ($style[„Variants“][0][„NewStyle“]) {
echo „is a new style
„;
} else {
echo „is an existing style
„;
}
echo „
„.$size.“ | ||
---|---|---|
„.$color.“ | „; } else { echo „ | „; } if ($sku[„newcolor“]) { echo „New color „; } if ($sku[„newsize“]) { echo „New size“; } echo „ |
„;
echo „
„;
} else {
echo „
echo „
„.$style[„StyleCode“].“ is not published. It will not be displayed
„;
echo „
„;
}
}
?>