[Skip to main content](#vessel-content)

#   How to custom Hika emails with name, style, view online options? + activation

##

- **[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")**
- [![ChristopheMG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46533-christophemg "View ChristopheMG's Profile") Topic Author
- [ Offline](/forum/user/46533-christophemg)

Less More

- Posts: 99
- Thank you received: 0
-
-

9 years 3 months ago [\#275847](#275847) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  *[How to custom Hika emails with name, style, view online options? + activation](/forum/19-hikamarket/891501-how-to-custom-hika-emails-with-name-style-view-online-options-activation#275847 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : No error message  Hello,  I'm trying to custom the Market: Vendor registration in Hikamarket &gt; Configuration &gt; email options. I already use acymailing for the user registration (not vendor) with an activation email link (confirm your account).  0. Can you confirm that it's not possible to use acymailing plugin for the vendor registration ? It is normal to not have an activation link to confirm the new vendor account (self mode) ? At the end I have 2 completely different registrations, user and vendor, the first one with acymailing + activate link in the email, the second one with hika email system without activate link... :S  1. Add register&#95;username I would like to welcome the new vendor with the username, &quot;Dear ...,&quot;  I tried:  But no name in the email and I get this error: Deprecated: Non-static method hikashop::get() should not be called statically in /.../public&#95;html/media/com&#95;hikamarket/mail/vendor&#95;registration.html.modified.php on line 83  How to mention the vendor's infos in the email ?  2. I modified the css style:  But it's not working, the background color... Why the css style isn't working ?  3. Quick question to finish, is it possible to have a &quot;View online&quot; link ? Like with acymailing... ? This question is relative to the first one (0.)...  I'm looking forward to your response,  Best regards,")* was created by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")*

-- HikaShop version -- : 3.1.1
-- HikaMarket version -- : 1.7.3
-- Joomla version -- : 3.7.4
-- PHP version -- : 7.1.7
-- Browser(s) name and version -- : CHROME
-- Error-message(debug-mod must be tuned on) -- : No error message

Hello,

I'm trying to custom the **Market: Vendor registration** in Hikamarket &gt; Configuration &gt; email options.
I already use acymailing for the user registration (not vendor) with an activation email link (confirm your account).

0. Can you confirm that it's not possible to use acymailing plugin for the vendor registration ? It is normal to not have an activation link to confirm the new vendor account (self mode) ? At the end I have 2 completely different registrations, user and vendor, the first one with acymailing + activate link in the email, the second one with hika email system without activate link... :S

1. Add register_username
I would like to welcome the new vendor with the username, "Dear ...,"

I tried: Code:

&lt;h3&gt;Dear &lt;?php $class = hikashop::get('class.order'); echo $data-&gt;vendorregister_vendorname;?&gt;, &lt;/h3&gt;

But no name in the email and I get this error:
Deprecated: Non-static method hikashop::get() should not be called statically in /.../public_html/media/com_hikamarket/mail/vendor_registration.html.modified.php on line 83

**How to mention the vendor's infos in the email ?**

2. I modified the css style: Code:

... &lt;style type="text/css"&gt; /*body.hikashop_mail { background-color:#dfccbe; color:#40332d; }*/ .hikamarket_mail { background-color:#dfccbe; color:#40332d; } .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} div, p, a, li, td {font-family:'Source Sans Pro', Arial, sans-serif; font-size:13px; color: #40332d;-webkit-text-size-adjust:none;} a{cursor:pointer; color:#da1f00; text-decoration:none; border:none;font-weight:bold;} a:hover {text-decoration: underline;} h1, h3{font-family:'Chewy', cursive, Arial, sans-serif;color:#da1f00!important;font-size:24px;} h2, h4{font-family:'Dancing Script', cursive, Arial, sans-serif;color:#7d6958 !important;font-size:18px;} h5{color:#dfccbe !important;} @media (min-width:600px){ #hikamarket_mail {width:600px !important;margin:auto !important;} .pict img {max-width:500px !important;height:auto !important;} } @media (max-width:330px){ #hikamarket_mail {width:300px !important; margin:auto !important;} table[class=w600], td[class=w600], table[class=w598], td[class=w598], table[class=w500], td[class=w500], img[class="w600"]{width:100% !important;} td[class="w49"] { width: 10px !important;} .pict img {max-width:278px; height:auto !important;} } @media (min-width:331px) and (max-width:480px){ #hikamarket_mail{width:450px !important; margin:auto !important;} table[class=w600], td[class=w600], table[class=w598], td[class=w598], table[class=w500], td[class=w500], img[class="w600"]{width:100% !important;} td[class="w49"] { width: 20px !important;} .pict img {max-width:408px; height:auto !important;} } &lt;/style&gt; &lt;div id="hikamarket_mail"&gt; ...

But it's not working, the background color...
**Why the css style isn't working ?**

3. Quick question to finish, is it possible to have a "View online" link ? Like with acymailing... ? This question is relative to the first one (0.)...

I'm looking forward to your response,

Best regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkxNTAxLWhvdy10by1jdXN0b20taGlrYS1lbWFpbHMtd2l0aC1uYW1lLXN0eWxlLXZpZXctb25saW5lLW9wdGlvbnMtYWN0aXZhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#275849](#275849) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to custom Hika emails with name, style, view online options? + activation](/forum/19-hikamarket/891501-how-to-custom-hika-emails-with-name-style-view-online-options-activation#275849 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : No error message  Hello,  I'm trying to custom the Market: Vendor registration in Hikamarket &gt; Configuration &gt; email options. I already use acymailing for the user registration (not vendor) with an activation email link (confirm your account).  0. Can you confirm that it's not possible to use acymailing plugin for the vendor registration ? It is normal to not have an activation link to confirm the new vendor account (self mode) ? At the end I have 2 completely different registrations, user and vendor, the first one with acymailing + activate link in the email, the second one with hika email system without activate link... :S  1. Add register&#95;username I would like to welcome the new vendor with the username, &quot;Dear ...,&quot;  I tried:  But no name in the email and I get this error: Deprecated: Non-static method hikashop::get() should not be called statically in /.../public&#95;html/media/com&#95;hikamarket/mail/vendor&#95;registration.html.modified.php on line 83  How to mention the vendor's infos in the email ?  2. I modified the css style:  But it's not working, the background color... Why the css style isn't working ?  3. Quick question to finish, is it possible to have a &quot;View online&quot; link ? Like with acymailing... ? This question is relative to the first one (0.)...  I'm looking forward to your response,  Best regards,")*

Hello,

0 - Like that, I can't confirm or deny.
There are different ways to use the vendor registration where you can create a Joomla account in the same time, or not.
So the system act differently depending what it has to create.
It only depends on how it is configured and how you're using it.

1 - You got access to several variables within the email, some are object which gives you access to more content : Code:

$data-&gt;vendor_name $data-&gt;vendor-&gt;... $data-&gt;user-&gt;...

2 - Sorry but your CSS is wrong.
The main div uses an ID and not a classname ; so your CSS should be written according to that.
In our customization documentation you will be able to find links to other website in order to learn more about CSS :
[ www.hikashop.com/support/documentation/1...the-display.html#css](https://www.hikashop.com/support/documentation/153-customize-the-display.html#css)

3 - In HikaMarket like in HikaShop, there is no setting to get a "view online", mostly because it is not a newsletter component and each email is "unique" (despite a newsletter where almost the same content is sent to a bunch of users).
So if you want that feature, it would require custom development.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkxNTAxLWhvdy10by1jdXN0b20taGlrYS1lbWFpbHMtd2l0aC1uYW1lLXN0eWxlLXZpZXctb25saW5lLW9wdGlvbnMtYWN0aXZhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")**
- [![ChristopheMG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46533-christophemg "View ChristopheMG's Profile") Topic Author
- [ Offline](/forum/user/46533-christophemg)

Less More

- Posts: 99
- Thank you received: 0
-
-

9 years 3 months ago [\#275927](#275927) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[How to custom Hika emails with name, style, view online options? + activation](/forum/19-hikamarket/891501-how-to-custom-hika-emails-with-name-style-view-online-options-activation#275927 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : No error message  Hello,  I'm trying to custom the Market: Vendor registration in Hikamarket &gt; Configuration &gt; email options. I already use acymailing for the user registration (not vendor) with an activation email link (confirm your account).  0. Can you confirm that it's not possible to use acymailing plugin for the vendor registration ? It is normal to not have an activation link to confirm the new vendor account (self mode) ? At the end I have 2 completely different registrations, user and vendor, the first one with acymailing + activate link in the email, the second one with hika email system without activate link... :S  1. Add register&#95;username I would like to welcome the new vendor with the username, &quot;Dear ...,&quot;  I tried:  But no name in the email and I get this error: Deprecated: Non-static method hikashop::get() should not be called statically in /.../public&#95;html/media/com&#95;hikamarket/mail/vendor&#95;registration.html.modified.php on line 83  How to mention the vendor's infos in the email ?  2. I modified the css style:  But it's not working, the background color... Why the css style isn't working ?  3. Quick question to finish, is it possible to have a &quot;View online&quot; link ? Like with acymailing... ? This question is relative to the first one (0.)...  I'm looking forward to your response,  Best regards,")*

Thank you Jerome,

0. I use the Hikashop AcyMailing Plugin, I created a newsletter under acymailing with the alias: "hikashop-user-account". The Acyba team told me to set as alias the name of the Hikashop notification email. Can I do the same for the "Market: Vendor registration" email ? How can I know the alias to use for each emails ?

1. Ok thank you, I forgot to read the Preload section... By the way, the Text version is empty. same in other emails, it is normal? Should I write the text version?

2. Sorry, I forgot to add #, but it still not working, even the p, h1... It works only when the style is in the HTML, I just improved the original code... I use a gmail address to test: Code:

&lt;?php /** * @package HikaMarket for Joomla! * @version 1.7.3 * @author Obsidev S.A.R.L. * @copyright (C) 2011-2017 OBSIDEV. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;style type="text/css"&gt; body.hikashop_mail { background-color:#dfccbe; color:#40332d; } #hikamarket_mail { background-color:#dfccbe !important; color:#40332d; } .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} div, p, a, li, td {font-family:'Source Sans Pro', Arial, sans-serif; font-size:13px; color: #40332d !important;/*-webkit-text-size-adjust:none;*/} @media (min-width:600px){ #hikamarket_mail {width:600px !important;margin:auto !important; background-color:#dfccbe; color:#40332d;} .pict img {max-width:500px !important;height:auto !important;} } @media (max-width:330px){ #hikamarket_mail {width:300px !important; margin:auto !important; background-color:#dfccbe; color:#40332d;} table[class=w600], td[class=w600], table[class=w598], td[class=w598], table[class=w500], td[class=w500], img[class="w600"]{width:100% !important;} td[class="w49"] { width: 10px !important;} .pict img {max-width:278px; height:auto !important;} } @media (min-width:331px) and (max-width:480px){ #hikamarket_mail{width:450px !important; margin:auto !important; background-color:#dfccbe; color:#40332d;} table[class=w600], td[class=w600], table[class=w598], td[class=w598], table[class=w500], td[class=w500], img[class="w600"]{width:100% !important;} td[class="w49"] { width: 20px !important;} .pict img {max-width:408px; height:auto !important;} } h3{font-family:'Chewy', cursive, Arial, sans-serif;color:#da1f00!important;font-size:24px;} h1{font-family:'Chewy', cursive, Arial, sans-serif;color:#da1f00!important;font-size:24px;} h2, h4{font-family:'Dancing Script', cursive, Arial, sans-serif;color:#7d6958 !important;font-size:18px;} h5{color:#dfccbe !important;} a{cursor:pointer; color:#da1f00; text-decoration:none; border:none;font-weight:bold;} a:visited{cursor:pointer;color:#a53831;} a:hover {text-decoration: underline;} &lt;/style&gt; &lt;div id="hikamarket_mail"&gt; &lt;table class="w600" style="line-height:18px;margin:auto;background-color:#ffffff;" border="0" cellspacing="0" cellpadding="0" width="600" align="center"&gt; &lt;tr&gt; &lt;td class="w600" style="" width="600" align="center"&gt; &lt;table class="w600" border="0" cellspacing="0" cellpadding="0" width="600" style="margin:0px;"&gt; &lt;tr&gt; &lt;td class="w20" width="20"&gt;&lt;/td&gt; &lt;td class="w560 pict" style="text-align:left" width="560"&gt; &lt;div id="title"&gt; &lt;h1&gt; {TXT:VENDOR_REGISTRATION} &lt;/h1&gt; &lt;/div&gt; &lt;/td&gt; &lt;td class="w20" width="20"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="w20" width="20"&gt;&lt;/td&gt; &lt;td&gt; &lt;div class="w550" width="550" id="content"&gt; &lt;h3&gt;Hi {VAR:vendor_name},&lt;/h3&gt; &lt;p&gt; {TXT:VENDOR_REGISTRATION_BEGIN_MESSAGE} &lt;/p&gt; &lt;/div&gt; &lt;/td&gt; &lt;td class="w20" width="20"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style="background-color:#40332d;"&gt; &lt;td class="w600" width="600" align="center"&gt; &lt;h5&gt;© 2017-2020 ... &lt;/h5&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt;

3. Thank you, you're right, it's not really necessary.

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkxNTAxLWhvdy10by1jdXN0b20taGlrYS1lbWFpbHMtd2l0aC1uYW1lLXN0eWxlLXZpZXctb25saW5lLW9wdGlvbnMtYWN0aXZhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#275936](#275936) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to custom Hika emails with name, style, view online options? + activation](/forum/19-hikamarket/891501-how-to-custom-hika-emails-with-name-style-view-online-options-activation#275936 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : No error message  Hello,  I'm trying to custom the Market: Vendor registration in Hikamarket &gt; Configuration &gt; email options. I already use acymailing for the user registration (not vendor) with an activation email link (confirm your account).  0. Can you confirm that it's not possible to use acymailing plugin for the vendor registration ? It is normal to not have an activation link to confirm the new vendor account (self mode) ? At the end I have 2 completely different registrations, user and vendor, the first one with acymailing + activate link in the email, the second one with hika email system without activate link... :S  1. Add register&#95;username I would like to welcome the new vendor with the username, &quot;Dear ...,&quot;  I tried:  But no name in the email and I get this error: Deprecated: Non-static method hikashop::get() should not be called statically in /.../public&#95;html/media/com&#95;hikamarket/mail/vendor&#95;registration.html.modified.php on line 83  How to mention the vendor's infos in the email ?  2. I modified the css style:  But it's not working, the background color... Why the css style isn't working ?  3. Quick question to finish, is it possible to have a &quot;View online&quot; link ? Like with acymailing... ? This question is relative to the first one (0.)...  I'm looking forward to your response,  Best regards,")*

Hello,

0 - In the HikaShop backend when you want to edit an email you will see a parameter called "name" and it contains the mail name that you want.
HikaMarket email are prefixed with a "market." and I think that you would still need that prefix to use the Acymailing override.

1 - If the text part is empty, HikaShop will convert the HTML content into text.
You can put some content if you want to define a different layout or something more specific, but it's optional.

2 - Thanks for the share !

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkxNTAxLWhvdy10by1jdXN0b20taGlrYS1lbWFpbHMtd2l0aC1uYW1lLXN0eWxlLXZpZXctb25saW5lLW9wdGlvbnMtYWN0aXZhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.052 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
