| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Modifing the main/order_invoice_print.tpl Template | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Modifing the main/order_invoice_print.tpl Template
Im trying to modify the Invoices that we print from xcart. I want to add my companies name and address on each invoice so we don't have to stamp the invoices by hand.
http://www.painfulpleasures.com/body_jewelry/images/invoice_image.gif this is the information or image im trying to put in the template This is the Order Invoice Print Template below <html><body><pre> {section name=oi loop=$orders_data} { include file="mail/order_invoice.tpl" order=$orders_data[oi].order customer=$orders_data[oi].customer products=$orders_data[oi].products giftcerts=$orders_data[oi].giftcerts}http://www.painfulpleasures.com/body_jewelry/images/invoice_image.gif {if $config.Appearance.print_orders_separated eq "Y"} {assign var="separator" value="<DIV style='page-break-after:always'></DIV>"} {else} {assign var="separator" value="=========================================== ===================================="} {/if} {if not %oi.last%} {$separator} {/if} {/section} </pre></body></html> I can insert the image and when i do a test print the image appears at the top which is ok, but i need to put the image off to the right in the dead space. On the left we have the default invoice set up, with the order Id, Customer name, Customer billing and shipping address and on the right is about half a page of nothing. If i can put my companies info over there that will save us paper and stamping. please advise how i would modify the template to do this? Thanks again marc
__________________
Xcart gold 3.5.4 |
|||||||||
#2
|
|||||||
|
|||||||
I would try using tables to place the text and images where you want. Perhaps you can take
Code:
and replace with this: Code:
That might work but I can't test it cause my server is having problems Hope it works
__________________
~zilker uummm...perhaps you should tell me again. http://www.designertrends.com Version 4.0.6 Unix |
|||||||
#3
|
|||||||||
|
|||||||||
Thanks for the tip
unfortunatly it didn't work exactly Order id: #10638 Order date: 21-09-2004 08:59:38 Order status: P Customer info: --------------------- First Name: Melinda Last Name: Hicks Phone: 785-762-3799 Fax: E-Mail: frogtoe1967@yahoo.com URL: Billing Address: ---------------- First Name: Melinda Last Name: Hicks Address: 1935 Northwind Dr Lot 13 City: Junction City State: Kansas Country: United States Zip code: 66441 Shipping Address: ----------------- First Name: Melinda Last Name: Hicks Address: 1935 Northwind Dr Lot 13 City: Junction City State: Kansas Country: United States Zip code: 66441 Credit card information: ------------------------ Customer notes: --- Advanced info --- Reason: Approved: Approval Code: 599181 AVS info: Address (Street) and 5 digit ZIP match CVV info: not set / Products ordered: ----------------- SKU: MN844 Product: 14g-12g-10g SINGLE 8MM GEM WITH DANGLE CROSS AND GEM Quantity: 1 Selected options: Gauge: 14g Length: 7/16"~11mm Color: Red Customer Notes: Item price: $ 8.99 SKU: MN875 Product: 14g-12g-10g SINGLE 8MM GEM WITH HOLLOW HEART AND GEM DANGLE NAVEL BELLY BUTTON RING Quantity: 1 Selected options: Gauge: 14g Length: 7/16"~11mm Jewel Color: Lt. Sapphire Customer Notes: Item price: $ 8.99 SKU: MN851 Product: 14g-12g-10g 8MM SINGLE GEM WITH 3 HANGING HEARTS Quantity: 1 Selected options: Gauge: 14g Length: 7/16"~11mm Color: Red Customer Notes: Item price: $ 9.99 SKU: MN856 Product: 14G 3/8" KISSING TRIPLE LIPS AND HEART NAVEL BELLY RING Quantity: 1 Selected options: Gauge: 14g Length: 3/8"~10mm Color: Pink Customer Notes: Item price: $ 13.99 Total: ------- Payment method: Credit Card (US, CANADA, UK, AUSTRALIA Residents Only) (Authoriz Delivery: Post Office Priority Mail (Retail 2-5 days NOT guaranteed) Subtotal: $ 41.96 Discount: $ 0.00 Coupon saving: $ 0.00 () Shipping cost: $ 5.99 Tax: $ 0.00 Total: $ 47.95 it jumbled the entire invoice, but it did put the image to the far right. let me know if you have any suggestions on how to unjumble? thanks marc
__________________
Xcart gold 3.5.4 |
|||||||||
#4
|
|||||||
|
|||||||
If that's the case, you'll probably have to put html breaks throughout the entire invoice. My site is back up today, perhaps I'll give it a try.
__________________
~zilker uummm...perhaps you should tell me again. http://www.designertrends.com Version 4.0.6 Unix |
|||||||
#5
|
|||||||||
|
|||||||||
From my 3.5
/mail/html/order_invoice.tpl Code:
Keep in mind I have Custom Language variables in there. /main/order_invoice_print.tpl Code:
this should give you a starting point. Note, I have HTML mail enabled. |
|||||||||
#6
|
|||||||||
|
|||||||||
Thanks for the tips
I am very unfamilar with php. So everything you posted looks like greek. I don't understand the two different boxes that were submitted? i copied the top one and pasted it in the template but recieved an error. then i tried the next one and received an error as well. thanks marc
__________________
Xcart gold 3.5.4 |
|||||||||
#7
|
|||||||||
|
|||||||||
Marc,
Posting more code would be a waste of time. PM me. When I get a chance I'll hook up with you and lend a hand. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|