Skip to main content

categoreies repead for each product

More
10 years 7 months ago #228176 by mrsadeqij
i have a category (category 1) and 3 product in this category and i use hika module to see category in vendor page.
The output is as follows

category 1
category 1
category 1

If again I add a product

category 1
category 1
category 1
category 1

:blink:

this should show only once

category 1

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

More
10 years 7 months ago #228206 by Jerome
Hi,

Can you please provide some links or screenshots in order to illustrate your issue ?
I have to admit that, like that, I don't understand anything at your 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.

More
10 years 7 months ago #228223 by mrsadeqij
The problem is in vendor page

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

More
10 years 7 months ago #228236 by Jerome
Hi,

Would it be possible to have details about the configuration of that module ?
So we could try to reproduce your issue in our end ; and try to find a fix too.

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
10 years 7 months ago #228257 by mrsadeqij

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

More
10 years 7 months ago #228317 by Jerome
Hi,

In the file "administrator/components/com_hikamarket/classes/category.php" please replace
Code:
$option = JRequest::getString('option',''); $ctrl = JRequest::getString('ctrl',''); $viewName = $view->getName(); if($option != HIKAMARKET_COMPONENT || $ctrl != 'vendor' || $viewName != 'category') return;
By
Code:
$option = JRequest::getString('option',''); $ctrl = JRequest::getString('ctrl',''); $task = JRequest::getString('task',''); $viewName = $view->getName(); if($option != HIKAMARKET_COMPONENT || $ctrl != 'vendor' || $task != 'show' || $viewName != 'category') return;
It will skip the synchronization when display a vendor listing and where there is no "vendor id" to synchronize with.

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
10 years 7 months ago #228322 by mrsadeqij
i find ths code
Code:
$option = JRequest::getString('option', ''); $ctrl = JRequest::getString('ctrl', ''); $viewName = $view->getName(); if ($option == HIKAMARKET_COMPONENT && $ctrl == 'vendor' && $viewName == 'category') { $content_synchronize = $view->params->get('content_synchronize', 0); if (!$content_synchronize) return;
is it right ?

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

More
10 years 7 months ago #228330 by Jerome
Hi,

Yes, it is the good part. But the file already had some modifications in the current development packages.
The idea is to also include the "task" in the checks to verify that the page is the "hikarmarket / vendor / show".
In your case it would be
Code:
$option = JRequest::getString('option', ''); $ctrl = JRequest::getString('ctrl', ''); $task = JRequest::getString('task',''); $viewName = $view->getName(); if ($option == HIKAMARKET_COMPONENT && $ctrl == 'vendor' && $task == 'show' && $viewName == 'category') {

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.366 seconds
Powered by Kunena Forum