Compare commits
2 Commits
7890a955ce
...
a9b655e04f
Author | SHA1 | Date | |
---|---|---|---|
a9b655e04f | |||
5832b48479 |
@ -107,9 +107,6 @@ if(!is_user_logged_in()){
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.label .order-details p {
|
||||
margin-block: 0.5mm;
|
||||
}
|
||||
@ -144,16 +141,17 @@ if(!is_user_logged_in()){
|
||||
|
||||
$order_subscription_coffees = get_field("coffees", $order_id);
|
||||
|
||||
$j = 0;
|
||||
|
||||
$is_new = false;
|
||||
|
||||
foreach ($items as $item) {
|
||||
$j = 0;
|
||||
|
||||
// checking if product is a coffee
|
||||
$product_id = $item->get_product_id();
|
||||
$product_categories = get_the_terms($product_id, "product_cat");
|
||||
$is_coffee = false;
|
||||
$is_subscription = false;
|
||||
$is_organic = false;
|
||||
|
||||
if (
|
||||
!empty($product_categories) &&
|
||||
@ -170,6 +168,9 @@ if(!is_user_logged_in()){
|
||||
}
|
||||
}
|
||||
|
||||
$product_name = '';
|
||||
$roast = '';
|
||||
|
||||
if ($is_coffee || $is_subscription) {
|
||||
$brew_method = $item->get_meta("pa_brew-method");
|
||||
$weight = $item->get_meta("weight");
|
||||
@ -199,7 +200,8 @@ if(!is_user_logged_in()){
|
||||
$quantity = $item->get_quantity();
|
||||
for ($i = 0; $i < $quantity; $i++) {
|
||||
if ($is_subscription) {
|
||||
if (is_object($order_subscription_coffees[$i + $j]["coffee"])){
|
||||
if (($order_subscription_coffees !== null)
|
||||
&& (is_object($order_subscription_coffees[$i + $j]["coffee"]))){
|
||||
$coffee = $order_subscription_coffees[$i + $j]["coffee"];
|
||||
$product_name = $coffee->post_title;
|
||||
$roast = get_field("roast_level", $coffee->ID);
|
||||
|
Loading…
Reference in New Issue
Block a user