New field

Kaily
Kaily
Offline
0
I created new field to invoice system so I can select that product was bought by cash or by cart.

But what is the next step to add this field value into template? It means like when I use WYSIWYG editor then there should be acceptable value {new}.
Responses (6)
  • Accepted Answer

    Monday, October 15 2012, 01:18 PM - #Permalink
    0
    well, you need to define this {new} as a replaçable variable.
    so you should go to frontend file: /comoponents/com_invoices/views/invoice/tmpl/default.php and add it there
    The reply is currently minimized Show
  • Accepted Answer

    Kaily
    Kaily
    Offline
    Monday, October 15 2012, 01:32 PM - #Permalink
    0
    Ok,seems very empty file:

    //no direct access
    defined('_JEXEC') or die('Restricted access.');
    include(JPATH_SITE.DS.'components'.DS.'com_invoices'.DS.'views'.DS.'invoice'.DS.'tmpl'.DS.'default.php');
    ?>


    Is it right place ? :cheer:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 15 2012, 01:33 PM - #Permalink
    0
    that's not the file I told you! that's from the backend. look in the frontend!
    The reply is currently minimized Show
  • Accepted Answer

    Kaily
    Kaily
    Offline
    Monday, October 15 2012, 02:00 PM - #Permalink
    0
    My bad. Found the right place. Thank you very much!!!
    The reply is currently minimized Show
  • Accepted Answer

    A Matt
    A Matt
    Offline
    Sunday, December 02 2012, 03:18 PM - #Permalink
    0
    I could not find the right place?

    How should I access to the front end and create new varible?

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 02 2012, 03:50 PM - #Permalink
    0
    hello!

    what you mean by new variable? (by the way we can continue this conversation over the email since we are already talking there! :)
    The reply is currently minimized Show
Your Reply