Hello,
It's possible to to create others Subscription table filters?
i wanna payment_method, and one specific "osmembership_field_value" filters.
i found the code in administrator/components/com_osmembership/view/subscriptions/html.php and try do make payment_method exactly the same as existing published filter like:
$options = array();
$options[] = JHtml::_('select.option', -1, JText::_('OSM_ALL'));
$options[] = JHtml::_('select.option', 0, JText::_('OSM_PENDING'));
$options[] = JHtml::_('select.option', 1, JText::_('OSM_ACTIVE'));
$options[] = JHtml::_('select.option', 2, JText::_('OSM_EXPIRED'));
$options[] = JHtml::_('select.option', 3, JText::_('OSM_CANCELLED_PENDING'));
$options[] = JHtml::_('select.option', 4, JText::_('OSM_CANCELLED_REFUNDED'));
$this->lists = JHtml::_('select.genericlist', $options, 'published', ' class="input-box" onchange="submit();" ', 'value', 'text', $this->state->published);
$this->config = OSMembershipHelper::getConfig();
$options = array();
$options[] = JHtml::_('select.option', -1, 'Forma de pagamento');
$options[] = JHtml::_('select.option', 0, 'Offline');
$options[] = JHtml::_('select.option', 1, 'Pagseguro');
$options[] = JHtml::_('select.option', 2, 'Paypal');
$this->lists = JHtml::_('select.genericlist', $options, 'payment_method', ' class="inputbox" onchange="submit();" ', 'value', 'text', $this->state->payment_method);
$this->config = OSMembershipHelper::getConfig();
and create the row switch ($row->payment_method) in subscriptions/tmpl/default.joomla3.pgp
but something is wrong, page reload works, but the subscriptions continue the same.
Any idea?