Author Topic: Possible to add extra address fields  (Read 2977 times)

Offline N1kko

  • Posts: 137
  • Gender: Male
Possible to add extra address fields
« on: December 09, 2014, 12:26:59 PM »
Hi,

Is it possible to add extra address fields? Such as

Address Line 1
Address Line 2
Address Line 3

Thanks
My Tools: MacBook Pro Retina, Coda2, Sketch 3... Couldn't live without them

Offline seanie_morris

  • Posts: 287
  • Gender: Male
Re: Possible to add extra address fields
« Reply #1 on: September 10, 2015, 01:03:40 PM »
Hi,

It is, I have done it, but there are 7+ pages that need modification. It's a long process. What I did is take a field e.g. 'First Name' and search the downloaded bakery directory to look for files with 'first+name' in it (under Contents, not File Name), copied those files as back up, and amended as necessary with Notepad or Dreamweaver. These files with that search phrase all have the coding that relates to the contact form during checkout process

The files were:
view.php , view_form.php , view_summary.php , save_form.php , (then in /languages directory) EN.php , EN-GB.php , (then in payment_methods/paypal directory) post_data.php

To make it suit my needs for my site I'm working on, I changed 'First Name' to 'Your Name' and then changed 'Last Name' to 'Child Names' where relevant (keeping in mind the case and spelling) in the files needed. Uploaded them to overwrite the files that needed changing (including the post_data.php in the PayPal folder), and it worked fine. Studying the code to see how it is laid out (and I am NOT a programmer) allowed me to add extra fields as well.

Seanie.

Offline N1kko

  • Posts: 137
  • Gender: Male
Re: Possible to add extra address fields
« Reply #2 on: September 10, 2015, 01:15:13 PM »
Thanks but I no longer use Website Baker!
My Tools: MacBook Pro Retina, Coda2, Sketch 3... Couldn't live without them