Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help>minor error big problem


Peter Dirks

Recommended Posts

I have the following problem...

 

when i register as a customer all info is being shown correctly

when i order as the same customer all info is being shown correct

on the checkout_payment.phppage the delivery adress is shown correctly

on the checkout_confirmation.php page the delivery adress is shown correctly

 

 

however when i look at the database

in the table "orders" the "delivery_Country" gives the value as the first letter of the Country"N" for Netherlands of "U" for the United states, no matter if i don't use or do use the "shipping adres book" when ordering it would show give the "full" country description

 

this causes the invoices & shipping info to give the incorrect information

 

the settings for delivery_country in the database are Type= varchar(32) Null = No

 

also looking at the adressbook-tabel the correct Country ID is displayed

looking at the countries-tabel the correct information is shown..

 

 

in the checkout_process the following code is given for the delivery_country: 'delivery_country' => $order->delivery['country']['title'],

 

which seams to be the identical code as mentioned at 'customers_country' => $order->customer['country']['title'],

 

 

where/what/how do i need to change to show the correct info

to give the database the correct "full" country description on the delivery country instead of the current "first" letter of the country

 

Thanx for your time

Link to comment
Share on other sites

where/what/how do i need to change to show the correct info

 

Have you made any customisations to the checkout process or added any contributions??

 

This works fine in vanilla CVS.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

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

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

I just found the same problem. It was working just fine until I added the Gift Voucher Contribution, so i'm going to start looking at that. Did you installt hat contribution? I only see the first character showing of the country when you look at the order history details in the customers account.

Link to comment
Share on other sites

tyler_durden> i didn't install the gift voucher contribution..

btw when i looked at the account_history , at the "view order" in order history.

the location of the Delivery Adress is completely empty

only the shipping details are shown..

on the view order summary page , the "ship to name" is shown..

 

tonight i'll down the lastest 2.2 version to and verify the checkout process

Link to comment
Share on other sites

i fixed it.... :D

 

The part which caused the problem was caused by the

checkout_process.php page of which

i changed 'delivery_country' => $order->delivery['country'][title],

into 'delivery_country' => $order->delivery['country'],

and it worked/works as a charm..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...