• Jason

    (@galapogos01)


    Hey there,

    This plugin claims WooCommerce compatibility but offers no specific output for Product pages or any other WooCommerce page.

    Further, it injects bogus output into Category pages due to the taxonomy plugin being broken. It detects Category pages as Taxonomies, and injects the following (depending on the number of pages in the category):

    <!-- This site is optimized with the Schema plugin v1.6.9.7 - https://schema.press -->
    <script type="application/ld+json">["","","","","","","","","",""]</script>

    To fix this I modified includes/taxonomy.php on line 61 to only insert *non blank* sub page json into the main array (via the added && ! is_empty($schema_json))

    61 if ( isset($schema_json) && ! is_empty($schema_json)) {

    Hope this helps someone.

    Jason

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hesham Zebida

    (@hishaman)

    Compatibility support means it doesn’t conflict with mentioned Themes and Plugins, but it does not necessarily integrates with them. The integration requires custom coding to make Schema pull data out of WooCommerce, and this is not part of the plugin. (Sorry for the confusion, I will see how to make this more clear in the plugin description).

    Are you using a plugin for Taxonomies?

    The Schema plugin doesn’t have a file in this url (includes/taxonomy.php) I think I need more explanation if possible.

    Thread Starter Jason

    (@galapogos01)

    Fair enough. It’s a bit poor to say it supports WooCommerce if you don’t even provide sample code to make it pull data from WooCommerce. Why else would anyone look for WooCommerce support?

    I am not using a plugin for taxonomies but missed a directory in the plugin tree. The error is in includes/json/taxonomy.php.

    Jason

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce compatibility’ is closed to new replies.