Address Custom Fields not coming up in checkout

  • Posts: 147
  • Thank you received: 6
9 years 3 months ago #211555

Hi,
I have a few custom fields set up for the address table.
I would like them to appear in the checkout page where the user select which address they want to use for shipping.
1 - Why doesn't is come up?
2 - How can I get it to display the address custom fields in the checkout?
3 - Can I set custom fields only for shipping address?

Thanks

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211556

Hi,

The custom field should be configured to be displayed on the front-end.
www.hikashop.com/support/documentation/i...shop-field-form.html

After that, the address is generally "compiled" into a block, thanks to the view "address_template".
So if you did not modify your address template to display the field data in the address block, you can just see the front-end custom field when editing the address.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 147
  • Thank you received: 6
9 years 3 months ago #211816

I see, so I can include whichever fields I want in the address_template. Good.

Also related to address, when I submit an order the email order does not use the shipping address I selected. It uses just the billing address even though I selected a different shipping address.
It seems to be just a problem with the email template as it saves the correct information in the DB.

It might have something to do with the fact that I don't have any shipping method as I use it for quotes.

Is there any chance the email system is looking for a shipping method in order to include the shipping address?

Thanks

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 3 months ago #211819

Hi,

Yes, that's because you removed the shipping view from your checkout workflow.
A shipping method is necessary to display to the customer the shipping address in emails/invoices

If you want to change that, you can edit the emails via the menu System>Emails and change the line:
} elseif(!empty($data->order_shipping_id) && !empty($data->cart->shipping_address) && !empty($data->cart->fields)) {
to:
} elseif(!empty($data->cart->shipping_address) && !empty($data->cart->fields)) {
in the "preload" area of your order notification emails.

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

  • Posts: 147
  • Thank you received: 6
9 years 3 months ago #211918

Hi,
Thanks nicolas. That did the trick.

Cheers

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

Time to create page: 0.062 seconds
Powered by Kunena Forum