![]() |
Easily Copy & Paste Shipping Address of orders
After spending a whole morning frustrated about deleting extra space and field descriptions from the shipping field in the Stamps.com labeling program, I figured I should just modify the way x-cart displays the info so it's easy to copy and paste the shipping address.
It even makes the address stand out better with a tasteful little orange box around it. Copy this bit: Code:
Now open up skin1/main/order_info.tpl and go to around line 438. Select all of this: Code:
{if $customer.default_fields.firstname} And hit delete. Leave the cursor in the empty space at line 438 and paste the new code. Save it & upload it. Yay. |
Re: Easily Copy & Paste Shipping Address of orders
This is fantastic thanks, I had been trying to figure out an easy way to do this without having to change the invoice. I have one quick question, How would I make it so it's properly formatted for an address label rather than one straight line of text. I tried to put a <p> tag in after each line but it left it double spaced like this
fake customer 123 fake St. Someplace ID 12345 But I'd like to look like this fake customer 123 fake St. Someplace ID 12345 |
Re: Easily Copy & Paste Shipping Address of orders
Quote:
A <br /> instead of a <p> will make it drop one line. |
Re: Easily Copy & Paste Shipping Address of orders
Thanks a billion, I guess I should reread HTML for dummies
|
Re: Easily Copy & Paste Shipping Address of orders
I'm tried this in the new 4.3 and it seems to work except for the first and last name showing up.
Any Ideas Thanks |
Re: Easily Copy & Paste Shipping Address of orders
Just a thought, but do you have the customer's first and last names as required? You can check this in admin in the general settings area under "user profiles options".
|
All times are GMT -8. The time now is 10:14 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.