Disable Microdata

  • Posts: 60
  • Thank you received: 4
6 years 4 months ago #284072

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.0.7

Hi,


We would like to install a plugin which generates microdata and clean out the Hikashop microdata at our test site.

I have Disabled the “HikaShop Microdata on Product Page plugin”, by Home there is no microdata anymore however, when I run the test for a product page, I still see microdata from Hikashop. Please refer to screenshot.


How can I disable it?


Regards,

Wella

Attachments:

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 4 months ago #284079

Hi,

The microdata plugin is an old plugin which isn't used anymore.
The microdata is now included directly in the view files of HikaShop so that they will be in the product page even when you customize the view files.
So to remove them, you would have to edit the different view files of the "product" view via the menu Display>Views.

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

  • Posts: 60
  • Thank you received: 4
6 years 4 months ago #284117

Hi Nicolas,


Thank you for your answer.

I now know where I can find it based on your description but the problem is I don’t know which view file and what to delete? At this moment I have 37 product view files.
Can you please tell me which view file/s and send to me the code, I am not so familiar with coding.


Wella

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
6 years 4 months ago #284119

Hello,

You will find the setting "display view files" which will help to to know which view you want to edit.
www.hikashop.com/support/documentation/5...g.html#advanced_main

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: 60
  • Thank you received: 4
6 years 4 months ago #284181

Hi Jerome,


Thank you for directing me to the general information about this topic.

Question is, based on Nicolas answer, that I have to do it in View files. Problem is we have 37 (screenshot), question is where is it?

For example the product description text. If you look at the Google Structured data tool then for the text of our product they call it: description

If I look at the 37 view files then presumably it is “listing_img_description”.

But nothing is called micro or microdata there.

Regards,

Wella

Attachments:

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 4 months ago #284183

Hi,

The view files used will vary based on how you configured your shop and your product so we can't provide a list since we don't know what you're using and what you aren't.
As Jerome told you, you need to activate the "Display view files" setting.
Then, go on the product page and you'll see which view file is used for the display of the different elements of the product page.

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

  • Posts: 60
  • Thank you received: 4
6 years 4 months ago #284417

Hi Nicolas,

Thank you for the reply, I now also know where that "Display view files" choices/menu from Advance Settings is, I mixed it up with Views from Display.




I come this far, I hope this is what you described but I still miss the code. Can you please advice what to do next?

List of all the view files as far as find by the product page:
1. product / show.php
2. product / show_default.php
3. product / show_block_social.php
4. product / show_block_img.php
5. product / show_block_product_files.php
6. product / listing.php
7. product / listing_div.php

By the Categories:
1. category / listing.php
2. category / listing_div.php
3. category / listing_img_title.php
4. product / listing.php
5. product / listing_div.php

Wella

Attachments:

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 4 months ago #284420

Hi,

The microdata is only on the product page.
So only these view files are concerned:
1. product / show.php
2. product / show_default.php
3. product / show_block_social.php
4. product / show_block_img.php
5. product / show_block_product_files.php

In them, you'll see plenty of microdata code. For example, at the beginning of the product / show.php view file:
itemscope itemtype=" schema.org/Product "

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

Time to create page: 0.072 seconds
Powered by Kunena Forum