M
M
msatmb2016-07-01 17:28:52
Joomla
msatmb, 2016-07-01 17:28:52

How to display parent category in joomshopping?

There is the following structure
Our works (id1)
- Interior (id2)
- - - Work 1
- Exterior (id3)
- - - Work 1
Product catalog (id4)
- Manufacturer 1 (id5)
- - - Products 1
- - - Products 2
- Manufacturer 2 (id6)
- - - Products 1
- - - Products 2
All this is built on joomshopping. It is necessary that for products that have the parent category Our works (id1) one style is displayed in the template, and for all the rest others. I'm trying to get this parent category on the product page, but I don't have the skill :) Subcategory Id I get $cid = $this->category_id; but how to get the parent category?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-07-01
@xmoonlight

install the category tree output module and see the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question