Log 2335

$phone = #טלפון#;
$product = #מוצר#;
$company = #מאיזה חברה תרצה לנייד#;
$price = #מחיר#;

$countPhoneNumbers = strlen($phone);
$isProductAvailable = isset($product) && !empty($product);
$isCompanySelected = isset($company) && !empty($company);

if ($countPhoneNumbers > 0) {
return “The number of phone numbers is: ” . $countPhoneNumbers;
}

if ($isProductAvailable && $isCompanySelected) {
switch ($company) {
case ‘Apple’:
return “The price of the Apple product is: $” . $price;
break;
case ‘Samsung’:
return “The price of the Samsung product is: $” . $price;
break;
default:
return “Please select a valid company.”;
}
} else {
return “”;
}

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare