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

#   Show Current Category on Product Layout

##

- **[nathan](/forum/user/3189-nathan "View nathan's Profile")**
- [![nathan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3189.jpg)](/forum/user/3189-nathan "View nathan's Profile") Topic Author
- [ Offline](/forum/user/3189-nathan)

Less More

- Posts: 41
- Thank you received: 1
-
-

12 years 9 months ago [\#143786](#143786) by [nathan](/forum/user/3189-nathan "View nathan's Profile")  *[Show Current Category on Product Layout](/forum/26-product-category-display/865826-show-current-category-on-product-layout#143786 "-- url of the page with the problem -- :   www.sane.org/new/information/bookshop/pr...-disorders-pamphlets  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 27.0 -- Error-message(debug-mod must be tuned on) -- : N/A  Hi there,  I'm migrating a site from Virtuemart to Hikashop and have to replicate as closely as possible the layout of the old site.  Is it possible for me to show the Current Category that a product is in on the Product Layout page?  The old page I'm trying to replicate is here:    www.sane.org/information/bookshop/detail...-disorders-pamphlets  I'm hoping there's some code I can add to the product layout template as an override to achieve this.  Thanks  Nathan")* was created by *[nathan](/forum/user/3189-nathan "View nathan's Profile")*

-- url of the page with the problem -- : [ www.sane.org/new/information/bookshop/pr...-disorders-pamphlets](http://www.sane.org/new/information/bookshop/product/1-anxiety-disorders-pamphlets)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 27.0
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi there,

I'm migrating a site from Virtuemart to Hikashop and have to replicate as closely as possible the layout of the old site.

Is it possible for me to show the Current Category that a product is in on the Product Layout page?

The old page I'm trying to replicate is here:

[ www.sane.org/information/bookshop/detail...-disorders-pamphlets](http://www.sane.org/information/bookshop/details/2/1/anxiety-disorders/anxiety-disorders-pamphlets)

I'm hoping there's some code I can add to the product layout template as an override to achieve this.

Thanks

Nathan

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#143800](#143800) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show Current Category on Product Layout](/forum/26-product-category-display/865826-show-current-category-on-product-layout#143800 "-- url of the page with the problem -- :   www.sane.org/new/information/bookshop/pr...-disorders-pamphlets  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 27.0 -- Error-message(debug-mod must be tuned on) -- : N/A  Hi there,  I'm migrating a site from Virtuemart to Hikashop and have to replicate as closely as possible the layout of the old site.  Is it possible for me to show the Current Category that a product is in on the Product Layout page?  The old page I'm trying to replicate is here:    www.sane.org/information/bookshop/detail...-disorders-pamphlets  I'm hoping there's some code I can add to the product layout template as an override to achieve this.  Thanks  Nathan")*

Hi,
To do that you'll have to edit the code of the "Show_default" file of the "product" view of your front-end template, through "*Hikashop-&gt;DIsplay-&gt;Views*".

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

- **[nathan](/forum/user/3189-nathan "View nathan's Profile")**
- [![nathan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3189.jpg)](/forum/user/3189-nathan "View nathan's Profile") Topic Author
- [ Offline](/forum/user/3189-nathan)

Less More

- Posts: 41
- Thank you received: 1
-
-

12 years 9 months ago [\#143822](#143822) by [nathan](/forum/user/3189-nathan "View nathan's Profile")  Replied by *[nathan](/forum/user/3189-nathan "View nathan's Profile")* on topic *[Show Current Category on Product Layout](/forum/26-product-category-display/865826-show-current-category-on-product-layout#143822 "-- url of the page with the problem -- :   www.sane.org/new/information/bookshop/pr...-disorders-pamphlets  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 27.0 -- Error-message(debug-mod must be tuned on) -- : N/A  Hi there,  I'm migrating a site from Virtuemart to Hikashop and have to replicate as closely as possible the layout of the old site.  Is it possible for me to show the Current Category that a product is in on the Product Layout page?  The old page I'm trying to replicate is here:    www.sane.org/information/bookshop/detail...-disorders-pamphlets  I'm hoping there's some code I can add to the product layout template as an override to achieve this.  Thanks  Nathan")*

Um, yes I already know that...

I was hoping you might be able to provide me with the code that I need to add to that file to make this happen?

Thanks

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#143859](#143859) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show Current Category on Product Layout](/forum/26-product-category-display/865826-show-current-category-on-product-layout#143859 "-- url of the page with the problem -- :   www.sane.org/new/information/bookshop/pr...-disorders-pamphlets  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 27.0 -- Error-message(debug-mod must be tuned on) -- : N/A  Hi there,  I'm migrating a site from Virtuemart to Hikashop and have to replicate as closely as possible the layout of the old site.  Is it possible for me to show the Current Category that a product is in on the Product Layout page?  The old page I'm trying to replicate is here:    www.sane.org/information/bookshop/detail...-disorders-pamphlets  I'm hoping there's some code I can add to the product layout template as an override to achieve this.  Thanks  Nathan")*

Using this code will probably do the job ![:)](/media/kunena/emoticons/3.png ":)") : Code:

$class = hikashop_get('class.category'); $product_category = $class-&gt;get($this-&gt;element-&gt;category_id); echo $product_category-&gt;category_name;

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

- **[nathan](/forum/user/3189-nathan "View nathan's Profile")**
- [![nathan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3189.jpg)](/forum/user/3189-nathan "View nathan's Profile") Topic Author
- [ Offline](/forum/user/3189-nathan)

Less More

- Posts: 41
- Thank you received: 1
-
-

12 years 9 months ago [\#143980](#143980) by [nathan](/forum/user/3189-nathan "View nathan's Profile")  Replied by *[nathan](/forum/user/3189-nathan "View nathan's Profile")* on topic *[Show Current Category on Product Layout](/forum/26-product-category-display/865826-show-current-category-on-product-layout#143980 "-- url of the page with the problem -- :   www.sane.org/new/information/bookshop/pr...-disorders-pamphlets  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 27.0 -- Error-message(debug-mod must be tuned on) -- : N/A  Hi there,  I'm migrating a site from Virtuemart to Hikashop and have to replicate as closely as possible the layout of the old site.  Is it possible for me to show the Current Category that a product is in on the Product Layout page?  The old page I'm trying to replicate is here:    www.sane.org/information/bookshop/detail...-disorders-pamphlets  I'm hoping there's some code I can add to the product layout template as an override to achieve this.  Thanks  Nathan")*

Thanks Mohamed, that did the job.

Cheers

Nathan

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

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