Skip to main content

show address custom field in checkout

8 years 9 months ago #288038 by aminweb
-- HikaShop version -- : 3.2.1

hi,
how do to show address_telephone field in checkout page?
I want show this field(address_telephone ) in show_block_fields.php . (for use acysms)
note: user before redirect in checkout page,be login . so dont show register form in checkout page(Ask address on registration).
so thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288040 by Mohamed Thelji
Hello,

Only custom fields from the "Order" table will be displayed through the "show_block_fields" view, and the "address_telephone" custom field will only be displayed through the checkout address step.

So the solution will probably be to directly use an Order custom field, else you'll have to write custom code.
The following user(s) said Thank You: aminweb

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288057 by aminweb
thanks Mr Mohamed T;
please help me to write custom code.It`s essinteiall.
so thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288064 by nicolas
Hi,

I do believe that AcySMS is able to use the phone number from address_phone directly. So I don't see why you would need to do that.
Did you ask the AcySMS support about it ?
What did they tell you ?

Please understand that this is a user support forum. We can't spend a few hours or a few days developing some custom code for you.
If you need help from a developer to do custom coding, please contact our partners:
www.hikashop.com/home/our-partners.html
The following user(s) said Thank You: aminweb

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288103 by aminweb
thanks Nicolas for reply,
I dont tell acysms.
but I want only show address_phone field in checkout page.(I have not any registration/address form in checkout page.becuse not requierd for my store.)
Is there a simple code to show the address_phone's field?
so thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288129 by nicolas
Hi,

There is no simple code to have the address phone field only on the checkout.
It is possible to have only the email address and the address phone field however, and without any coding.
For that, you want to disable the other address fields via the menu Display>custom fields, and you want to select "guest" in the "registration" setting and keep the "login" and "address" blocks in the "checkout workflow setting in the HikaShop configuration.
The following user(s) said Thank You: aminweb

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288142 by aminweb
thanks Nicolas,
but not worked!!!
when keep the address block in checkout workflow , show save,cancel button.so not good .
any other soluation?
thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288149 by nicolas
Hi,

The show, save and cancel buttons won't display if you do what I said in my previous message unless you turned off the "Ask address on registration" setting. So please check that this setting is activated.
In fact, you can remove the "address" view and keep only the "login" view and that should be enough for AcySMS since it will have the email address and the address phone fields on the guest form of the login view.

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288213 by aminweb
thanks Nicolas,
but I have`nt login form in checkout page. beacuse in my store ,first user must be login then go to checkout page.so I have`nt any login/register form in checkout page.
only I want insert a one custom field of address in checkout page(not address block in checkout workflow)
so thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288215 by nicolas
Hi,

As I already said, in that case, you'll need to have a developer work on that for you.

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288228 by aminweb
ok.thanks.
please tell me which one hikashop file must be edit?
thanks

Joomla Developer | am.ebrahimzadeh[at]gmail.com

Please Log in or Create an account to join the conversation.

8 years 9 months ago #288230 by Mohamed Thelji
Hello,

It will depends on how you wan to develop it and on where you want to display your custom "address_phone" field, so you'll at least have to edit files of the "checkout" view of your front-end template via "Hikashop->Display->Views".

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum