categoreies repead for each product

  • Posts: 7
  • Thank you received: 0
8 years 3 months ago #228176

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.

  • Posts: 26019
  • Thank you received: 4004
  • MODERATOR
8 years 3 months ago #228206

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.

  • Posts: 7
  • Thank you received: 0
8 years 3 months ago #228223

The problem is in vendor page

Attachments:

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

  • Posts: 26019
  • Thank you received: 4004
  • MODERATOR
8 years 3 months ago #228236

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.

  • Posts: 7
  • Thank you received: 0
8 years 3 months ago #228257

:)

Attachments:

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

  • Posts: 26019
  • Thank you received: 4004
  • MODERATOR
8 years 3 months ago #228317

Hi,

In the file "administrator/components/com_hikamarket/classes/category.php" please replace

		$option = JRequest::getString('option','');
		$ctrl = JRequest::getString('ctrl','');
		$viewName = $view->getName();
		if($option != HIKAMARKET_COMPONENT || $ctrl != 'vendor' || $viewName != 'category')
			return;
By
		$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.

  • Posts: 7
  • Thank you received: 0
8 years 3 months ago #228322

i find ths 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.

  • Posts: 26019
  • Thank you received: 4004
  • MODERATOR
8 years 3 months ago #228330

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

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