Questions about Payment Form extension

Hide a column in display form

  • filippo pasca
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago - 10 years 1 month ago #57706 by filippo pasca
Hide a column in display form was created by filippo pasca
Hi! how do I hide a column "Amount($)" in "Inline Form Layout Display form in Inline format"?
is it possible?
Attachments:
Last edit: 10 years 1 month ago by filippo pasca.

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

More
10 years 1 month ago #57744 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide a column in display form
Hi

You will need to edit the code a bit. Try to look at the file components/com_pmform/view/forms/tmpl/default.php and customize it to remove that column

Tuan

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

  • filippo pasca
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago - 10 years 1 month ago #57778 by filippo pasca
Replied by filippo pasca on topic Hide a column in display form
Thz Tuan
I have to change only default.php?
I have done so
Code:
<?php /** * @version 3.0 * @package Joomla * @subpackage Payment Form * @author Tuan Pham Ngoc * @copyright Copyright (C) 2010 - 2015 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die; ?> <h1 class="title"><?php echo JText::_('PF_FORM_LIST'); ?></h1> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th> <?php echo JText::_('PF_TITLE'); ?> </th> </tr> </thead> <tbody> <?php for ($i = 0, $n = count($this->items); $i < $n; $i++) { $row = $this->items[$i]; if ($this->config->use_https) { $paymentLink = JRoute::_('index.php?option=com_pmform&view=form&form_id=' . $row->id . '&Itemid=' . $this->Itemid, false, 1); } else { $paymentLink = JRoute::_('index.php?option=com_pmform&view=form&form_id=' . $row->id . '&Itemid=' . $this->Itemid, false); } ?> <tr> <td> <a href="<?php echo $paymentLink; ?>"><?php echo $row->title; ?></a> </td> </tr> <?php } ?> </tbody> <?php if ($this->pagination->total > $this->pagination->limit) { ?> <tfoot> <tr> <td colspan="2"> <div class="pagination"><?php echo $this->pagination->getListFooter(); ?></div> </td> </tr> </tfoot> <?php } ?> </table>
I performed the change correctly? It Works :)

The result is this
Last edit: 10 years 1 month ago by filippo pasca.

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

More
10 years 1 month ago #58007 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide a column in display form
I could not see anything wrong with your modification, so congratulations :)

Tuan

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

Moderators: Tuan Pham Ngoc