Disabling Product Page Microdata

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
8 years 5 months ago #258308

-- url of the page with the problem -- : www.swiftplantspares.com/jcb-parts/part/...noid-valve-25-220998
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.4.6

Hi,

I am adding my own microdata to product pages (in Google's recommended JSON-LD format) in show_default.php, and would like to disable the microdata that is being added by HikaShop. What's the best way? The "HikaShop Microdata on Product Page plugin" plugin is disabled but there is still microdata on the product pages.

As in:

<div itemprop="Product" itemscope itemtype="http://schema.org/Product"
...
<meta itemprop="image" content="/images/com_hikashop/upload/25-220998.jpg"/>

etc.

Thanks
Nigel


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/
Last edit: 8 years 5 months ago by NigelPeck.

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
8 years 5 months ago #258330

I found this in "com_hikashop/views/product/tmpl/show.php" and "show_block_img.php" and there doesn't appear to be any option to disable it through the admin or a module etc. as it is just there in the template. So I overrode them and removed the relevant bits of code.


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/
Last edit: 8 years 5 months ago by NigelPeck.

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 5 months ago #258332

Hi,

Because the microdata content was becoming too complexe, we integrated directly the microdata in the product page.
Now if you want to customize your product pages to display your own content with your own microdata ; you can simply modify/remove the content of the views to let them feet to your requirements.

More details about customization :
www.hikashop.com/support/documentation/1...ize-the-display.html

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: NigelPeck

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

Time to create page: 0.061 seconds
Powered by Kunena Forum