Jump to content

how to add a field in the 'your billing address' during 'check out'


Recommended Posts

Hi,

I try to add a field in the table with addresses which appers when you click 'check out' - for example I want the phone to appear after the city.

So, I modified the order-address.tpl in my template folder - I added one line after city:




I also modified the order-detail.tpl and addes one line after city, like this:

{$address_invoice->city|escape:'htmlall':'UTF-8'}
{$address_invoice->phone|escape:'htmlall':'UTF-8'}

and... it doesn't show the phone numer.
In fact the line like: is sent to the browser, but without the data.

What else should I modifiy to see the phone number in the check-out table?

regards,
Richard

Link to comment
Share on other sites

Adding fields is going to be difficult without programming knowledge. You'll have to add it in multiple area's plus the database.

Are you truly "Adding" a field or are you just switching them around?

If you're switching them around you should have issues, just cut the line and move it. I did this with all of ours as we're in the US and people are used to entering their info in a different order.

Link to comment
Share on other sites

I don't really want to add additional fields into database.

I just want to show additional info in the checkout view, which already exist in the database, but which are not shown in this view - like phone number, mobile phone, etc...

Link to comment
Share on other sites

Make sure you use the same includes that are on the addresses page. You can't call info that the page doesn't have.

If you look at the addresses page and make sure most of the same includes and call data is at the beginning you should be able to get the data to call up when you start putting it in the html type area.

Link to comment
Share on other sites

  • 1 month later...

I'm not using the default checkout so I'm not sure anymore..

But naturally, the LI itself contains no data, its there for identification by the Javascript file to "inject" the data.

/themes/yourthemedir/js/order-address.js

good luck, that js file is the very reason i modified the whole checkout

Link to comment
Share on other sites

×
×
  • Create New...