diff --git a/wp-content/themes/mont58-coffee/functions.php b/wp-content/themes/mont58-coffee/functions.php index 8fa3657..f44a8b1 100644 --- a/wp-content/themes/mont58-coffee/functions.php +++ b/wp-content/themes/mont58-coffee/functions.php @@ -197,7 +197,7 @@ function mont58_coffee_label_add_sidepanel() { add_meta_box( "mont58_coffee_label_sidepanel", - "Coffee Label", + "Label", "mont58_coffee_label_render_sidepanel", "shop_order", "side", @@ -245,4 +245,4 @@ add_filter( }, 10, 3 -); \ No newline at end of file +); diff --git a/wp-content/themes/mont58-coffee/template-order-label.php b/wp-content/themes/mont58-coffee/template-order-label.php index 45d8898..5fb05a2 100644 --- a/wp-content/themes/mont58-coffee/template-order-label.php +++ b/wp-content/themes/mont58-coffee/template-order-label.php @@ -39,6 +39,7 @@ if(!is_user_logged_in()){ display: flex; align-items: center; justify-content: center; + position: relative; background: linear-gradient( 0deg, rgba(255, 255, 255, 1) 28%, @@ -82,7 +83,10 @@ if(!is_user_logged_in()){ } .label .order-details { - padding-bottom: 1em; + position: absolute; + text-align: center; + width: 88%; + top: 120px; font-size: calc(0.35 * 17px); } @@ -130,13 +134,13 @@ if(!is_user_logged_in()){ } } - if (!$is_coffee && !$is_subscription) { - continue; + if ($is_coffee || $is_subscription) { + $brew_method = $item->get_meta("pa_brew-method"); + $weight = $item->get_meta("weight"); + } else { + $product_name = $item->get_name(); } - $brew_method = $item->get_meta("pa_brew-method"); - $weight = $item->get_meta("weight"); - if ($is_coffee) { // Non-subscription order $product_name = $item->get_name(); @@ -167,11 +171,15 @@ if(!is_user_logged_in()){
+

+

+

Roast

Roasted on:

+