Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Invoice content plugins

  • Stephan
  • Topic Author
  • Away
  • New Member
  • New Member
More
7 hours 29 minutes ago - 7 hours 10 minutes ago #180182 by Stephan
Invoice content plugins was created by Stephan
Hello, is it possible to activate content plugins in the pdf invoice? I can't find an option, as is available for emails, and I'm not sure, what to override to run content.prepare.

kind regards, Stephan 
Last edit: 7 hours 10 minutes ago by Stephan.

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

More
3 hours 15 minutes ago #180184 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice content plugins
Hi Stephan

We do not trigger content plugin for invoice. I do not know why you need that. In this case, you need to implement an override for getInvoiceContentForRegistration method in EventbookingHelper class

Regards,

Tuan

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

  • Stephan
  • Topic Author
  • Away
  • New Member
  • New Member
More
2 hours 9 minutes ago #180187 by Stephan
Replied by Stephan on topic Invoice content plugins
Thank you! I'll check out the override.

We have identical content that appears on the thank you page, in the emails and in the invoice. For easier administration and to reduce redundancy I have created Joomla custom modules with that content.

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

  • Stephan
  • Topic Author
  • Away
  • New Member
  • New Member
More
43 minutes ago #180189 by Stephan
Replied by Stephan on topic Invoice content plugins
It worked. I got it working with the following function in override/helper.php:
   public static function getInvoiceContentForRegistration($row)
    {
       return HTMLHelper::_('content.prepare', parent::getInvoiceContentForRegistration($row));
    }

Thank you!
 

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

More
41 minutes ago #180190 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice content plugins
Yes, that's the right code. I'm glad you figured out

Tuan

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

Moderators: Tuan Pham Ngoc