Jerome wrote: Hi,
There is no implementation (so no option) to display the Joomla tags in the HikaShop product page.
But you can already add it in the HikaShop views (using an override) thanks to some PHP code.
The development is in our TODO list with the rest of the improvements for the product pages.
You can read the documentation on Joomla tags with extensions (sections "Prepare the view" and "Set up the display")
docs.joomla.org/J3.x:Using_Tags_in_an_Extension
Regards,
so - trying to follow the Joomla docs, I added this
$item->tags = new JHelperTags;
$item->tags->getItemTags('com_hikashop.product.' , $this->item->id);
to the top of components/com_hikashop/views/product/view.html.php
"com_hikashop.product" (not "products") is found in the types joomla content table
I then played with this is in...
product/show_default.php
as an ovveride in my template
by adding
<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
in an area that was currently being rendered on a page
but no tags from that item were displayed.
What is my failure in logic?