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

#   Moving downloads to a tab

##

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

Less More

- Posts: 22
- Thank you received: 1
-
-

7 years 6 months ago -  7 years 6 months ago [\#306075](#306075) by [DavidVogt](/forum/user/40153-davidvogt "View DavidVogt's Profile")  *[Moving downloads to a tab](/forum/26-product-category-display/897371-moving-downloads-to-a-tab#306075 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.0  Hi friends,  I'm trying to do something that I thought would be simple, but I must have gone wrong somewhere. What I want is to MOVE the &quot;Downloads&quot; section of the product page into a tab. I've modified the show&#95;tabular view and added the code from the downloads section. It's working initially, but when clicking on another tab the downloads section doesn't go away. I've attached my view file and hope you can point me in the right direction -- my code starts at line 231. I know this isn't something you normally do but I'm hoping it's a simple fix.  Thank you very much!")* was created by *[DavidVogt](/forum/user/40153-davidvogt "View DavidVogt's Profile")*

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.0

Hi friends,

I'm trying to do something that I thought would be simple, but I must have gone wrong somewhere. What I want is to MOVE the "Downloads" section of the product page into a tab. I've modified the show_tabular view and added the code from the downloads section. It's working initially, but when clicking on another tab the downloads section doesn't go away. I've attached my view file and hope you can point me in the right direction -- my code starts at line 231. I know this isn't something you normally do but I'm hoping it's a simple fix.

Thank you very much!

Last edit: 7 years 6 months ago by [DavidVogt](/forum/user/40153-davidvogt "View DavidVogt's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

7 years 6 months ago [\#306087](#306087) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Moving downloads to a tab](/forum/26-product-category-display/897371-moving-downloads-to-a-tab#306087 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.0  Hi friends,  I'm trying to do something that I thought would be simple, but I must have gone wrong somewhere. What I want is to MOVE the &quot;Downloads&quot; section of the product page into a tab. I've modified the show&#95;tabular view and added the code from the downloads section. It's working initially, but when clicking on another tab the downloads section doesn't go away. I've attached my view file and hope you can point me in the right direction -- my code starts at line 231. I know this isn't something you normally do but I'm hoping it's a simple fix.  Thank you very much!")*

Hi,

You need to separate your code.
The tabs system is comprised of two pieces:
- the ul/li list of the titles for each tab
- the divs with the content of each tab

I can see that you put the div with the content of your new tab right after the title of your new tab inside the ul/li list of the titles.
You should move the div with the content of your new tab after/before another tab's content div. For example, just before the line: Code:

if($status_vote == "comment" &#124;&#124; $status_vote == "two" &#124;&#124; $status_vote == "both" ) { ?&gt;

which is the beginning of the content div for the vote/comment tab.

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

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

Less More

- Posts: 22
- Thank you received: 1
-
-

7 years 6 months ago [\#306117](#306117) by [DavidVogt](/forum/user/40153-davidvogt "View DavidVogt's Profile")  Replied by *[DavidVogt](/forum/user/40153-davidvogt "View DavidVogt's Profile")* on topic *[Moving downloads to a tab](/forum/26-product-category-display/897371-moving-downloads-to-a-tab#306117 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.0  Hi friends,  I'm trying to do something that I thought would be simple, but I must have gone wrong somewhere. What I want is to MOVE the &quot;Downloads&quot; section of the product page into a tab. I've modified the show&#95;tabular view and added the code from the downloads section. It's working initially, but when clicking on another tab the downloads section doesn't go away. I've attached my view file and hope you can point me in the right direction -- my code starts at line 231. I know this isn't something you normally do but I'm hoping it's a simple fix.  Thank you very much!")*

THANK YOU! That was super helpful, Nicolas. The tabs now seem to be working properly with the downloads showing. One final problem: In some products, the tab is showing, but the files are not there.

It works here:
[ fisher.sptlt.com/products/gold-treasure/...r-f11-metal-detector](https://fisher.sptlt.com/products/gold-treasure/detectors/product/fisher-f11-metal-detector)

It doesn't work here:
[ fisher.sptlt.com/products/security/evide...urity-metal-detector](https://fisher.sptlt.com/products/security/evidence-weapons-detectors/product/cw20-hand-held-security-metal-detector)

Any insight would be greatly appreciated!

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

7 years 6 months ago -  7 years 6 months ago [\#306123](#306123) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Moving downloads to a tab](/forum/26-product-category-display/897371-moving-downloads-to-a-tab#306123 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.0  Hi friends,  I'm trying to do something that I thought would be simple, but I must have gone wrong somewhere. What I want is to MOVE the &quot;Downloads&quot; section of the product page into a tab. I've modified the show&#95;tabular view and added the code from the downloads section. It's working initially, but when clicking on another tab the downloads section doesn't go away. I've attached my view file and hope you can point me in the right direction -- my code starts at line 231. I know this isn't something you normally do but I'm hoping it's a simple fix.  Thank you very much!")*

Hello,

I don't see any important issue with your code, why don't you make a **var\_dump** on your "**$this-&gt;element-&gt;files**" in order to see if there is something different, or maybe you have a check that don't match a specific case ?...
Maybe for a reason or another "**$this-&gt;element-&gt;files**" is empty, and so you don't enter in your "**if($freeDownload)**" check ?...
So far and whithout debug hard to say more.

Hope this will help you.

Regards

Last edit: 7 years 6 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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