I believe you can use the woocommerce_template_path
hook/filter:
// $path defaults to 'woocommerce/' (in your theme folder)
add_filter( 'woocommerce_template_path', function( $path ){
$my_path = get_stylesheet_directory() . '/plugins/woocommerce/';
return file_exists( $my_path ) ? 'plugins/woocommerce/' : $path;
} );
It should work whether you’re overriding only specific files or all — i.e. you copy all files and folders from wp-content/plugins/woocommerce/templates
to your theme.
Related Posts:
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to remove an action within a class with extends
- Create WooCommerce custom stock option that is non-purchasable
- Query multiple post type and categories
- Shipping restrictions with WooCommerce variable products
- WooCommerce – Flat rate shipping based on X quantity steps?
- woocommerce_before_calculate_totals in woocommerce 3.0
- Custom URL for each product variation – rewrite rules
- Change “Shipping” text to “Delivery” everywhere I appears in woocommerce
- Customize WooCommerce orders displayed shipping
- Display a list subcategories under the main product category thumbnails?
- Unable to programmatically remove product from WooCommerce cart
- creating product with variations using woocommerce REST API
- How to Change WooCommerce Variable product pricing by SKU or visible children id
- Is it possible to cache ?wc-ajax=get_variation
- Adding extra one email address who receives email as admin – woocommerce
- Woocomerce language
- How to set default values in Woocommerce checkout? [closed]
- Display list of categories that contain products with a specific tag
- Payment methods are not displaying in Woocommerce
- Woocommerce Customs Endpoint
- Woocommerce add payment method outside of checkout and my account
- how i can add more required * fields in checkout page?
- Changing the Woocommerce breadcrumb menu [closed]
- short description in shop page after title
- Allow WooCommerce existing customers to checkout without being logged in [closed]
- What will make Woocommerce REST API to issue 401 [closed]
- Woocommerce set cookie after a sale [closed]
- How to upload images from wordpress front-end (the first image must be thumbnail and the rest without first must be in gallery woocommerce product)
- change woocommerce product statut (draft ->publish // publish->draft) depends on the month [closed]
- How to add taxonomy term under the thumbnail on woocommerce product page
- How to overwrite price html in woocommerce single product page
- the_widget() – filter only one instance
- WooCommerce – Exclude category from snippet
- woocommerce breadcrumbs in theme [closed]
- how customise Woocommerce style of custom theme
- Display Sales Quantity by product – Woocommerce [closed]
- wc_get_products() not return the images details
- Adding Product Name on Admin Panel Order list and User’s My-Account Order List
- woocommerce – how to get product link by id
- woocommerce_register_post action not firing [closed]
- How to change woocommerce checkout privacy policy, terms and condition text [closed]
- Woocommerce Email show HTML source code [closed]
- Add SKU in Product Title
- Search in 1) Post, 2) Products (woocommerce) and 3) Custom post type or Taxonomy type on a single page
- add to cart button not adding products in cart only in safari and edge browser [closed]
- WC Lightbox, Zoom and Slider not loading [closed]
- Send admin new order email to logged in user as well
- Woocomerce pulling wrong time from server -5 hrs difference
- I want hide view more button if price is blank
- Woocommerce before and after shop loop not works
- WooCommerce Admin order – Only run action if user is loaded
- What happens in the database when you link variations in woocommerce? [closed]
- Display custom product option in admin order details
- Archive product loop does not work with product filters
- remove sale price after finished countdown in woocommerce
- Woocommerce. How can I charge a fee from seller
- Please help me get rid of conflict with the JavaScript – I’m using WooCommerce with product blocks (Gutenb)
- Order Status without Email check. Only with Order-Number
- wc_get_product_id_by_sku() returns 0 for products added programatically via update_post_meta
- Display “Add to basket” and “Read more” buttons in the products shop page with woocommerce
- How Can I fix Woocommerce Billing Address Field? [closed]
- How to use decimal in quantity fields in WooCommerce for certain categories?
- Getting WordPress fatal error when hitting WooCommerce API
- Adding Tracking Details for Advanced Shipment Tracking Plugin From Order Notes
- check shipping amount in woocommerce_after_checkout_validation?
- How to display woocommerce product details on wp page
- how i can limit woo Category number like as ‘posts_per_page’ => -1, but it cannot work please help me
- Update a list of product to featured if product have meta value (Mysql not wpquery)
- How to set up dynamic purchase pixel in Woocommerce?
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Html code is not showing in woocommerce shop page on adding in header.php?
- Is this code collecting user password?
- Select all products that have a custom field ‘is_new’ set to ‘Yes’
- Removing Product from Woocommerce checkout page using Ajax
- add_post_meta on subcription renewal
- Replace product link with just product name on WooCommerce downloads page
- Importing Attributes in to Woocommerce
- woocomerce products and categories don’t display fixed
- Update Custom Post Meta Even if Draft
- Clone and modify Woocommerce Products catalog
- Update order status based on condition
- Custom CSS Not working on Product page
- How to add ajax loading icon after click add to cart button on woocommerce
- WooCommerce Table Rates not splitting up
- How can I let the user choose size of a shoe in the store? [closed]
- Hide/show specific products for backend users in woocommerce
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- WooCommerce pay per photo upload [closed]
- Override woocommerce template from parent theme
- Create custom add to cart in WordPress
- WooCommerce – How to add a custom field to only a specific email template [closed]
- Woocommerce – display all sold out products
- Woocommerce how to show most selling products by category
- AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
- Hide a shipping method if cart total is higher than an amount
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- How to update all products with same SKU prefixes when updating stock with CSV?
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]