- Posts: 165
- Thank you received: 3
Display Certain Sub Categories on product page
- jschroeder
-
Topic Author
- Offline
Less
More
11 years 7 months ago #190369
by jschroeder
Display Certain Sub Categories on product page was created by jschroeder
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.19
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : N/A
Is there a way to display certain subcategories within a product page.
I am wanting to list the product title, (associated sub categories of Varietal (many times will be multiple)),(associated sub category of Region),(associated sub category of Country/State) on the product page. (see pics)
I think it would be somewhat like what you have listed : www.hikashop.com/forum/4-how-to/64957-ca...ts-pages.html#156209
with exception I am trying to list "certain" subcategories
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.19
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : N/A
Is there a way to display certain subcategories within a product page.
I am wanting to list the product title, (associated sub categories of Varietal (many times will be multiple)),(associated sub category of Region),(associated sub category of Country/State) on the product page. (see pics)
I think it would be somewhat like what you have listed : www.hikashop.com/forum/4-how-to/64957-ca...ts-pages.html#156209
with exception I am trying to list "certain" subcategories
Please Log in or Create an account to join the conversation.
11 years 7 months ago #190427
by Xavier
Replied by Xavier on topic Display Certain Sub Categories on product page
Hi,
You will have to edit the view "product / listing_img_title" and add your custom php code.
The product category is stored in $this->row->product_category_id; then thanks to the code in the topic of the given link, get the parent categories and display their informations as desired.
You can too add an if condition on the category id in order to display the categories or not.
It require PHP knowledges.
You will have to edit the view "product / listing_img_title" and add your custom php code.
The product category is stored in $this->row->product_category_id; then thanks to the code in the topic of the given link, get the parent categories and display their informations as desired.
You can too add an if condition on the category id in order to display the categories or not.
It require PHP knowledges.
The following user(s) said Thank You: jschroeder
Please Log in or Create an account to join the conversation.
Time to create page: 0.169 seconds