Log 2391

$firstName = #שם פרטי#;
$lastName = #שם משפחה#;

// Retrieve the mobile number from the entity using the given first name and last name
$mobileNumber = getMobileNumber($firstName, $lastName);

return $mobileNumber;

function getMobileNumber($firstName, $lastName) {
// Replace this with your code to retrieve the mobile number from the entity based on the given first name and last name
// For example:
// Assuming you have an array of entities with their respective details including mobile numbers
$entities = [
[‘name’ => ‘John Doe’, ‘mobile’ => ‘123456789’],
[‘name’ => ‘Jane Smith’, ‘mobile’ => ‘987654321’]
];

foreach ($entities as $entity) {
if ($entity[‘name’] == “$firstName $lastName”) {
return $entity[‘mobile’];
}
}

return ”; // Return empty value if no matching entity is found
}

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