Skip to main content

include an article at the end of the invoice

14 years 3 months ago #59207 by jrod
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.

14 years 3 months ago #59256 by nicolas
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.

14 years 2 months ago - 14 years 2 months ago #66691 by jrod
When I add the article at the end:







Then it shows this:





and not the desired article.

Articles anywhere works on the site elsewhere.
Last edit: 14 years 2 months ago by jrod.

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

14 years 2 months ago #66927 by nicolas
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.

14 years 1 month ago #67052 by jrod
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.061 seconds
Powered by Kunena Forum