label{
width: 100px;
height: 100px;
}
1,
‘Citrine’ => 2,
‘Red Jasper’ => 3,
‘44730’ => 4,
‘Blue Lace Agate’ => 5,
‘Amethyst’ => 6,
‘Black Onyx’ => 7,
‘8399’ => 8,
‘6259’ => 9
);
//$suggested_gemstone = isset($gemstones[$name_value]) ? $gemstones[$name_value] : ”;
//array for birth day only total
$stones_f2 = array(
‘Green Aventurine’ => 1,
‘Citrine’ => 2,
‘Red Jasper’ => 3,
‘44730’ => 4,
‘Blue Lace Agate’ => 5,
‘Amethyst’ => 6,
‘Black Onyx’ => 7,
‘Lapis Lazuli’ => 8,
‘6259’ => 9
);
//array for birthdate total
$stones = array(
‘Green Aventurine’ => 1,
‘Citrine’ => 2,
‘Red Jasper’ => 3,
‘Rose Quartz’ => 4,
‘Blue Lace Agate’ => 5,
‘Amethyst’ => 6,
‘Black Onyx’ => 7,
‘Lapis Lazuli’ => 8,
‘6259’ => 9
);
//name numerology suggestion array
foreach($stones_f3 as $stone_f3 => $value) {
if($name_value == $value) {
$stone_suggestion_f3 = $stone_f3;
break;
}
else {
$stone_suggestion_f3 = “None”;
}
}
//foreach for birth day only
foreach($stones_f2 as $stone_f2 => $value) {
if($dob_f2 == $value) {
$stone_suggestion_f2 = $stone_f2;
break;
}
else {
$stone_suggestion_f2 = “None”;
}
}
//foreach for birthdate whole numbers
foreach($stones as $stone => $value) {
if($dob_total == $value) {
$stone_suggestion = $stone;
break;
}
else {
$stone_suggestion = “None”;
}
}
// echo “
Birth Date: | ” . $field1; // echo “ |
Name:- | ” . $name; // echo “ |
Number:- | ” . $dob_f2; // echo “ |
Stone Suggestion_f2: | ” . $stone_suggestion_f2; // echo “ |
$product_id_f3 = $stone_suggestion_f3;
$product_id_f2 = $stone_suggestion_f2;
$product_id = $stone_suggestion;
//$gemstones = suggest_gemstones($name_number);
// // Retrieve gemstone products from the database for name numerology
$args_f3 = array(
‘post_type’ => ‘product’,
‘meta_query’ => array(
array(
‘key’ => ‘gemstone’,
‘value’ => $product_id_f3,
‘compare’ => ‘=’,
),
),
);
// Retrieve gemstone products from the database
$args_f2 = array(
‘post_type’ => ‘product’,
‘meta_query’ => array(
array(
‘key’ => ‘gemstone’,
‘value’ => $product_id_f2,
‘compare’ => ‘=’,
),
),
);
// Retrieve gemstone products from the database
$args = array(
‘post_type’ => ‘product’,
‘meta_query’ => array(
array(
‘key’ => ‘gemstone’,
‘value’ => $product_id,
‘compare’ => ‘=’,
),
),
);
// Get the product ID from the previous code
$product_f2 = wc_GET_product( $product_id_f2 );
if ( $product_f2) {
// Display the product in a table format
// echo “
name gemsstone:
. $name_number;
echo “
“; echo ‘add_to_cart_url() ) . “\” method=\”post\” enctype=’multipart/form-data’>”; // echo ““; // echo “ “; echo ‘ ‘; |
“; echo ‘add_to_cart_url() ) . ‘” class=”cart” method=”post” enctype=”multipart/form-data”>’; echo ‘‘; echo ‘ ‘; |
“; echo ‘add_to_cart_url() ) . “\” method=\”post\” enctype=’multipart/form-data’>”; // echo ““; // echo “ “; echo ‘ ‘; |
“;
}
?>