| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Setting up A Packing Slip | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Setting up A Packing Slip
Hi All
I could do with some help, as my programming skills are limited. I have done the following to create a packing slip: I have modified the /common_files/main/order_label_print.tpl by adding the line {include file="mail/html/order_data_packing.tpl"} at the end, so that when I click on the Quick Label for selected button I get a item list with products as well as the customer address. The order_data_packing file is from this thread http://forum.x-cart.com/showthread.php?t=60671 Now you will see that the layout is a bit too spaced out in the attached PDF, and try as I might I just can't seem to cut out all the spaces between the lines. I can make it narrower by adjusting the table widths, but thats about all. The second thing that would be really useful would be to be able to separate each separate order for print - just like it does when you click on Print Invoices for selected. Any help would be appreciated as I have now reached the limit of my skills Cheers!
__________________
LEM X Cart V5.4.1.34 PHP 7.3.33 MySQL server 5.5.5-10.3.28-MariaDB-log (InnoDB engine support enabled) Web server nginx/1.20.1 Operation system Linux Curl Version 7.61.1 |
|||||||
#2
|
|||||||
|
|||||||
Re: Setting up A Packing Slip
Anyone????
__________________
LEM X Cart V5.4.1.34 PHP 7.3.33 MySQL server 5.5.5-10.3.28-MariaDB-log (InnoDB engine support enabled) Web server nginx/1.20.1 Operation system Linux Curl Version 7.61.1 |
|||||||
#3
|
|||||||
|
|||||||
Re: Setting up A Packing Slip
Hi,
Don't know if I can help so don't get your hopes up, but if you attach the template file it would be a lot easier to have a look.
__________________
X-Cart 4.7.12 |
|||||||
|
#4
|
|||||||
|
|||||||
Re: Setting up A Packing Slip
Hi. Thanks for the offer to help. Below is the text of the file I am using:
{* $Id: order_data.tpl,v 1.18.2.6 2004/12/01 15:15:52 mclap Exp $ *} <h3>{$lng.lbl_products_ordered}</h3> <TABLE cellSpacing="0" cellPadding="5" width="100%" border="0" class="order-data"> <TR {if $is_nomail ne 'Y'}class="TableHeadInvoice"{else}class="TableHead "{/if}> <td align="left"><strong>{$lng.lbl_product}</strong></td> <td align="left"><strong>Selected Options</strong></td> {if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y"} <td nowrap width="100"><strong>{if $order.extra.tax_info.product_tax_name ne ""}{$order.extra.tax_info.product_tax_name}{else}{ $lng.lbl_tax}{/if}</strong></td> {/if} {*<td nowrap width="100" align="left"><strong>{$lng.lbl_item_price}</strong></td>*} <td width="40" align="center"><strong>QTY</strong></td> {*<td width="80" align="right"><strong>{$lng.lbl_total}</strong></td>*} </TR> {foreach from=$products item=product} <TR> <TD>{$product.product} {*BCSE Begin - Preorder Mod*} {if $active_modules.BCSE_Preorder_Backorder} {include file="modules/BCSE_Preorder_Backorder/order_data_product.tpl" product=$product} {/if} {*BCSE End*}</TD> <td> {if $product.product_options ne '' && $active_modules.Product_Options} {include file="modules/Product_Options/display_options.tpl" options=$product.product_options options_txt=$product.product_options_txt} {/if} </TD> {*{if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y"} <TD align="center"> {foreach from=$product.extra_data.taxes key=tax_name item=tax} {if $tax.tax_value gt 0} {if $order.extra.tax_info.product_tax_name eq ""}{$tax.tax_display_name} {/if} {if $tax.rate_type eq "%"}{$tax.rate_value}%{else}{include file="currency.tpl" value=$tax.rate_value}{/if}<br /> {/if} {/foreach} </TD> {/if} <TD align="left" nowrap>{include file="currency.tpl" value=$product.display_price}</TD>*} <TD align="center">{$product.amount}</TD> {*<TD align="right" nowrap>{math assign="total" equation="amount*price" amount=$product.amount price=$product.display_price}{include file="currency.tpl" value=$total} </TD>*} </TR> {/foreach} {if $giftcerts ne ''} {foreach from=$giftcerts item=gc} <TR> <TD> </TD> <TD><NOBR>{$lng.lbl_gift_certificate}:</NOBR> {$gc.gcid}</TD> {if $order.extra.tax_info.display_cart_products_tax_ra tes eq "Y"} <TD align="center"> - </TD> {/if} <TD align="right" nowrap>{include file="currency.tpl" value=$gc.amount} </TD> <TD align="center">1</TD> <TD align="right" nowrap>{include file="currency.tpl" value=$gc.amount} </TD> </TR> {/foreach} {/if} </TABLE> {*<div align="right"> <TABLE cellspacing="0" cellpadding="5" border="0"> <TR> <TD align="right" height="20"><B>{$lng.lbl_subtotal}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.display_subtotal}</TD> </TR> {if $order.discount gt 0} <TR> <TD align="right" height="20"><B>{$lng.lbl_discount}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.discount}</TD> </TR> {/if} {if $order.coupon and $order.coupon_type ne "free_ship"} <TR> <TD align="right" height="20"><B>{$lng.lbl_coupon_saving}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.coupon_discount}</TD> </TR> {/if} {if $order.discounted_subtotal ne $order.subtotal} <TR> <TD align="right" height="20"><B>{$lng.lbl_discounted_subtotal}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.display_discounted_subtotal}</TD> </TR> {/if} <TR> <TD align="right" height="20"><B>{$lng.lbl_shipping_cost}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.display_shipping_cost}</TD> </TR> {if $order.coupon and $order.coupon_type eq "free_ship"} <TR> <TD align="right" height="20"><B>{$lng.lbl_coupon_saving}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.coupon_discount}</TD> </TR> {/if} {if $order.applied_taxes and $order.extra.tax_info.display_taxed_order_totals ne "Y"} {foreach key=tax_name item=tax from=$order.applied_taxes} <TR> <TD align="right" height="20"><B>{$tax.tax_display_name}{if $tax.rate_type eq "%"} {$tax.rate_value}%{/if}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$tax.tax_cost}</TD> </TR> {/foreach} {/if} {if $order.giftcert_discount gt 0} <TR> <TD align="right" height="20"><B>{$lng.lbl_giftcert_discount}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$order.giftcert_discount}</TD> </TR> {/if} <TR> <TD align="right" height="25" colspan="2" class="CartTotal"><B>Order {$lng.lbl_total}:</B> {include file="currency.tpl" value=$order.total}</B></TD> </TR> {if $order.applied_taxes and $order.extra.tax_info.display_taxed_order_totals eq "Y"} {foreach key=tax_name item=tax from=$order.applied_taxes} <TR> <TD align="right" height="20"><B>{$lng.lbl_including_tax|substitute: "tax":$tax.tax_display_name}{if $tax.rate_type eq "%"} {$tax.rate_value}%{/if}:</B> </TD> <TD align="right">{include file="currency.tpl" value=$tax.tax_cost}</TD> </TR> {/foreach} {/if} </TABLE>*} </div> {if $order.applied_giftcerts} <br> <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0"> <TR> <TD align="center">{$lng.lbl_applied_giftcerts}</TD> </TR> </TABLE> <TABLE cellSpacing="1" cellPadding="0" width="100%" border="0"> <TR> <td width="60">{$lng.lbl_giftcert_ID}</td> <td>{$lng.lbl_giftcert_cost}</td> </TR> {foreach from=$order.applied_giftcerts item=gc} <TR> <TD align="center">{$gc.giftcert_id}</TD> <TD align="right" nowrap>{include file="currency.tpl" value=$gc.giftcert_cost}</TD> </TR> {/foreach} </TABLE> {/if} {if $order.extra.special_bonuses ne ""} {include file="mail/html/special_offers_order_bonuses.tpl" bonuses=$order.extra.special_bonuses} {/if}
__________________
LEM X Cart V5.4.1.34 PHP 7.3.33 MySQL server 5.5.5-10.3.28-MariaDB-log (InnoDB engine support enabled) Web server nginx/1.20.1 Operation system Linux Curl Version 7.61.1 |
|||||||
#5
|
|||||||
|
|||||||
Re: Setting up A Packing Slip
Search the forums, there is a edit for X-Cart that adds Packing List button to the Order Details screen.
__________________
X-Cart Classic 4.4.X |
|||||||
#6
|
|||||||
|
|||||||
Re: Setting up A Packing Slip
Hi
Thanks, but I have tried that and all i get is a blank screen when I print the slip.I have triple checked all the files are uploaded but still no joy. That is why I have tried to do it this way.
__________________
LEM X Cart V5.4.1.34 PHP 7.3.33 MySQL server 5.5.5-10.3.28-MariaDB-log (InnoDB engine support enabled) Web server nginx/1.20.1 Operation system Linux Curl Version 7.61.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|