Hide some info and add more Text
-
Hi, Thanks for this awesome plugin.
I’m using a thermal printer with this code, and it’s working fine for me
// Print Paper Resize
function print_paper_resize() {
?>
<style>
/* CSS Media Queries for Print */
@media print {
body {
font-size: 12pt;
max-width: 80mm;
margin: auto!important;
font-weight: 550;
}
.shipping-address {
display: none;
width: 80%!important;
}
.billing-address {
display: none;
width: 70%!important;
margin-bottom: 1em!important;
}
.company-address {
display: none;
}
.company-logo {
margin-left: auto;
margin-right: auto;
text-align: center;
}
.company-name {
text-align: center;
font-size: 20pt;
}
.colophon-policies {
font-size: 12pt;
line-height: 1;
}
h2, h3 {
margin-bottom: 0!important;
}
th {
padding-bottom: 0!important;
padding-left: 0.5em!important;
}
td {
padding: 0.35em 0.35em 0!important;
}
.order-addresses {
margin-bottom: 1em!important;
}
.order-info li strong {
font-weight: 600!important;
display: inline!important;
padding-right: 1.4em!important;
}
.order-info {
margin-bottom: 0!important;
}
.order-branding {
margin-bottom: 0!important;
}
.product-quantity, .total-quantity {
padding-left: 1.0em!important;
}
.head-quantity {
padding-left: 0em!important;
}
.includes_tax {
white-space: nowrap!important;
}
.order-items .head-item-price,
.order-items .product-item-price,
.order-items .total-item-price .content {
padding-bottom: 0;
}
}
</style>
<?php
}
add_action('wcdn_head', 'print_paper_resize', 10, 1);I need your help to do 2 things:
- 1- If customer user ID is “DC123” DO NOT SHOW (payment method, phone number and email) at order info section in print – we need it for orders made by cashier in store.
- 2- If order contains Product Type “dc_product_type” then show this Code before (colophon-policies)
Important:
<ul>
<li>More info 1</li>
<li>More info 2</li>
</ul>I would really appreciate your help.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hide some info and add more Text’ is closed to new replies.