X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Additional fields for address book (https://forum.x-cart.com/showthread.php?t=62429)

ADDISON 04-22-2013 07:24 AM

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.

GreatLakesVacuum 04-23-2013 10:13 AM

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.

ADDISON 04-23-2013 10:49 AM

Re: Additional fields for address book
 
What you told me is really sad. Another unfinished job from QT?

seyfin 04-23-2013 10:21 PM

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.

cherie 04-24-2013 04:44 AM

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.

shwekhaw 05-11-2013 11:00 AM

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.

cflsystems 05-11-2013 08:58 PM

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

shwekhaw 05-11-2013 09:19 PM

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?


cherie 07-27-2013 12:27 PM

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.

Steel 03-16-2014 11:35 AM

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?


All times are GMT -8. The time now is 03:00 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.