The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-01-2012, 11:32 AM
asepdd512's Avatar
asepdd512 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 6
Default

how to hide text ""Address Line 2""Apartment, suite, unit, building, floor, etc" using custom CSS?


is that possible?
  #2  
Old 08-01-2012, 12:31 PM
Kess's Avatar
Kess Kess is offline
Senior Member
 
Join Date: Feb 2012
Posts: 2,071
Default

Would you like to hide the text only, or the address line 2 field as well?
  #3  
Old 08-01-2012, 04:30 PM
asepdd512's Avatar
asepdd512 asepdd512 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 6
Default

both of them and also a "not mandatory field" like zip/postal code,
and also is that possible to change address line 1 field into text area, tx

Last edited by asepdd512; 08-01-2012 at 04:58 PM.
  #4  
Old 08-02-2012, 09:35 AM
Kess's Avatar
Kess Kess is offline
Senior Member
 
Join Date: Feb 2012
Posts: 2,071
Default

First of all I should say the the zip/postal code is not required for the billing address, but not for shipping address, if you sell internationally. It can be required for real-time shipping costs calculation, and if you remove this field from the shipping address form. Thus we would strongly recommend keeping if in the shipping address form.

The text "Zip/Postal" code can be hidden globally for all the pages only. I.e. even if you hide the field from the billing address page only, there is no way to remove the field name from this very page and leave it in the billing form.

Thus if you plan to sell your goods internationally, and if you plan to use real-time carrier-calculated shipping methods (like UPS, FedEx, USPS) we would recommend keeping the zip code field. It is not mandatory, so your local customers can ignore it.

But if you plan to sell locally and to not plan to use carrier-calculated shipping methods, this field can be hidden. Please let us know if this is how you plan to trade.

To hide "Address line 2" field you need to add the following CSS rule to to the end of your theme (Ecwid control panel -> System Settings -> Design -> CSS Themes):

Code:
input.ecwid-AddressForm-address2 {
display: none;
}
and click "Save (Ctrl+S)".

To hide the text, please please add the following special JavaScript code to the page you have Ecwid integration code on:

Code:
<script>
ecwidMessages = {
"AddressForm.line2":"",
"AddressForm.line2_tip":""
}
</script>
and save the changes.
The Following User Says Thank You to Kess For This Useful Post:
asepdd512 (08-02-2012)
  #5  
Old 08-02-2012, 03:51 PM
asepdd512's Avatar
asepdd512 asepdd512 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 6
Default

Kess, thank you for the answer, how about to change address line 1 field into text area, is that possible? tx
The Following User Says Thank You to asepdd512 For This Useful Post:
hadimuha (12-24-2014)
  #6  
Old 08-03-2012, 08:22 AM
Kess's Avatar
Kess Kess is offline
Senior Member
 
Join Date: Feb 2012
Posts: 2,071
Default

Unfortunately, no, it is not possible in the current Ecwid version.
Actually, this is why the Address field 2 has been added.
The Following User Says Thank You to Kess For This Useful Post:
asepdd512 (08-03-2012)
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:30 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.