How do edit the Emails?

  • Posts: 125
  • Thank you received: 1
9 years 6 months ago #199080

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.0

Hey guys!

Cant seem to find where is the controls for the emails, How can i edit the email templates?

Many Thanks :)

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
9 years 6 months ago #199084

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: 846
  • Thank you received: 92
9 years 6 months ago #199178

Hi

1) Does the template for send a email with hikaserial attachment can be configure using system -> emails ( index.php?option=com_hikashop&ctrl=email) .
In a old post i give a way to see the mail view/rendering live inside HKS for mail that ll contain hikaserial atttachment since there is no way to edit template in a Joomla editor ( wysiwyg) !

2) is there a documentation about the dynamic fields syntax and howto know/use name value/parameters . I see for example that for Email subject for HTML version ORDER_CREATION_NOTIFICATION_SUBJECT i can see comment and inside comment many call to dynamic variable using the syntax {value1:value2} . So i have if i remove the html css code i have

--HTML version
<!--{IF:USER_ACCOUNT}--> {VAR:URL} {TXT:MAIL_HEADER} <!--{ENDIF:USER_ACCOUNT}-->.

--preload version
$customer = $data->customer;

$vars = array(
'LIVE_SITE' => HIKASHOP_LIVE,
'user' => $customer,

$texts = array(
'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),


Many others questions come about global variable find in preload version area content
what are the global variable name that can be call from this area ? i see
-1 language variable/value ( JTEXT) ,
-2 $global_variable like $data
-3 global function llike hikashop_get('xxx.yyy')
-4 Joomla gobal object like JFactory

How can i know the name of global variable/function i can call from this area? Is there documentation ? For example
1) how can i know i can use class.product inside """ $productClass = hikashop_get('class.product');"""
2) how can i know i can call hikashop_config()

The documentation for Email Edit give information about HTML version and Text version but no information about Preload Version area ??!!!
I think all this is related to php ( global variable for php joomla hikashop library )



regard's

Attachments:
Last edit: 9 years 6 months ago by lionel75.

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
9 years 6 months ago #199184

Hi,

1.Yes.

2. The preload area is not supposed to be modified unless you're a developer.
And if you're a developer, you can easily know what variables are available in it. Just look at the code.
For example, you have a $data variable there which contains all the order data.
If you want to know what it contains and how to use it, just add such line:
<?php var_dump($data); ?>
then have your website send the email and it will display all the content of the variable in the email and that way you'll know how to call the data you need.

In there, you can call any function of HikaShop. So if you know it, you can call it. Like in any views of HikaShop.
And HikaShop doesn't have any global variables. $data isn't a global variable. It's a variable set by HikaShop before including that file. It's the same principle as $module when you are in a module's main file. That variable is set by Joomla just before calling the module file so that the module can access its own data.
$data contains all the necessary data to display the email. There is no other variable.

The following user(s) said Thank You: lionel75, PierreGHTS, twscott, mahwaz

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

  • Posts: 846
  • Thank you received: 92
9 years 6 months ago #199944

Hi
Does translation multi language is supported for mail ? by witch extension ( falang , joomla core ...joomfish ) .
thank's

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
9 years 6 months ago #199959

Yes. The text of the emails is done with translation strings. So you can use normal translation overrides in order to modify them.


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.
Last edit: 9 years 6 months ago by nicolas.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum