Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Additional fields for address book

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #91  
Old 04-22-2013, 07:24 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Additional fields for address book

Praise Jesus! This was one of the most requested feature for XC. Great to have it on board.

Thanks for letting me know.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #92  
Old 04-23-2013, 10:13 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Additional fields for address book

Quote:
Originally Posted by ADDISON
Praise Jesus! This was one of the most requested feature for XC. Great to have it on board.

Thanks for letting me know.

The way they added it doesn't really cut it. You will still have to do like Steve posted to have a decent Company Name field.

In my opinion it is borderline inexcusable that the fields are not manageable in the back-end... we should be able to add anywhere and reorder.
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #93  
Old 04-23-2013, 10:49 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Additional fields for address book

What you told me is really sad. Another unfinished job from QT?
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #94  
Old 04-23-2013, 10:21 PM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Additional fields for address book

Quote:
Originally Posted by GreatLakesVacuum
we should be able to add anywhere and reorder.

You can add an additional 'Company' field to be displayed in any section - this can be done on the User Profiles page:

- Address book (billing & shipping address)
- Personal information
- Additional information

What is wrong with it?

However, to reorder the fields, you will still have to customize your X-Cart templates.
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote
  #95  
Old 04-24-2013, 04:44 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,532
 

Default Re: Additional fields for address book

Quote:
Originally Posted by seyfin
What is wrong with it?
Please read back through the thread. Some specific points were made that would be really useful.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #96  
Old 05-11-2013, 11:00 AM
 
shwekhaw shwekhaw is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 144
 

Default Re: Additional fields for address book

Ok I have done reading 10 pages of this threads. I installed new version 4.5.5. This is new store with no customer data yet so it is the best time to do modifications and I want to start things right.

I tried Sergey suggested. I added 'Company' Field under additional field to appear in Address book section. Then I edit template file to reorder so Company field show up on the top part. The form looks the way I wants. But I have problem at checkout.

For One Page Checkout, company field does not show at checkout page. But when the order is placed, it shows up on invoice page as well as on admin order detail page.
So which template do I edit to have Company name show up on checkout page?

For Fast Lane Checkout, only the company name from default address shows up on checkout page. If you change the address to another address n the address book, company name does not change and still show the one form default address. On the invoice and order detail page, it shows correct company name for most cases. But when shipping a address is not default address, company name for billing show up as blank. I think this problem is more like bug in coding. If so please move this to proper forum.

I also looked at Steve code to hard code Company name field. However will it work with One page checkout or fast lane checkout? I do not see any file under those modules are being edited.
__________________
X-Cart Gold Plus 4.5.5
Checkout ONE
Checkout ONE DPM
BCSE CIM
Apache
Linux
Reply With Quote
  #97  
Old 05-11-2013, 08:58 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,032
 

Default Re: Additional fields for address book

Quote:
Originally Posted by shwekhaw

I also looked at Steve code to hard code Company name field. However will it work with One page checkout or fast lane checkout? I do not see any file under those modules are being edited.
Yes it does work
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #98  
Old 05-11-2013, 09:19 PM
 
shwekhaw shwekhaw is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 144
 

Default Re: Additional fields for address book

I was able to tweak the code to make Company Name appear in OPC checkout page. Somehow value of additional_field.avail is not coming out as expected in following two files.
common_files/customer/main/address_details_html.tpl
common_files/modules/One_Page_Checkout/profile/address_fields.tpl

If you remove that from if statement, it shows up. For example, I changed
Quote:
{if $field.avail eq 'Y' and $field.section eq 'B'}
in address_details_html.tpl to
Quote:
{if $field.section eq 'B'}
Did a similar change address_fields.tpl file.

I do not understand why $field.avail value is not 'Y' as expected. I traced the code to func_get_additional_fields function but not sure how it does not pass the value as Y. Again I am not programmer. May be someone can explain.

Quote:
Originally Posted by shwekhaw
For One Page Checkout, company field does not show at checkout page. But when the order is placed, it shows up on invoice page as well as on admin order detail page.
So which template do I edit to have Company name show up on checkout page?
__________________
X-Cart Gold Plus 4.5.5
Checkout ONE
Checkout ONE DPM
BCSE CIM
Apache
Linux
Reply With Quote
  #99  
Old 07-27-2013, 12:27 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,532
 

Default Re: Additional fields for address book

This patch seems to have an issue with 4.4.5 and FLC. Additional fields are not shown for logged in customers editing an existing address book entry. Add New Address shows the fields fine.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #100  
Old 03-16-2014, 11:35 AM
 
Steel Steel is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 253
 

Default Re: Additional fields for address book

If at least one new field was required among the existing fields (hard coding required), and some rearrangement of the existing fields was necessary, AND a third address set of fields was required, would it be best to hard code, or utilize the additional fields feature for the third address set of fields, assuming all the new third address fields would be at the bottom?
__________________
X-Cart Gold v4.6.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:12 AM.

   

 
X-Cart forums © 2001-2020