Housenumber field
Firecheckout can convert the second street line field into housenumber. All you need is to call the javascript initialization from firecheckout page.
- Create
custom.js
file - Using custom.css and custom.js -
Add the following code inside created
custom.js
document.observe('dom:loaded', function() { var addressTypes = ['billing', 'shipping']; addressTypes.each(function(addressType) { if (!$(addressType + '-new-address-form')) { return; } new FC.Housenumber(addressType, { required: ['IE', 'CH'], optional: ['*'], label: Translator.translate('House Number') }); }); });
- Let’s translate the field! Create
custom.phtml
file - Using custom.phtml -
Add the following content into this file:
<script> Translator.add('House Number', "<?php echo $this->__('House Number') ?>"); </script>
-
Add translations to your theme csv file -
app/design/frontend/argento/default/locale/de_DE/translate.csv
:"House Number","Hausnummer"