Compare commits
No commits in common. "a9b655e04f1c0dc93f8684dc095d96d78e18caa2" and "7890a955ced220a582839aebc0f8a8e1b8b15c77" have entirely different histories.
a9b655e04f
...
7890a955ce
@ -105,7 +105,10 @@ if(!is_user_logged_in()){
|
|||||||
bottom: 5.9mm; /* Adjust this value to set the distance from the bottom of the label */
|
bottom: 5.9mm; /* Adjust this value to set the distance from the bottom of the label */
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.label .order-details p {
|
.label .order-details p {
|
||||||
margin-block: 0.5mm;
|
margin-block: 0.5mm;
|
||||||
@ -141,17 +144,16 @@ if(!is_user_logged_in()){
|
|||||||
|
|
||||||
$order_subscription_coffees = get_field("coffees", $order_id);
|
$order_subscription_coffees = get_field("coffees", $order_id);
|
||||||
|
|
||||||
|
$j = 0;
|
||||||
|
|
||||||
$is_new = false;
|
$is_new = false;
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$j = 0;
|
|
||||||
|
|
||||||
// checking if product is a coffee
|
// checking if product is a coffee
|
||||||
$product_id = $item->get_product_id();
|
$product_id = $item->get_product_id();
|
||||||
$product_categories = get_the_terms($product_id, "product_cat");
|
$product_categories = get_the_terms($product_id, "product_cat");
|
||||||
$is_coffee = false;
|
$is_coffee = false;
|
||||||
$is_subscription = false;
|
$is_subscription = false;
|
||||||
$is_organic = false;
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!empty($product_categories) &&
|
!empty($product_categories) &&
|
||||||
@ -167,9 +169,6 @@ if(!is_user_logged_in()){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$product_name = '';
|
|
||||||
$roast = '';
|
|
||||||
|
|
||||||
if ($is_coffee || $is_subscription) {
|
if ($is_coffee || $is_subscription) {
|
||||||
$brew_method = $item->get_meta("pa_brew-method");
|
$brew_method = $item->get_meta("pa_brew-method");
|
||||||
@ -200,8 +199,7 @@ if(!is_user_logged_in()){
|
|||||||
$quantity = $item->get_quantity();
|
$quantity = $item->get_quantity();
|
||||||
for ($i = 0; $i < $quantity; $i++) {
|
for ($i = 0; $i < $quantity; $i++) {
|
||||||
if ($is_subscription) {
|
if ($is_subscription) {
|
||||||
if (($order_subscription_coffees !== null)
|
if (is_object($order_subscription_coffees[$i + $j]["coffee"])){
|
||||||
&& (is_object($order_subscription_coffees[$i + $j]["coffee"]))){
|
|
||||||
$coffee = $order_subscription_coffees[$i + $j]["coffee"];
|
$coffee = $order_subscription_coffees[$i + $j]["coffee"];
|
||||||
$product_name = $coffee->post_title;
|
$product_name = $coffee->post_title;
|
||||||
$roast = get_field("roast_level", $coffee->ID);
|
$roast = get_field("roast_level", $coffee->ID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user