Skip to main content

how to reorder modules under the front end vendor page

More
9 years 11 months ago - 9 years 11 months ago #251428 by ronron
-- 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
Last edit: 9 years 11 months ago by ronron.

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

More
9 years 11 months ago #251431 by Jerome
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.

More
9 years 11 months ago #251689 by ronron
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.

More
9 years 11 months ago - 9 years 11 months ago #251707 by Jerome
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
Code:
$ret[1] = $this->db->loadObjectList('id');
By
Code:
$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: 9 years 11 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.

More
9 years 11 months ago #252728 by ronron
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.

More
9 years 11 months ago #252741 by Jerome
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.247 seconds
Powered by Kunena Forum