• Resolved ptm282192

    (@ptm282192)


    Hi there! Thank you for a great plugin!
    Just wondering can you please tell me what code to use to disable code everywhere except the Cart and Checkout pages?

    I just need increment buttons on a Cart and Checkout pages on a website, not on the product page or product category pages, or anywhere else.

    Greatly appreciate your contribution to WP!
    Regards

    • This topic was modified 3 years, 9 months ago by ptm282192.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Niels Lange

    (@nielslange)

    Hello @ptm282192 ??

    You can deactivate the plugin on the product page by adding the following code snippet to your site, e.g. using the Code Snippets plugin:

    add_filter( 'show_on_product_page', '__return_false' );

    Thread Starter ptm282192

    (@ptm282192)

    Thank you for your update!
    And how to disable on product archives/product category pages?
    Thank you!

    Plugin Author Niels Lange

    (@nielslange)

    By default, the product archives/product category pages do not show the product quantity. If you see the product quantity on these pages on your end, then this behaviour must be caused by a plugin or a theme. Can you tell me what theme you’re using, so that I can start looking into this case?

    Please note that I can only look into open-source themes. In case the problem is caused when using a premium theme, then you’d have to contact the theme developer on how to use the default WooCommerce behaviour on the product archives/product category pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove everywhere except the cart page’ is closed to new replies.