WYSIWYG Editor for E-Mails and PDF Invoice

  • Posts: 9
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #360465

-- HikaShop version -- : HikaShop Business 5.0.4
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.1


Is there a way to edit the email templates and the PDF invoice in a WYSIWYG editor? Would be easier than editing the HTML and trying again and again until it works.

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
1 year 2 months ago #360468

Hi,

HTML editors don't handle well the tags in the HTML of the email content.
And for the PDF invoice layout there's PHP code all over the place, so it's impossible the way it is now.

Last edit: 3 months 1 week ago by nicolas.

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

  • Posts: 196
  • Thank you received: 11
  • Hikashop Business
3 months 1 week ago #366350

Hi guys, I must say I understand Ritsch' question. A WYSIWYG / Drag&Drop editor (like Acymailing is using) will save a lot of trial and error time.

Is there a timeline to implement a WYSIWYG and/or Drag&Drop editor or will it never be part of Hikashop?
Kind regards.

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
3 months 1 week ago #366351

Hi,

I agree with you all that it would be nice. But having an editor there is difficult. AcyMailing had to build one from scratch, and they spent a lot of time for it. It is something central to AcyMailing, so I can understand the need to spend all that time on this for them.
On our end, we can't realistically spend all that time on this and drop everything else for 1 year or more.
Also, Joomla 5.2 introduced email templates. And with HikaShop 5.1.3, a few months ago, we've added the integration to this system:
www.hikashop.com/home/blog/523-hikashop-5-1-3.html#email
On a website, you'll likely want to customize the Joomla emails anyways. So, if you can plug your HikaShop emails to the Joomla email templates, you then only have to customize the content of the email. Most of the modifications of the content are done with translation overrides, which don't require editing the email itself.
Also, more advanced customization requires adding PHP code (add some conditions of display, load extra data, format the data to be displayed), and this can't be done with an editor anyways.

Now, regarding the PDF invoice customization, while a WYSIWYG editor is not possible, integrating the plugin with the view editor (which has a drag&drop interface) of HikaShop is something we're looking into.
In fact, now that I'm thinking about it, maybe we could cook something with the view editor drag & drop system for the email content too... I have to think about it some more.
Thanks for your feedback.

The following user(s) said Thank You: Rusty

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

  • Posts: 72
  • Thank you received: 6
  • Hikashop Business
2 months 1 week ago #366838

Any news? :-)

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
2 months 1 week ago #366840

Hi,

I said that I had to think about it. Not that I would develop a solution in less than a month :)
Now, you're actually lucky because last week I published a new release of HikaShop with a new drag & drop interface for emails:
www.hikashop.com/support/documentation/5...ashop-changelog.html

The following user(s) said Thank You: Rusty

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

  • Posts: 72
  • Thank you received: 6
  • Hikashop Business
2 months 1 week ago #366850

Hi nicolas,

nicolas wrote: I said that I had to think about it. Not that I would develop a solution in less than a month :)


That's because ... I knew you're great! :-D

nicolas wrote: Now, you're actually lucky because last week I published a new release of HikaShop with a new drag & drop interface for emails:


That's really nice! I really don't want to seem intrusive, but ... could we also get something like this for the invoice and delivery bill? Please, please! :silly: :silly: :silly:

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
2 months 1 week ago #366853

That's on my todo list. Everything should be in place for this in HikaShop now with the new release.
However, it requires working on the PDF invoice plugin, first, to update each layout, and second to integrate with the changes in HikaShop to support this capability.

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

  • Posts: 1
  • Thank you received: 0
  • Hikashop Business
6 days 58 minutes ago #367696

Hi, this development is very welcome. Does this have to be enabled first? As I am on 6.0 and do not have the editor available for emails in my system.

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
5 days 20 hours ago #367697

Hi,

There is nothin to enable. It will appear automatically if the email is compatible with it, just above the HTML version area:
i.imgur.com/JeeYrLI.png
Note that if you customized the email in the past and then updated HikaShop to a recent version, then the HTML version you've customized won't have the necessary modifications to support the view builder. In that case, the view builder won't appear.

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
2 days 6 hours ago #367715

Hi,

The new version of the PDF invoice plugin, which we just released today, now supports the view builder of the PDF invoice layouts:
www.hikashop.com/marketplace/product/18-plugin-pdf.html
Note that it requires updating both the plugin and HikaShop (even with HikaShop 6.0.0, you need to download it again on our website and install it on yours to get extra patches to fix some issues with the view builder that were discovered when updating the layouts of the PDF invoice plugin) to get all the necessary changes.

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

  • Posts: 72
  • Thank you received: 6
  • Hikashop Business
13 hours 23 minutes ago #367736

nicolas wrote: Note that if you customized the email in the past and then updated HikaShop to a recent version, then the HTML version you've customized won't have the necessary modifications to support the view builder. In that case, the view builder won't appear.


Hm ... that said, I can not use it because of your customization made in my shop? :blink:

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

  • Posts: 84037
  • Thank you received: 13618
  • MODERATOR
8 hours 40 minutes ago #367737

Hi,

I don't remember what I did. Please understand that I work on customizations on client websites dozens of time every year.
However, if I made a customization in your email's HTML version, then the HTML version won't contain the necessary changes to be able to support the view builder. And so yes, you won't get the view builder on the customized emails.

Unfortunately, there is no way to have a view builder without the numerous modifications I had to add in each email's HTML version in order to make them compatible with it.
The solution would be to delete the customization on the emails and redo it on the new version of the emails.
If you're a bit savvy, you can use the "see modifications" button of the HTML version to see what was changed and port it to the new version of the HTML version.

Note that it is normal for this to be the case. If you customize the layout of the product page and we later add a new area on the product page layout, then you won't get that new area unless you port your modifications to the new version of the view.
The goal of overrides is that you can still update HikaShop without loosing your modifications. That's a huge advantage as it allows for customization, while being able to keep things up to date for security. The sacrifice is that you don't get the changes we add later on to the area where you have the override.

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

  • Posts: 72
  • Thank you received: 6
  • Hikashop Business
4 hours 48 minutes ago #367745

nicolas wrote: The goal of overrides is that you can still update HikaShop without loosing your modifications. That's a huge advantage as it allows for customization, while being able to keep things up to date for security. The sacrifice is that you don't get the changes we add later on to the area where you have the override.

Please, don't get me wrong! This is not a complaint! You guys do a great job! It was only a "fear thought out loud". I can confirm your explanation. All this is clear to me. But sometimes we "hope" things ... you know? ;)

Last edit: 4 hours 47 minutes ago by Rusty.
The following user(s) said Thank You: nicolas

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

Time to create page: 0.112 seconds
Powered by Kunena Forum