View Single Post
  #98  
Old 05-11-2013, 09:19 PM
 
shwekhaw shwekhaw is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 148
 

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