Custom fields and editing emails

  • Posts: 9
  • Thank you received: 0
8 years 2 months ago #250237

Hi, I am using HikaShop Business and need help with a couple of features.

1. How do I edit just the text for HikaShop order emails? In the HikaShop email tutorial it says "If you only need to tweak text in the emails, you can edit the translation files via the configuration page of HikaShop and edit them there. That will allow HikaShop to send emails in the language of the customer." Where exactly do I find these translation files and is this the right file to edit also for the English (main language) emails?

3. How do I add a datepicker custom field to a single product?
- I've created the field (HikaShop > Display > Custom fields) and attached it to the product I want, but it won't show on the frontend. When this field is published and attached to the product, it also creates an error on the backend when trying to edit the product. The error message is:
"Error
Please complete the Visit date field
Error Saving"
- I currently have the links to products disabled in the product category view; in order to utilise the datepicker feature in a product, does the single product page need to be accessible to the customer, or could they for example fill in this field on the checkout?

As the site is only accessible to registered users, please use the provided login to view.

Thank you and if you need any further info, let me know.

Last edit: 8 years 2 months ago by Jerome. Reason: remove confidential information

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250291

Hi,

1. Yes, that's the correct location regardless of the language. You can follow the instructions here:
www.hikashop.com/download/languages.html#translate

3. You need to create a custom field of the table "item". From your description of the issue, it looks like the custom field you created is of the table "product". So you need to delete it and recreate it with the correct table for what you want.

4. If you want the field to appear during the checkout, you need to create instead a custom field of the table "order".

The following user(s) said Thank You: lpks

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

  • Posts: 9
  • Thank you received: 0
8 years 1 month ago #251026

Thank you for your help Nicolas, much appreciated!

I have another quick question; is it possible for a logged in user to type in another email address on the checkout and have the order confirmation be sent to that alternate email address instead of the email address with which the user is logged in? I tried setting up an email address custom field on the checkout, but couldn't figure out how to make that the address that the order confirmation emails would go to.
I am setting up a wholesale site for e-tickets, and will create logins for my wholesale agents, who will have several individuals using the same login. I would like to give them the option of receiving their orders and tickets to their individual email addresses instead of all going to the same main address that the account is linked to.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #251059

There is no option to do that.
It will require editing the emails via the menu System>emails and adding custom code to get the value from the address and add it as receiver.
Something like that near the end of the preload version of the order notification emails should do:

$data->customer->user_email = $data->cart->billing_address->XXX;
where XXX is the custom field column name.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum