WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
is_woocommerce() suggestion (1 post)

  1. shawn@eggplantstudios.ca
    Member
    Posted 1 year ago #

    I'd like to propose that the function is_woocommerce() in woocommerce-core-functions.php include a is_product_taxonomy() in the if statement.

    ie:

    /**
     * is_woocommerce - Returns true if on a page which uses WooCommerce templates (cart and checkout are standard pages with shortcodes and thus are not included)
     *
     * @access public
     * @return bool
     */
    function is_woocommerce() {
    	return ( is_shop() || is_product_category() || is_product_tag() || is_product() || is_product_taxonomy() ) ? true : false;
    }

    This will help with custom Taxonomies, and CSS styling for them.

    Thanks!

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by shawn@eggplantstudios.ca
  • This topic is not resolved
  • WordPress version: 3.5.1

Tags

No tags yet.