how to display on frontend all categories of one product belongs to?

Phoca Cart - complex e-commerce extension
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

how to display on frontend all categories of one product belongs to?

Post by Net »

Hi,

while i was creating products, i assigned to each product multiple categories, ...for example i used categories for location and type of a product....ie. category1: locationX: , category2: Location Z, category3: typeY, category4: typeW....etc

Now when in the frond-end i open certain product to view it, it doesnt show to which categories does this product belong to, ...how can this be done? each product ahs at least two categories asigned to it...i am not sure if i am clear enough in my explanation :idea:

Tags:
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 386
Joined: 07 Nov 2018, 14:55

Re: how to display on frontend all categories of one product belongs to?

Post by Nidzo »

I think you can't because of ability to assign multiple categories to one product.
Maybe you can create tags as categories names and display them 🤔
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: how to display on frontend all categories of one product belongs to?

Post by Net »

Nidzo wrote: 20 Sep 2023, 02:27 I think you can't because of ability to assign multiple categories to one product.
Maybe you can create tags as categories names and display them 🤔
Is there any workaround to do this? ...i really need in product page in the front-end to be visible in which other categories every product is located.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: how to display on frontend all categories of one product belongs to?

Post by Benno »

Hi,
Is there any workaround to do this?
Have you already tried the workaround from Nidzo?
Maybe you can create tags as categories names and display them 🤔
Kind regards,
Benno
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: how to display on frontend all categories of one product belongs to?

Post by Net »

Benno wrote: 21 Sep 2023, 09:15 Hi,
Is there any workaround to do this?
Have you already tried the workaround from Nidzo?
Maybe you can create tags as categories names and display them 🤔
Kind regards,
Benno
My main concern is if the tag has all the same functionality as the category does?
Net
Phoca Member
Phoca Member
Posts: 33
Joined: 29 Sep 2022, 00:28

Re: how to display on frontend all categories of one product belongs to?

Post by Net »

Would it be maybe possible like related products, to have it displayed as connected categories or something similar?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to display on frontend all categories of one product belongs to?

Post by Jan »

Hi, for now there is no such option. Added to feature request: https://github.com/PhocaCz/PhocaCart/issues/170

But as written above, mostly for such function tag or label system is used.

Jan
If you find Phoca extensions useful, please support the project
Post Reply