[Skip to main content](#vessel-content)

#   categoreies repead for each product

##

- **[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")**
- [![mrsadeqij's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile") Topic Author
- [ Offline](/forum/user/40413-mrsadeqij)

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 8 months ago [\#228176](#228176) by [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")  *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#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")* was created by *[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#228206](#228206) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228206 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")**
- [![mrsadeqij's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile") Topic Author
- [ Offline](/forum/user/40413-mrsadeqij)

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 8 months ago [\#228223](#228223) by [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")  Replied by *[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228223 "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")*

The problem is in vendor page

- [ ![Capture1.png](/forum/attachment/29160) ](/forum/attachment/29160 "Capture1.png") [ ](/forum/attachment/29160?download=1 "Capture1.png")
- [ ![Capture2.png](/forum/attachment/29161) ](/forum/attachment/29161 "Capture2.png") [ ](/forum/attachment/29161?download=1 "Capture2.png")
- [ ![Capture3.png](/forum/attachment/29162) ](/forum/attachment/29162 "Capture3.png") [ ](/forum/attachment/29162?download=1 "Capture3.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#228236](#228236) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228236 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")**
- [![mrsadeqij's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile") Topic Author
- [ Offline](/forum/user/40413-mrsadeqij)

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 8 months ago [\#228257](#228257) by [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")  Replied by *[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228257 "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")*

![:)](/media/kunena/emoticons/8.png ":)")

- [ ![Capture1&#95;2016-01-30.png](/forum/attachment/29175) ](/forum/attachment/29175 "...2016-01-30.png") [ ](/forum/attachment/29175?download=1 "...2016-01-30.png")
- [ ![Capture2&#95;2016-01-30.png](/forum/attachment/29176) ](/forum/attachment/29176 "...2016-01-30.png") [ ](/forum/attachment/29176?download=1 "...2016-01-30.png")
- [ ![Capture3&#95;2016-01-30.png](/forum/attachment/29177) ](/forum/attachment/29177 "...2016-01-30.png") [ ](/forum/attachment/29177?download=1 "...2016-01-30.png")
- [ ![Capture4.png](/forum/attachment/29178) ](/forum/attachment/29178 "Capture4.png") [ ](/forum/attachment/29178?download=1 "Capture4.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#228317](#228317) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228317 "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")*

Hi,

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

$option = JRequest::getString('option',''); $ctrl = JRequest::getString('ctrl',''); $viewName = $view-&gt;getName(); if($option != HIKAMARKET_COMPONENT &#124;&#124; $ctrl != 'vendor' &#124;&#124; $viewName != 'category') return;

By Code:

$option = JRequest::getString('option',''); $ctrl = JRequest::getString('ctrl',''); $task = JRequest::getString('task',''); $viewName = $view-&gt;getName(); if($option != HIKAMARKET_COMPONENT &#124;&#124; $ctrl != 'vendor' &#124;&#124; $task != 'show' &#124;&#124; $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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")**
- [![mrsadeqij's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile") Topic Author
- [ Offline](/forum/user/40413-mrsadeqij)

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 8 months ago [\#228322](#228322) by [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")  Replied by *[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228322 "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")*

i find ths code
Code:

$option = JRequest::getString('option', ''); $ctrl = JRequest::getString('ctrl', ''); $viewName = $view-&gt;getName(); if ($option == HIKAMARKET_COMPONENT &amp;&amp; $ctrl == 'vendor' &amp;&amp; $viewName == 'category') { $content_synchronize = $view-&gt;params-&gt;get('content_synchronize', 0); if (!$content_synchronize) return;

is it right ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#228330](#228330) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[categoreies repead for each product](/forum/22-market-bug-report/881964-categoreies-repead-for-each-product#228330 "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")*

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-&gt;getName(); if ($option == HIKAMARKET_COMPONENT &amp;&amp; $ctrl == 'vendor' &amp;&amp; $task == 'show' &amp;&amp; $viewName == 'category') {

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4MTk2NC1jYXRlZ29yZWllcy1yZXBlYWQtZm9yLWVhY2gtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.247 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
