-- HikaShop version -- : 2.6.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : No error message
Hello,
I'm trying to update HikaShop to version 2.6.0 and installed my site in a test account (see the url I mentioned in this ticket).
Upon testing I've found that in the configuration page I can't select some of the orders statuses I've defined and some of the fields that contained order statuses that are not available are now empty.
I've looked into the code and found the problem. The query selecting those order statuses have a limit of 20 records (I have more then 20 order statuses).
I've found that I can override the file "administrator/components/com_hikashop/views/config/tmpl/main.php" using template overrides and set that limit in the function generating the field parameters for the order statuses like this:
<?php
echo $this->nameboxType->display(
'config[payment_capture_order_status]',
explode(',',$this->config->get('payment_capture_order_status')),
hikashopNameboxType::NAMEBOX_MULTIPLE,
'order_status',
array(
'default_text' => '<em>'.JText::_('HIKA_NONE').'</em>',
'limit'=>10000,
)
);
?>
Have added " 'limit'=>10000, ".
I'm guessing you will want to add this into the core of the extension so other that have more then 20 order statuses don't have the same problem.