Log 1954

$fullName = #שם מלא#;
$firstName = “”;
$lastName = “”;

$nameParts = explode(” “, $fullName);
$countNameParts = count($nameParts);

if ($countNameParts == 2) {
$firstName = $nameParts[0];
$lastName = $nameParts[1];
} elseif ($countNameParts == 3) {
$firstName = $nameParts[0];
$lastName = $nameParts[1] . ” ” . $nameParts[2];
}

return “First Name: ” . $firstName . “
“;
return “Last Name: ” . $lastName;

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