Compare commits

...

3 Commits

Author SHA1 Message Date
3wc
22063a6ba0 Customer name and address size tweaks
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-17 10:45:00 -04:00
3wc
8a17a922ac Allow overwriting during deployment
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-07-16 18:39:31 -04:00
3wc
960d6a22f2 Fix path for Drone deployment
Some checks failed
continuous-integration/drone/push Build is failing
2024-07-16 18:36:13 -04:00
2 changed files with 11 additions and 5 deletions

View File

@ -20,9 +20,10 @@ steps:
settings: settings:
host: web1.mont58coffee.com host: web1.mont58coffee.com
username: autonomic username: autonomic
overwrite: true
key: key:
from_secret: drone_ssh_mont58coffee.com from_secret: drone_ssh_mont58coffee.com
target: /var/www/production.mont58coffee.com/web/wp-content/themes/mont58-coffee/ target: /var/www/production.mont58coffee.com/web/
source: wp-content/themes/mont58-coffee/ source: wp-content/themes/mont58-coffee/
when: when:
branch: branch:

View File

@ -99,10 +99,9 @@ if(!is_user_logged_in()){
text-align: center; text-align: center;
width: 100%; width: 100%;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 2.9mm; /* so that names as long as 50 characters stay on one line */ font-size: 3.9mm; /* so that names as long as 50 characters stay on one line */
margin-top: 4.6mm; /* to center text inside white area */
position: absolute; position: absolute;
bottom: 5.9mm; /* Adjust this value to set the distance from the bottom of the label */ bottom: 1.8mm; /* Adjust this value to set the distance from the bottom of the label */
left: 0; left: 0;
right: 0; right: 0;
} }
@ -228,7 +227,13 @@ if(!is_user_logged_in()){
?></p> ?></p>
</div> </div>
<div class="order-details"> <div class="order-details">
<p class="customer-name"><?php echo "$first_name $last_name"; ?></p> <?php
$customer_name = "$first_name $last_name";
if (strlen($customer_name) > 26) {
$customer_name = substr($customer_name, 0, 25) . '…';
}
?>
<p class="customer-name"><?php echo $customer_name; ?></p>
<p class="purchase-code"><?php echo $postcode; ?></p> <p class="purchase-code"><?php echo $postcode; ?></p>
<p class="quantity"><?php echo $total_items; ?></p> <p class="quantity"><?php echo $total_items; ?></p>
</div> </div>