sparky5693 Posted February 5, 2012 Share Posted February 5, 2012 My store logo is too wide to fit correctly when I print an order form. Anyone have some tips on what I can do to keep it from being cut off by the shipping address? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 5, 2012 Share Posted February 5, 2012 I ended up creating my own orders.print.php. <!DOCTYPE html> <!--Plush Catalog-- from v5.0.5--> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$PAGE_TITLE}</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="../admin/styles/print.css" media="screen,print" /> </head> <body onload="window.print();"> {if isset($ORDER_LIST)} {foreach from=$ORDER_LIST item=order} <div> <br/> <center><img src="../images/logos/{$SKIN}.php" alt="" /></center> </div> <br/> <div id="printLabel"> <div> <b>Delivery Address:</b> <br/> {$order.title_d} {$order.first_name_d} {$order.last_name_d}<br /> {if !empty($order.company_name_d)}{$order.company_name_d}<br />{/if} {$order.line1_d} <br /> {if !empty($order.line2_d)}{$order.line2_d}<br />{/if} {$order.town_d}<br /> {$order.state_d}, {$order.postcode_d}<br /> {$order.country_d} </div> <!-- <div class="sender">{$LANG.address.return_address}<br />{$STORE.address}</div>--> </div> <div class="info"> <!--<span class="orderid">--> <strong>{$LANG.common.order_id}</strong> {$order.cart_order_id} {$order.ship_method} <br/><br/><strong>{$LANG.orders.title_receipt_for}</strong> {$order.order_date} <!--</span>--> </div> <div class="product"> <span class="price">{$LANG.common.price}</span> <strong>{$LANG.common.product}</strong> </div> {foreach from=$order.items item=item} <div class="product"> <span class="price">{$item.price}</span>{$item.quantity} × {$item.name} {if !empty($item.product_code)}({$item.product_code}){/if} {if isset($item.options)} <br />{$LANG.catalogue.title_options} {foreach from=$item.options item=option}» {$option}{/foreach} {/if} </div> {/foreach} <div id="totals"> <div class="total">{$LANG.basket.total_sub} <strong>{$order.subtotal}</strong></div> <div class="total">{$LANG.basket.total_discount} {if !empty($order.percent)}({$order.percent}){/if} <strong>{$order.discount}</strong></div> <div class="total">{$LANG.basket.shipping} <strong>{$order.shipping}</strong></div> {if isset($order.taxes)} {foreach from=$order.taxes item=tax} <div class="total">{$tax.name} <strong>{$tax.value}</strong></div> {/foreach}{/if} <br /> <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> </div> {if isset($order.customer_comments)} <div id=" "><strong>{$LANG.orders.title_notes_extra}</strong> - {$order.customer_comments}</div> <br/><br/> {/if} <div> <p><center>Thank you for buying from us!</center></p> <p> If there are any problems with your shipment, please let us know within three (3) days of receipt, and we will work with you to resolve the situation. We want you to be happy with your purchase. We hope we can do business again in the future, so please ask if you don't see what you are looking for. We are working on adding our items to our Online Catalog, since we have a much larger inventory of plush animals and dolls than we have listed.</p> <p>Please bookmark our site at <a href="http://dirtybutter.com/plushcatalog/ ">http://dirtybutter.com/plushcatalog</a> and tell your friends and family about us. We also run a free Plush Memories Lost Toy Search Service at <a href="http://plushmemories.com/">http://plushmemories.com</a>. If you, or anyone you know, are looking for a lovie we will be glad to help you find it.</p> <p align="center"><i>"Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me."</i></p> <p align="center">John 14:6 KJV</p> </div> <div id="footer"> <br/> <p><b>{$STORE.address}</b></p> </div> </div> {if not empty($customer.comments)} <!--<div class="page-break"> <div id="header"> <div id="printLabel"> <div>{$order.address}</div> <div class="sender">{$LANG.address.return_address}<br />{$STORE.address}, {$STORE.county}, {$STORE.postcode} {$STORE.country}</div> </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" alt="" /> </div> </div>--> <div class="info"> {foreach from=$customer.comments item=note} {$note} {/foreach} </div> </div> {/if} {/foreach} {/if} </body> </html> Maybe that will give you some ideas. Quote Link to comment Share on other sites More sharing options...
Guest Dazmanjunket Posted February 10, 2012 Share Posted February 10, 2012 Sparky, I had the same problem but made a minor adjustment to ../admin/skins/default/templates/orders.print.php around line 26. Original - </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" alt="" /> </div> </div> Changes - </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" height="71" width="250" alt="" /> </div> </div> Where the height="xx" and the Width="xx" I used a graphics package to reduce my original logo down to keep it perspective. Hope that helps. Quote Link to comment Share on other sites More sharing options...
sparky5693 Posted June 5, 2012 Author Share Posted June 5, 2012 I ended up creating my own orders.print.php. <!DOCTYPE html> <!--Plush Catalog-- from v5.0.5--> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$PAGE_TITLE}</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="../admin/styles/print.css" media="screen,print" /> </head> <body onload="window.print();"> {if isset($ORDER_LIST)} {foreach from=$ORDER_LIST item=order} <div> <br/> <center><img src="../images/logos/{$SKIN}.php" alt="" /></center> </div> <br/> <div id="printLabel"> <div> <b>Delivery Address:</b> <br/> {$order.title_d} {$order.first_name_d} {$order.last_name_d}<br /> {if !empty($order.company_name_d)}{$order.company_name_d}<br />{/if} {$order.line1_d} <br /> {if !empty($order.line2_d)}{$order.line2_d}<br />{/if} {$order.town_d}<br /> {$order.state_d}, {$order.postcode_d}<br /> {$order.country_d} </div> <!-- <div class="sender">{$LANG.address.return_address}<br />{$STORE.address}</div>--> </div> <div class="info"> <!--<span class="orderid">--> <strong>{$LANG.common.order_id}</strong> {$order.cart_order_id} {$order.ship_method} <br/><br/><strong>{$LANG.orders.title_receipt_for}</strong> {$order.order_date} <!--</span>--> </div> <div class="product"> <span class="price">{$LANG.common.price}</span> <strong>{$LANG.common.product}</strong> </div> {foreach from=$order.items item=item} <div class="product"> <span class="price">{$item.price}</span>{$item.quantity} × {$item.name} {if !empty($item.product_code)}({$item.product_code}){/if} {if isset($item.options)} <br />{$LANG.catalogue.title_options} {foreach from=$item.options item=option}» {$option}{/foreach} {/if} </div> {/foreach} <div id="totals"> <div class="total">{$LANG.basket.total_sub} <strong>{$order.subtotal}</strong></div> <div class="total">{$LANG.basket.total_discount} {if !empty($order.percent)}({$order.percent}){/if} <strong>{$order.discount}</strong></div> <div class="total">{$LANG.basket.shipping} <strong>{$order.shipping}</strong></div> {if isset($order.taxes)} {foreach from=$order.taxes item=tax} <div class="total">{$tax.name} <strong>{$tax.value}</strong></div> {/foreach}{/if} <br /> <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> </div> {if isset($order.customer_comments)} <div id=" "><strong>{$LANG.orders.title_notes_extra}</strong> - {$order.customer_comments}</div> <br/><br/> {/if} <div> <p><center>Thank you for buying from us!</center></p> <p> If there are any problems with your shipment, please let us know within three (3) days of receipt, and we will work with you to resolve the situation. We want you to be happy with your purchase. We hope we can do business again in the future, so please ask if you don't see what you are looking for. We are working on adding our items to our Online Catalog, since we have a much larger inventory of plush animals and dolls than we have listed.</p> <p>Please bookmark our site at <a href="http://dirtybutter.com/plushcatalog/ ">http://dirtybutter.com/plushcatalog</a> and tell your friends and family about us. We also run a free Plush Memories Lost Toy Search Service at <a href="http://plushmemories.com/">http://plushmemories.com</a>. If you, or anyone you know, are looking for a lovie we will be glad to help you find it.</p> <p align="center"><i>"Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me."</i></p> <p align="center">John 14:6 KJV</p> </div> <div id="footer"> <br/> <p><b>{$STORE.address}</b></p> </div> </div> {if not empty($customer.comments)} <!--<div class="page-break"> <div id="header"> <div id="printLabel"> <div>{$order.address}</div> <div class="sender">{$LANG.address.return_address}<br />{$STORE.address}, {$STORE.county}, {$STORE.postcode} {$STORE.country}</div> </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" alt="" /> </div> </div>--> <div class="info"> {foreach from=$customer.comments item=note} {$note} {/foreach} </div> </div> {/if} {/foreach} {/if} </body> </html> Maybe that will give you some ideas. Actually this is very helpful. Any chance you know the variables for Billing address? I'd like to display the billing address to the left of the shipping address. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 5, 2012 Share Posted June 5, 2012 Sorry, but I can't help with this. Hopefully someone else will be along soon with the answer. Quote Link to comment Share on other sites More sharing options...
Ms Holly Posted June 5, 2012 Share Posted June 5, 2012 </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" height="71" width="250" alt="" /> </div> </div> Sparky, I had the same problem but made a minor adjustment to ../admin/skins/default/templates/orders.print.php around line 26. Original - </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" alt="" /> </div> </div> Changes - </div> <div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" height="71" width="250" alt="" /> </div> </div> Where the height="xx" and the Width="xx" I used a graphics package to reduce my original logo down to keep it perspective. Hope that helps. Okay silly question I know but when resizing what are the numbers are they pixels, mm, inches? Thank you Holly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.