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

#   category mod with carousel not linking correctly

##

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

Less More

- Posts: 38
- Thank you received: 0
-
-

13 years 3 months ago [\#111828](#111828) by [vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")  *[category mod with carousel not linking correctly](/forum/2-general-talk-about-hikashop/84473-category-mod-with-carousel-not-linking-correctly#111828 "My carousel display does not appear to be linking correctly. Here is what I did:  On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344) I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).  The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the &quot;Shop here&quot; menu item but nothing seems to work. Every image is linking to the incorrect category listing. is this a bug?  Can you please explain how this works because I can't figure it out if it's me or something else.  Thanks Viv")* was created by *[vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")*

My carousel display does not appear to be linking correctly.
Here is what I did:
[ ](http://www.vmrdesigns.com.au/test/SRL_design3/index.php/shop-here)[ www.vmrdesigns.com.au/test/SRL\_design3/index.php/shop-here](http://www.vmrdesigns.com.au/test/SRL_design3/index.php/shop-here)
On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344)
I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).

The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the "Shop here" menu item but nothing seems to work. Every image is linking to the incorrect category listing.
is this a bug?

Can you please explain how this works because I can't figure it out if it's me or something else.

Thanks
Viv

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#111867](#111867) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[category mod with carousel not linking correctly](/forum/2-general-talk-about-hikashop/84473-category-mod-with-carousel-not-linking-correctly#111867 "My carousel display does not appear to be linking correctly. Here is what I did:  On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344) I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).  The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the &quot;Shop here&quot; menu item but nothing seems to work. Every image is linking to the incorrect category listing. is this a bug?  Can you please explain how this works because I can't figure it out if it's me or something else.  Thanks Viv")*

Hi Viv,

I just tested your website and the carousel is redirecting to the same page as you main categories.
So I don't see where your problem is, could you give us more information?

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

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

Less More

- Posts: 38
- Thank you received: 0
-
-

13 years 3 months ago [\#111900](#111900) by [vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")  Replied by *[vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")* on topic *[category mod with carousel not linking correctly](/forum/2-general-talk-about-hikashop/84473-category-mod-with-carousel-not-linking-correctly#111900 "My carousel display does not appear to be linking correctly. Here is what I did:  On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344) I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).  The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the &quot;Shop here&quot; menu item but nothing seems to work. Every image is linking to the incorrect category listing. is this a bug?  Can you please explain how this works because I can't figure it out if it's me or something else.  Thanks Viv")*

Sure,

With the carousel images displayed in top left (showing the 4 categories) ....if you click on the essential oils image - it takes you to the botanicals category listing page instead of the essential oils listing. I would think that the images should link to their corresponding categories. It doesn't appear to be working. Scroll through the images and click on each and see what listing appears. I think it is linking incorrectly.

thanks
Viv

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#111932](#111932) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[category mod with carousel not linking correctly](/forum/2-general-talk-about-hikashop/84473-category-mod-with-carousel-not-linking-correctly#111932 "My carousel display does not appear to be linking correctly. Here is what I did:  On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344) I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).  The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the &quot;Shop here&quot; menu item but nothing seems to work. Every image is linking to the incorrect category listing. is this a bug?  Can you please explain how this works because I can't figure it out if it's me or something else.  Thanks Viv")*

Hi there,

That's indeed a bug we fixed for product but not for categories.
What you have to do is replace this line
Code:

echo '&lt;div class="product_slide" style="width:'.$widthCat.'px; height:'.$heightCat.'px; position:absolute; top:0; left:0; "&gt;'; $nbSlide++;

With this:
Code:

$zindex = 3; if($nbSlide){ $zindex = 1; } echo '&lt;div class="product_slide" style="width:'.$widthCat.'px; height:'.$heightCat.'px; position:absolute; top:0; left:0; z-index:'.$zindex.';"&gt;'; $nbSlide++;

in the view carrousel of categories (Display&gt;views)

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

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

Less More

- Posts: 38
- Thank you received: 0
-
-

13 years 3 months ago [\#112033](#112033) by [vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")  Replied by *[vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")* on topic *[category mod with carousel not linking correctly](/forum/2-general-talk-about-hikashop/84473-category-mod-with-carousel-not-linking-correctly#112033 "My carousel display does not appear to be linking correctly. Here is what I did:  On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344) I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).  The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the &quot;Shop here&quot; menu item but nothing seems to work. Every image is linking to the incorrect category listing. is this a bug?  Can you please explain how this works because I can't figure it out if it's me or something else.  Thanks Viv")*

Hi Eliot
Thanks for the suggestion but I have made that change to the code in the Display&gt;views&gt; category&gt; carousel so now the code looks like this:

$count=0; $nbSlide=0;
foreach($this-&gt;rows as $row){
if($count==0){
$zindex = 3;
if($nbSlide){
$zindex = 1;
}
echo '&lt;div class="product_slide" style="width:'.$widthCat.'px; height:'.$heightCat.'px; position:absolute; top:0; left:0; z-index:'.$zindex.';"&gt;';
$nbSlide++;
}
$this-&gt;row =&amp; $row;
?&gt;

Have emptied the cache in the browser but the problem is still happening.
Any ideas?

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#112082](#112082) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[category mod with carousel not linking correctly](/forum/2-general-talk-about-hikashop/84473-category-mod-with-carousel-not-linking-correctly#112082 "My carousel display does not appear to be linking correctly. Here is what I did:  On this page I have a category info module carousel displayed at the top of the page rotating through the four main categories. (cat info mod 344) I also have a product category menu displayed in an accordion style menu to the left. (cat info module 164) This links correctly to the items displayed in the main area (cat info menu 387).  The side menu links correctly and displays the categories and products how I want them but the carousel menu seems to be linking to something else. The essential oils category image in the carousel is linking to the botanicals sub-category listing for some reason. I have tried to associate the carousel module with the following menus: Hikashop default menu category listing, Menu item for category listing module 164, and the &quot;Shop here&quot; menu item but nothing seems to work. Every image is linking to the incorrect category listing. is this a bug?  Can you please explain how this works because I can't figure it out if it's me or something else.  Thanks Viv")*

My bad, I forget this part, you have to change this:
Code:

$fadeStartNext=' try{ slides[currentIndex].fade("out"); slides[currentIndex = currentIndex &lt; slides.length - 1 ? currentIndex+1 : 0].fade("in"); }catch(err){ slides[currentIndex].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(0); slides[currentIndex = currentIndex &lt; slides.length - 1 ? currentIndex+1 : 0].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(1); }'; $fadeStartPrev=' try{ slides[currentIndex].fade("out"); slides[currentIndex = currentIndex-1 &lt; 0 ? slides.length-1 : currentIndex-1].fade("in"); }catch(err){ slides[currentIndex].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(0); slides[currentIndex = currentIndex-1 &lt; 0 ? slides.length-1 : currentIndex-1].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(1); }';

to This:
Code:

$fadeStartNext=' try{ slides[currentIndex].fade("out").style.zIndex=1; slides[currentIndex = currentIndex &lt; slides.length - 1 ? currentIndex+1 : 0].fade("in").style.zIndex=3; }catch(err){ slides[currentIndex].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(0); slides[currentIndex = currentIndex &lt; slides.length - 1 ? currentIndex+1 : 0].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(1); }'; $fadeStartPrev=' try{ slides[currentIndex].fade("out").style.zIndex=1; slides[currentIndex = currentIndex-1 &lt; 0 ? slides.length-1 : currentIndex-1].fade("in").style.zIndex=3; }catch(err){ slides[currentIndex].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(0); slides[currentIndex = currentIndex-1 &lt; 0 ? slides.length-1 : currentIndex-1].effect("opacity", {duration: 400, transition: Fx.Transitions.linear}).start(1); }';

The following user(s) said Thank You: [vmrayner](/forum/user/12065-vmrayner "View vmrayner's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg0NDczLWNhdGVnb3J5LW1vZC13aXRoLWNhcm91c2VsLW5vdC1saW5raW5nLWNvcnJlY3RseT90bXBsPW1hcmtkb3du) 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?

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

Time to create page: 0.319 seconds

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

[](#top)
