include an article at the end of the invoice

  • Posts: 83
  • Thank you received: 10
12 years 3 months ago #59207

I have an article called "Rental Agreement" its article id is 72.

How can I include the rental agreement at the end of the invoice.

What to write at the end of the order/invoice.php file?

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 3 months ago #59256

You should use that plugin:
www.nonumber.nl/extensions/articlesanywhere
That way you can just add a simple tag at the end of the view file and it will work automatically.

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

  • Posts: 83
  • Thank you received: 10
12 years 1 month ago #66691

When I add the article at the end:







Then it shows this:





and not the desired article.

Articles anywhere works on the site elsewhere.

Attachments:
Last edit: 12 years 1 month ago by jrod.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #66927

Looking online, it sounds like Articles Anywhere only works on the frontend:
old.nonumber.nl/component/kunena/5-artic...nistrator-pages?ml=1

In that case there is no easy method.
The simplest is the to copy the HTML of your article and add it where you had added the article anywhere tags.
Otherwise, you would have to add some custom joomla code:
forum.joomla.org/viewtopic.php?t=525350
Just replace 'title' by 'fulltext'

The following user(s) said Thank You: jrod

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

  • Posts: 83
  • Thank you received: 10
12 years 1 month ago #67052

This worked perfectly.
I added

{code}
<?php
$article =& JTable::getInstance("content");
$article->load(87);
echo $article->get("introtext");
?>
{/code}

to the bottom of the invoice, and now the "Terms and Conditions" are included in the invoice.
the Terms and Conditions are located in an article, so the client can easily amended them and update them.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum