Remove Column on My Payment Frontend page

melindamak
melindamak
Offline
0
I would like to know how can I remove some of the columns under My Payment and My Invoice on the front-end interface as I don't need to show all information on the page.

Thanks for your help.

Best Regards,
Melinda
Responses (6)
  • Accepted Answer

    Tuesday, September 03 2013, 05:39 PM - #Permalink
    0
    you can find the file in /components/com_invoices/views/invoices/tmpl/default.php . if you're familiar with HTML (and maybe a little PHP..) it will be very easy for you to remove what you don't need. just.. be careful to not mess things up! :) I recommend to make a backup copy of that file first.
    The reply is currently minimized Show
  • Accepted Answer

    melindamak
    melindamak
    Offline
    Wednesday, September 04 2013, 12:03 AM - #Permalink
    0
    Thx so much. I will give a try.
    The reply is currently minimized Show
  • Accepted Answer

    melindamak
    melindamak
    Offline
    Wednesday, September 04 2013, 12:20 AM - #Permalink
    0
    Seems I can't do it after I commented out those lines. I want to take out payment date time. Can u let me know which lines I should comment out? Thx.
    The reply is currently minimized Show
  • Accepted Answer

    melindamak
    melindamak
    Offline
    Wednesday, September 04 2013, 06:04 AM - #Permalink
    0
    I have taken out the following lines from the php:


    payment->payment_datetime == "0000-00-00 00:00:00") echo JText::_('NOT_SETTED'); else echo JHTML::_('date', $this->payment->payment_datetime, JText::_('DATE_FORMAT_LC3')); ?>


    I have tried taking out these lines from the default.php under invoices folder and payment folders but still does not work. It still shows on the front-end at the My Payment Section with the payment_datetime.

    can u advise what i have done wrong?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 04 2013, 08:09 AM - #Permalink
    0
    you're in the wrong file...

    this code you post is from the payment/tmpl/default.php file, which is NOT the one you have to modify.
    the only file you need to modify is invoices/tmpl/default.php, it's around line 181...
    The reply is currently minimized Show
  • Accepted Answer

    melindamak
    melindamak
    Offline
    Wednesday, September 04 2013, 02:34 PM - #Permalink
    0
    THanks so much. I figured out now, and it worked now.
    The reply is currently minimized Show
Your Reply