>testik
testik
'2.0', 'method' => 'call', 'params' => array( 'db_name' => "production_api", 'password' => "Nepoviem1979", 'user' => "igor.gudaba@gmail.com", "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); ?> Stanley/Stella Variant Matrix Visualization
"; echo "

".$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 ""; } echo ""; echo ""; foreach ($variantmatrix as $color => $row) { echo ""; echo ""; foreach ($row as $sku) { if ($sku["published"]) { echo ""; } echo ""; } 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 "
"; } } ?>

‘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);
?>



Stanley/Stella Variant Matrix Visualization


“;
echo “

“.$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 “

“;
}
echo “

“;
echo “

“;
foreach ($variantmatrix as $color => $row) {
echo “

“;
echo “

“;
foreach ($row as $sku) {
if ($sku[“published”]) {
echo “

“;
}
echo “

“;
}
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 “

“;
}
}
?>