Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted
Hi

I have installed the second address line contribution http://addons.oscommerce.com/info/1855. I was wondering if anyone else was having any trouble with the second address line not appearing on the invoice and packing slip.

 

danielr

Posted from the install package.

 

--------------------

Changes in 1.5

--------------------

by:Vincenzo Penza

aim:vinc3nzo

web:www.penzamedia.com

mail:[email protected]

 

 

Notes:

I installed this package properly, and found that the second address line was missing in the invoices, as well as sever other places. If you look at this section of the install package....

 

 

Disclaimer:

I did not write this contribution, but find it very useful, and only one problem in the code. Hope this helps!

 

 

 

 

---------------------------------------

in catalog/checkout_process.php:

---------------------------------------

 

FIND (at or around line 57):

 

'customers_street_address' => $order->customer['street_address'],

 

REPLACE WITH:

 

'customers_street_address' => $order->customer['street_address'],

// Second Address Field mod:

'customers_street_address_2' => $order->customer['street_address_2'],

// :Second Address Field mod

 

 

FIND (at or around line 74):

 

'delivery_street_address' => $order->delivery['street_address'],

 

REPLACE WITH:

 

'delivery_street_address' => $order->delivery['street_address'],

// Second Address Field mod:

'delivery_street_address_2' => $order->delivery['street_address_2'],

// :Second Address Field mod

 

 

FIND (at or around line 86):

 

'delivery_street_address' => $order->delivery['street_address'],

 

REPLACE WITH:

 

'delivery_street_address' => $order->delivery['street_address'],

// Second Address Field mod:

'billing_street_address_2' => $order->billing['street_address_2'],

// :Second Address Field mod

------------------------------

 

you'lll notice he wrote the last 6 lines improperly for $order->billing

 

I've changed the last 6 lines of the above code (right after the final REPLACE THIS:) to this:

 

---------------------------

'billing_street_address' => $order->billing['street_address'],

// Second Address Field mod:

'billing_street_address_2' => $order->billing['street_address_2'],

// :Second Address Field mod

-------------------------------

 

 

I've already made the changes to the install text, so no need to reference this page. It's just an explanation of what i changed.

 

 

-Vincenzo

Posted (edited)
Hi

I have installed the second address line contribution http://addons.oscommerce.com/info/1855. I was wondering if anyone else was having any trouble with the second address line not appearing on the invoice and packing slip.

 

danielr

Hi Daniel

 

Instead of answering the pm via pm, did you make the edits in the admin area? eg customers.php and do you see the second address line when you look at a customers account in admin eg when you go to edit a customers details?

Edited by Coopco
Posted

Hi Coopco

Yes I have checked the admin area and customers details and the second address line is there, also when 'filled' in by the customer still does not show on invoice.

Dan

Posted
Hi Coopco

Yes I have checked the admin area and customers details and the second address line is there, also when 'filled' in by the customer still does not show on invoice.

Dan

OK

admin\includes\classes\order.php

admin\includes\functions\general.php

admin\includes\languages\english.php

admin\customers.php

These are the only edits in admin that I can find.

Posted

Hi Coopco

I have triple checked all the admin files for required alterations and they are OK. I did a test purchase on the site and the 2nd line shows every, delivery address, billing address etc. But not on the Invoice ?

 

Dan

Posted
Hi Coopco

I have triple checked all the admin files for required alterations and they are OK. I did a test purchase on the site and the 2nd line shows every, delivery address, billing address etc. But not on the Invoice ?

 

Dan

OK, that has me stumped.

  • 3 weeks later...
Posted
OK, that has me stumped.

I've got the same problem with the second line not showing on the invoice. I've just had one returned order by post because I used an incomplete shipping address and fortunately the order was returned.

 

Everything was working fine before I switched to Worldpay. I have just checked back over my orders for customers' who have used the second line address field and it shows in both the customer details and on the invoice. SO, it was working before I switched to the Worldpay module.

 

It's bizarrre because now (using Wpay) both the Delivery and Billing Address shows up 100% correct (with second line) on the customer email. It's just the invoice that's not showing - v.strange.

 

BTW, i am using Worldpay Junior module.

 

If anyone could shed some light on this, i'd be pleased because i prefer to use the invoice to write my customers' delivery addresses.

  • 9 months later...
Posted
I've got the same problem with the second line not showing on the invoice. I've just had one returned order by post because I used an incomplete shipping address and fortunately the order was returned.

 

Everything was working fine before I switched to Worldpay. I have just checked back over my orders for customers' who have used the second line address field and it shows in both the customer details and on the invoice. SO, it was working before I switched to the Worldpay module.

 

It's bizarrre because now (using Wpay) both the Delivery and Billing Address shows up 100% correct (with second line) on the customer email. It's just the invoice that's not showing - v.strange.

 

BTW, i am using Worldpay Junior module.

 

If anyone could shed some light on this, i'd be pleased because i prefer to use the invoice to write my customers' delivery addresses.

 

Same problem here. Read through these posts and tried to fix with no luck. shows up everywhere but on invoice and packing slip. i gave up and removed this contribution since there are no fixes here.

What would you do if you knew you could not fail?

  • 1 month later...
Posted

I dig that thread out cause I have sort of the same problem...

 

My 2nd line address shows everywhere BUT in the admin/order.php and invoice/packing slip if the custoemr choose PAYPAL as paying method..

my second payment method is EU bank transfer and this works fine!

 

anyone faced the same issue?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...