Print 4x6 Labels Woocommerce/ Wordpress

dadfv

New Member
I have a Wordpress woocommerce site. I'm facing problems in the site. I want to print 4x6 labels for each order which can be used to stick on the Shipping package.Currently I'm using Woocommerce Print Incovice Plugin which generates the Invoice but for A4 sheets.If Some one has HTML+CSS code for 4x6 that might help.How do I solve the problem?The current code is as follows.\[code\]<div id="container"> <div id="content"> <div id="page"> <div id="letter-header"> <div class="heading"><?php if( wcdn_get_company_logo_id() ) : ?><?php wcdn_company_logo(); ?><?php else : ?><?php wcdn_template_title(); ?><?php endif; ?></div> <div class="company-info"> <div class="company-name"><?php wcdn_company_name(); ?></div> <div class="company-address"><?php wcdn_company_info(); ?></div> </div> </div><!-- #letter-header --> <div id="order-listing"> <h3><?php _e( 'Recipient', 'woocommerce-delivery-notes' ); ?></h3> <div> <?php if( wcdn_get_template_type() == 'invoice' ) : ?> <?php wcdn_billing_address(); ?> <?php else : ?> <?php wcdn_shipping_address(); ?> <?php endif ?> </div><!-- .shipping-info --> </div><!-- #order-listing --> <ul> <?php if( wcdn_get_company_logo_id() ) : ?> <li> <h3 class="order-number-label"><?php wcdn_template_title(); ?></h3> </li> <?php endif; ?> <li> <h3 class="order-number-label"><?php _e( 'Order No.', 'woocommerce-delivery-notes' ); ?></h3> <span class="order-number"><?php wcdn_order_number(); ?></span> </li> <li> <h3 class="order-date-label"><?php _e( 'Order Date', 'woocommerce-delivery-notes' ); ?></h3> <span class="order-date"><?php wcdn_order_date(); ?></span> </li> </ul><!-- #order-info --> <div id="order-items"> <table> <thead> <tr> <th class="product-label"><?php _e('Product', 'woocommerce'); ?></th> <th class="quantity-label"><?php _e('Quantity', 'woocommerce'); ?></th> <th class="totals-label"><?php _e('Totals', 'woocommerce'); ?></th> </tr> </thead> <tbody> <?php $items = wcdn_get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item ) : ?><tr> <td class="notes-shipping"><?php echo $item['name']; ?> <?php echo $item['meta']; ?> <dl class="meta"> <?php if( $item['sku'] ) : ?><dt><?php _e( 'SKU:', 'woocommerce-delivery-notes' ); ?></dt><dd><?php echo $item['sku']; ?></dd><?php endif; ?> <?php if( $item['weight'] ) : ?><dt><?php _e( 'Weight:', 'woocommerce-delivery-notes' ); ?></dt><dd><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?> <?php if( $item['download_url'] ) : ?><dt><?php _e( 'Download:', 'woocommerce-delivery-notes' ); ?></dt><dd><?php echo $item['download_url']; ?></dd><?php endif; ?> </dl> </td> <td class="quantity"><?php echo $item['quantity']; ?></td> <td class="price"><?php echo $item['price']; ?></td> </tr><?php endforeach; endif; ?> </tbody> </table> </div><!-- #order-items --> <div id="order-summary"> <table> <tfoot> <?php foreach( wcdn_get_order_totals() as $total ) : ?> <tr> <th class="description"><?php echo $total['label']; ?></th> <td class="price"><?php echo $total['value']; ?></td> </tr> <?php endforeach; ?> </tfoot> </table> </div><!-- #order-summery -->\[/code\]
 
Back
Top