Just wondering how you can make this possible in PHP if you can or there is a better way it would be great.
With arrays and if statements
<?php
$products = array(
0 => array(
"product_name" => "Necklace",
"product_price" => 10,
"quantity" => 2,
"handmade" => "true"
),
array(
"product_name" => "Bracelet",
"product_price" => 17,
"quantity" => 1,
"handmade" => "false"
),
array(
"product_name" => "Handthingy",
"product_price" => 6,
"quantity" => 3,
"handmade" => "true"
)
);
<?php echo $product['handmade']; if('handmade'== true){
//Do this
} else {
//Do this
}