• Has any one ever added Pricing schema that Bots/Google will find, to a Woocommerce site that is configured to only be a catalog site.
    It will show pricing but

    Buy now

    is disabled via a plug in/ All I want is to have Price show in Schema markup if possible (and avoiding more plug ins if poss, I know paid Yoast will do it and allinoneseo)

    • This topic was modified 3 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Rob, what is your website URL and how have you enabled the catalog mode currently?

    Thread Starter robmcp

    (@robmcp)

    Site is in dev locally and the catalog mode is enabled by the Yith catalog module, hides buy now etc.

    Thread Starter robmcp

    (@robmcp)

    I had considered coding manually but looks fiddly, happy to try though see this
    Adding manually In the How to Add Schema Markup to WordPress Manually section.

    • This reply was modified 3 years, 6 months ago by robmcp.
    • This reply was modified 3 years, 6 months ago by robmcp.

    I observed that with Yith Catalog mode plugin, the buying behaviour is disabled however the price and all is still visible on product pages. Also the price is present in the schema markup too. You can use this chrome browser extension to verify.

    Alternatively, you can remove Yith Catalog mode plugin and simply place following code in your theme’s functions.php file which will disable the “Add to cart” buttons on product listing and single product pages:

    add_action( 'init', 'wpcw_enable_catalog_mode' );
      
    function wpcw_enable_catalog_mode() {
       if ( ! is_user_logged_in()  ) {
          remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
          remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
       }
    }

    I would like to know, which way did you choose finally?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding Price to schema in WP with Woocommerce as a catalog site ONLY’ is closed to new replies.