Tags joomla System

  • Posts: 17
  • Thank you received: 0
9 years 11 months ago #156418

Hi I have a doubt about the joomla system tags added to the new version.
I need to first create the tags in the native joomla component?
I have 2 questions:
1 - How to make labels created in the product screen display?
2 - These tags link to product listings?
Thank you.
I think it would be a good feature to add the labels from the HikaShop itself.

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
9 years 11 months ago #156439

Hi,

Simply write the text you want in the Tags selection input and it will create a new tag when you press enter. No need to pre create them.
The tags on the product page link to the tags listing page of Joomla, which will indeed display other products with the same tags.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
9 years 8 months ago #166783

Hikashop should create a tag system like the one the Zoo component from youtheme has. This is a very good system and give you a lot of SEO traffic to your online store.

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
9 years 8 months ago #166804

As far as I can see, you can do the same thing with the Joomla tags and the Zoo tags. What is better in them ? Could you give more infos ?

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
9 years 8 months ago #168375

I want to display joomla tags on the product detail page but they dont show. I can t find anywhere in the config where they are enabled or disabled.

D

Please Log in or Create an account to join the conversation.

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #168420

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
9 years 8 months ago #168531

Ok thanks. I will look forward to that update :-) In the emanative Ill see about that override. Good code practice!

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 3
9 years 6 months ago #176608

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?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #176652

Hi,

Good news, the Joomla tags are now available in HikaShop.
In the product edition page, under the description area you will be able to see a field "Tags".
Just fill the desired tags here ;)

If you don't see this field, please update.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 3
9 years 6 months ago #176721

in "Default parameters for products" in the main configuration, there is no option to show / hide tags
so wondering where the option is to show or not show tags when in the product view?

PS the field to add tags to the product was already working in the version I had (but just updated anyway)
what seems to be missing is the ability to show these tags with the product when it is displayed.

Last edit: 9 years 6 months ago by netpastor.

Please Log in or Create an account to join the conversation.

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
9 years 6 months ago #176800

Hi,

You can put that code in the product page (show_default).

$tagHelper = hikashop_get('helper.tags');
if($tagHelper->isCompatible()) {
	$this->element->tags = new JHelperTags;
	$this->element->tags->getItemTags('com_hikashop.product', $this->element->product_id);
	if($this->params->get('show_tags', 1) && !empty($this->element->tags)) {
		$this->element->tagLayout = new JLayoutFile('joomla.content.tags');
?>
		<div id="hikashop_product_tags_main" class="hikashop_product_tags"><?php
			echo $this->element->tagLayout->render($this->element->tags->itemTags);
		?></div>
<?php
	}
}
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 3
9 years 5 months ago #176981

Thanks Jerome
works a treat

One thing I think is missing from documentation is a clear outline / chart of what each override is for
ie I think hika has done well in using well placed words to describe the override, but often it is still not obvious
thus a clear flow chart of where each override is placed in the overall heirarchy would be helpful to the end-user / developer.
But maybe it already exists, and I can't find it :-)

Last edit: 9 years 5 months ago by netpastor.

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
9 years 5 months ago #176987

Please Log in or Create an account to join the conversation.

  • Posts: 55
  • Thank you received: 3
9 years 5 months ago #177115

nicolas wrote: Hi,

You can find that here:
www.hikashop.com/support/support/documen...-display.html#layout


Thanks Nicolas - I was probably thinking of something a little more intuitive, but I get the syntax :-)

Please Log in or Create an account to join the conversation.

  • Posts: 2600
  • Thank you received: 64
  • Hikashop Business
9 years 5 months ago #178549

with the last version

$this->setLayout('show_block_tags');
echo $this->loadTemplate(); 
works perfectly but where does it get these class ?
<div class="tags">
<span class="tag-2 tag-list0" itemprop="keywords">
<a href="" class="label label-info">

I dont find it in any joomla tag view component or module

thank you

Please Log in or Create an account to join the conversation.

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
9 years 5 months ago #178552

Hi,

It's Joomla related, not HikaShop related.
See the Joomla layouts (joomla/content/tags)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: erickb

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
8 years 5 months ago #219025

So either I need more coffee or I am not understanding this. I do not want tags to show on the product main page. How do I hide them? See attached image...I want to hide what is in the red square.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2600
  • Thank you received: 64
  • Hikashop Business
8 years 5 months ago #219027

.naughty-red-square{
display:none;
}

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
8 years 5 months ago #219028

The red square was mine for emphasis. I don't want the tags to show

Please Log in or Create an account to join the conversation.

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
8 years 5 months ago #219029

Hi,

Best will be to perform a view override for the product page, and remove the display of "show_block_tags" view which display the Joomla tags.
www.hikashop.com/support/support/documen...-display.html#layout

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.154 seconds
Powered by Kunena Forum