How to use Tags of HikaShop?

  • Posts: 7
  • Thank you received: 1
2 years 2 months ago #338614

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.4
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox 78.15.0esr (64-bit)

Hi, how to use and change Tags of Hika Shop? Where do they show up in the frontend? In Products listing page, Is it possible that Hika Tags could display like K2 item Tags Module ? Thank you https://cherbeauty.tw/shop.html

Attachments:

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
2 years 2 months ago #338638

Hi,

The tags system is the one from Joomla. HikaShop only integrates with it.
I've never used K2, but I suppose that the K2 tag module is similar to what you can do with Joomla's tag modules you can configure via the Joomla modules manager.

The following user(s) said Thank You: losheng2010

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

  • Posts: 7
  • Thank you received: 1
2 years 1 month ago #339071

https://cherbeauty.tw/component/hikashop/product/52-circulation-100ml.html
Hi I had used hikashop tags, or you call keywords, I try to add tags into product listing at homepage, the div shows up already, but there is no content in div. <div id="hikashop_product_tags_main" class="hikashop_product_tags"></div> would you please tell me how to do? thank you. https://cherbeauty.tw/

Attachments:

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
2 years 1 month ago #339105

Hi,

I suppose that you must have add the code:

$this->setLayout('show_block_tags');
		echo $this->loadTemplate();
in the view file product / listing_img_title via the menu Display>Views to get that result.
And that's normal because the "show_block_tags" view file you're calling expect the product data to be in $this->element->main (which is the case on the product details page, while on the listing the data of the product is in $this->row.
What this means is that if you want this to work, you need to add this code before the code you added:
$this->element->main = $this->row;

The following user(s) said Thank You: losheng2010

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

  • Posts: 7
  • Thank you received: 1
2 years 2 weeks ago #339948

it's worked! Many tks :cheer:

Attachments:
The following user(s) said Thank You: Philip

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

Time to create page: 0.062 seconds
Powered by Kunena Forum