Need to add text field to customer emails

  • Posts: 5
  • Thank you received: 1
10 years 8 months ago #147860

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.19
-- PHP version -- : 5.3.22
-- Browser(s) name and version -- : Maxthon and Chrome
-- Error-message(debug-mod must be tuned on) -- : Error_message

Been all other these forums, to the FAQs page, and the Documentation trying to understand how to simply add a text field to the confirmation email to the customer. My client wants to be able to change this message on a weekly basis. It has to be easy. What are the steps to add a text field to the confirmation email? Is it through Display/Custom fields? Or System/Emails? Or through the PayPal module?

I look forward to your help.

Betsy

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 8 months ago #147871

Hi,

Why not simply tell him to edit the email via the menu System>Emails ? He could add his text directly in the email where he wants.
If you would update to the latest version of HikaShop, there is no PHP anymore in the emails, only HTML so it makes it far more easy to edit them.

Otherwise, you would have to edit one of the view files of the view "config" in order to add the field where your client would enter his text. If you set a correct name in your textarea, the system will save it in the configuration automatically (simply take example on the other fields of the configuration).
Then you would edit the email in the menu System>Emails and ass such code:
<?php $config = hikashop_config(); echo $config->get('XXX'); ?>
where XXX would be the name of your configuration namekey ( so XXX if the name of textarea would be data[config][XXX] )

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

  • Posts: 5
  • Thank you received: 1
10 years 8 months ago #147980

I haven't upgraded to the newest version due to the fact that we are still testing the shopping cart and have not migrated the test site to the live site yet. Because this site is still in test mode and is sitting in a subdomain, I have not added the website to the "license" that is required for the upgrade. Can I simply add the URL where the test site sits to the "license", make the upgrade, and then change the "license" later? (Plus, I have read that people have been having issues upgrading and simply don't need the extra frustration at this time.)

I'm looking at the HTML version of the ORDER_STATUS_NOTIFICATION_SUBJECT under System/Emails. There is Main Information, Attachments, and Sender Information. Just below it is the Text version which I'm ignoring at this time. Where can I find the documentation that explains how to edit the email? Do we edit the Main Information or Sender Information? What does "{TXT: ORDER_TITLE}", etc mean? Is this where I make the change? My client has zero coding experience so I have to give them exact instructions on how to make changes.

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

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #148005

Is this option to edit emails only available in Hika Business?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #148133

Hi,

@bafrazier: You can add the desired custom text in the HTML part like on the screenshot for example.
To make it easiest for your client, you can put html comments around the part to edit, like:

<!-- PART TO EDIT -->
The custom text which can be changed when desired.
<!-- EO PART TO EDIT -->

@woolly shepherd: Yes it's available only in the business edition.

Attachments:
Last edit: 10 years 8 months ago by Xavier.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum