- Posts: 45
- Thank you received: 0
Re: House Number and Street Name
hope you can help with the following:
I have many customers just entering the house number in the house no. street field and not entering the streetname. this is causing me to email them and get the street name from them. Is there a way to split this in to 2 separate required fields? and then pass these to paypal as: house no > address line 1 and street name > address line 2?
Thanks in advance.
Please Log in or Create an account to join the conversation.
You will have to edit the address_template files in the menu Display->Views to add that new field.
Also, in the plugins/hikashoppayment/paypal.php you will have to edit the code to change the system to send the information as you said, by changing :
$vars["address2"]=$address2;
to:
$vars["address2"]=$order->cart->$address_type->NEW_FIELD_COLUMN_NAME;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
added:
{address_street} {address_street2}
in address_template files in the menu Display->Views
changed:
$vars["address2"]=$address2;
to: $vars["address2"]=$order->cart->$address_type->address_street2;
but nothing has changed on the registration form.
I'm sure I'm missing something silly please help me out.
thanks.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I would like to split address too and have one field adddress for the street and one field for the house number. I took address2 for this purpose. But unfortunately the house number field is not shown during the checkout process. please see images attached. What is missing? Anita
activating address2 field everything is fine during checkout step 1 now the second field is missing
Please Log in or Create an account to join the conversation.
You need to add the {address_street2} tag to the "address format" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/5...ml#checkout_shipping
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The invoice also uses the "address format" setting.
So you should be fine.
If that doesn't work only for the invoice, it means that the system wasn't able to add the view override for the address_template for your backend template.
So go in the menu Display>Views of HikaShop and search for address_template for your backend template. Then, edit the view and make sure you have the tag in it and save.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Can you provide a screenshot of the view override ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You've written adress with one d instead of address with 2 d.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Unfortunately it is missing there
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The custom field should appear automatically in the exported CSV. I do get it automatically on my end when I use the export button of the ready to ship report after having placed orders with that address field filled.
Can you double check ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I think that's because you have many orders without the custom field filled in. I've changed your report to only show the orders redy to ship from the past month. They all have the house number field filled in and the export does have the column for it.
So edit the ready to ship orders with the house number field empty and fill it properly and then try again and it should work.
Please Log in or Create an account to join the conversation.