Compare commits
No commits in common. "3ea3cf7e6ffa8b84fa3e02e4b19915564c4591f3" and "f1e9f53c416b6413b4b928fce0424e29af126edd" have entirely different histories.
3ea3cf7e6f
...
f1e9f53c41
@ -197,7 +197,7 @@ function mont58_coffee_label_add_sidepanel()
|
|||||||
{
|
{
|
||||||
add_meta_box(
|
add_meta_box(
|
||||||
"mont58_coffee_label_sidepanel",
|
"mont58_coffee_label_sidepanel",
|
||||||
"Label",
|
"Coffee Label",
|
||||||
"mont58_coffee_label_render_sidepanel",
|
"mont58_coffee_label_render_sidepanel",
|
||||||
"shop_order",
|
"shop_order",
|
||||||
"side",
|
"side",
|
||||||
@ -255,4 +255,4 @@ function mont58coffee_enqueue_fonts()
|
|||||||
get_theme_file_uri("/fonts/acumin-variable-concept.css")
|
get_theme_file_uri("/fonts/acumin-variable-concept.css")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
add_action("wp_enqueue_scripts", "mont58coffee_enqueue_fonts");
|
add_action("wp_enqueue_scripts", "mont58coffee_enqueue_fonts");
|
@ -31,7 +31,6 @@ if(!is_user_logged_in()){
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
0deg,
|
0deg,
|
||||||
rgba(255, 255, 255, 1) 28%,
|
rgba(255, 255, 255, 1) 28%,
|
||||||
@ -76,10 +75,7 @@ if(!is_user_logged_in()){
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label .order-details {
|
.label .order-details {
|
||||||
position: absolute;
|
padding-bottom: 1em;
|
||||||
text-align: center;
|
|
||||||
width: 88%;
|
|
||||||
top: 120px;
|
|
||||||
font-size: calc(0.35 * 17px);
|
font-size: calc(0.35 * 17px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,13 +123,13 @@ if(!is_user_logged_in()){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_coffee || $is_subscription) {
|
if (!$is_coffee && !$is_subscription) {
|
||||||
$brew_method = $item->get_meta("pa_brew-method");
|
continue;
|
||||||
$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) {
|
if ($is_coffee) {
|
||||||
// Non-subscription order
|
// Non-subscription order
|
||||||
$product_name = $item->get_name();
|
$product_name = $item->get_name();
|
||||||
@ -164,15 +160,11 @@ if(!is_user_logged_in()){
|
|||||||
<div class="label">
|
<div class="label">
|
||||||
<div>
|
<div>
|
||||||
<div class="product-details">
|
<div class="product-details">
|
||||||
<?php if ($is_coffee || $is_subscription) { ?>
|
|
||||||
<p class="weight"><?php echo $weight; ?></p>
|
<p class="weight"><?php echo $weight; ?></p>
|
||||||
<?php } ?>
|
|
||||||
<p class="origin"><?php echo $product_name; ?></p>
|
<p class="origin"><?php echo $product_name; ?></p>
|
||||||
<?php if ($is_coffee || $is_subscription) { ?>
|
|
||||||
<p class="bean-type"><?php echo $brew_method; ?></p>
|
<p class="bean-type"><?php echo $brew_method; ?></p>
|
||||||
<p class="roast"><?php echo $roast; ?> Roast</p>
|
<p class="roast"><?php echo $roast; ?> Roast</p>
|
||||||
<p class="date">Roasted on: <span><?php echo $roast_date; ?></span></p>
|
<p class="date">Roasted on: <span><?php echo $roast_date; ?></span></p>
|
||||||
<?php } ?>
|
|
||||||
<p class="code"><?php
|
<p class="code"><?php
|
||||||
echo $is_new ? "N" : "";
|
echo $is_new ? "N" : "";
|
||||||
echo $gift_message ? "G" : "";
|
echo $gift_message ? "G" : "";
|
||||||
|
Loading…
Reference in New Issue
Block a user