problems selecting order status in back-end

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
9 years 4 days ago #221075

-- 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.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
9 years 4 days ago #221076

Of course, this has to be done for more then one field. The code I posted was just for example.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 4 days ago #221082

Hi,

Thanks for the report.
But I think that the best modification, would be to update the function "getNameboxData" in the HikaShop category class.
So you can change the default limitation for the order statuses.
In our side we will perform some tests and see to activate the dynamic loading on the order statuses, like we made for the warehouses and some other elements available through the namebox system.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
9 years 4 days ago #221097

Hi,

Thank you for your reply.
I'm trying to modify the code of the extensions as little as possible.
For now the change I made is doing it's job.
I hope the code will be fixed in the next release and I can remove the template override.

By the way, I think the tax zones on the same page (the configuration) has the same problem.

Regards

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

Time to create page: 0.057 seconds
Powered by Kunena Forum