Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with some database changes please


warrenerjm

Recommended Posts

Posted

Hi

 

I am changing the address_format table to show UK address. That's ok as I have changed number 1 to this

 

$firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

I have added a new field in customers table of customers_title so I also need to add this to the above as their title is not showing in the invoice.

 

I have tried

 

Stitle $firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

Scustomers_title $firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

but the title still doesn't show, on new invoices created!

I have checked catalog/admin/invoice.php but it is calling the database info.

 

So please what am I missing?

 

Thanks

Julie

Posted

Can you show us the sql statement that you are using for the invoice?

Posted
Can you show us the sql statement that you are using for the invoice?

Hi Beau

 

Do you mean this line that is in the invoice.php file?

 

<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>

 

Julie

Posted

This may sound really obvious or a typo when you posted...

 

Stitle $firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

Scustomers_title $firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

They should be $ instead?

It's all just ones and zeros....

Posted
This may sound really obvious or a typo when you posted...

 

Stitle $firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

Scustomers_title $firstname $lastname$cr$streets$cr$city$cr$states$cr$postcode$cr$country

 

They should be $ instead?

Opps sorry that was a typo :blush: I have used the $ in the database

Julie

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...