how to reorder modules under the front end vendor page

  • Posts: 490
  • Thank you received: 2
7 years 6 months ago #251428

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.6
-- Joomla version -- : 3.4
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

1. hi how do i reorder the modules under the vendor account o vendor page in the front end?

i added 3 moduels and i want it to appear in this orde

1. product list
2. related
3. recently viewed.

please see screen shot



2. i cant find the related products module, where can i find it?

thanks

Attachments:
Last edit: 7 years 6 months ago by ronron.

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
7 years 6 months ago #251431

Hi,

The selection of the module is using the "namebox" system and in that system there is an option for reordering using drag'n'drop.
That feature is activated for the selection for the module ; So you can click on an element and drag him to change his position.

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: 490
  • Thank you received: 2
7 years 6 months ago #251689

thanks

i already tried that, when i reorder this to my preference it goes back after saving.

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
7 years 6 months ago #251707

Hi,

I see !

There is an issue with the display of the modules ; the order is lost.
To fix it, you have to edit the file "administrator/components/com_hikamarket/classes/modules.php" and replace

	$ret[1] = $this->db->loadObjectList('id');
By
	$value_modules = $this->db->loadObjectList('id');
	$ret[1] = array();
	foreach($value as $v) {
		if(isset($value_modules [$v]))
			$ret[1][$v] = $value_modules [$v];
	}
	unset($value_modules );
So it will keep the ordering of the values while generating the content for the namebox.

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.
Last edit: 7 years 6 months ago by Jerome. Reason: fix code
The following user(s) said Thank You: ronron

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

  • Posts: 490
  • Thank you received: 2
7 years 6 months ago #252728

hi

this will work only once.

if you edit or configure something else example gray scale or size and save. The settings made for the module order will be lost. What will be left is the Main menu.

is there a way for it to save the order?

thanks

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
7 years 6 months ago #252741

Hi,

I have edited the code in the previous message.

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.

Moderators: Obsidev
Time to create page: 0.076 seconds
Powered by Kunena Forum