You want to override the file, not edit it directly.
How to Edit Files
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.
Example:
To override the cart.php file…
copy:
wp-content/plugins/woocommerce/templates/cart/cart.php
to wp-content/themes/yourtheme/woocommerce/cart/cart.php
The copied file will now override the WooCommerce default template file. Make your updates in the new file.
Here is more detailed information.
Related Posts:
- Creating custom Woocommerce attribute taxonomies from a plugin
- Display a selected custom product option in WooCommerce cart
- Add attribute / custom attribute to product in woocommerce
- Trying to build simple deposit code that hooks into woocommerce
- How to get private property in parent class into extended class?
- After disabling WPML multi currency, the currency is still handled by the WPML
- How do i wrap woocomerce attribute in list?
- How do I know if the user is a customer?
- I want to fusion the product columns in email table order
- Add a new view on the Woocommerce account page
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Woocommerce linking variations
- Woocomerce custom add to cart button edit functionality [closed]
- How to change product title color in shop page if product has specific product tag (Woocommerce)?
- How to check if woocommerce is activated in theme
- Query WooCommerce orders grouped by several order statuses
- retrieve thumbnail from post ID of best selling product in category
- Custom post type column which compares dates?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- How to create different menu’s for not logged in visitors and for logged in members?
- Automatically check the option “Enable stock management at product level” on product creation
- Custom Loop Pagination on WordPress
- delete an array element when its date expires
- Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products [closed]
- How does WooCommerce ensure that a product doesn’t run out of stock during payment? [closed]
- Wrap First Character after in a tag
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Change the URL of an image from wp_get_attachment_image_src except in the frontpage
- woocommerce subscriptions – get expiration date [closed]
- How to add just one specific page to widget without plugin?
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to check if a meta value has already been assigned to any user?
- Woocommerce hook run after an Order been created through REST API
- Woocommerce api: create product with images – bad request
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- WordPress admin pointers tour bug?
- WooCommerce custom product dimensions
- WordPress Woocommerce – Product Type [closed]
- need help with existing code showing subpages
- Pagination for custom shop loop woocommerce
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Advanced Custom Fields not displaying
- Exclude posts with specific metadata from search?
- get_total () returns 0 – woocommerce [closed]
- Warning: Illegal string offset on theme options page [closed]
- email alert for product availability
- How to rename woocommerce-billing-fields
- I am trying to make a field show and save from quickedit screen
- Check class_exists before class definition / Doxygen problem
- Extract links from content
- Create a package of products as one Item in woocommerce?
- Integrating Yii2 and WordPress
- fetch woocommerce product with custom taxonomy
- Custom Registration username_exists / email_exists
- PHP Helper Class to create shortcodes
- Is it possible to add a custom page to a free WordPress site? [closed]
- Is there a hack for using is_page() within the function.php file?
- How to Fix an Archive.php That Displays All Posts?
- How can i programmatically change the SKU of a product based on product variation?
- Execute PHP code only with specific user role
- Add a custom WooCommerce settings tab with sections
- Checking page before applying image restrictions while uploading
- WordPress Fresh Install Errors (Woocommerce specifically now)
- WP-Bakery – Add custom colors to buttons with template colors
- PHP function for horizontal Woocommerce thumbnails and badges
- retrieve “Link Color” value
- WooCommerce display price before add to cart [closed]
- Get the same SKU from woocommerce itself for simple and variable products
- Woocommerce checkout page – custom field checkbox value into email
- WooCommerce – template_redirect if is_checkout AND order has been paid?
- Make WooCommerce product categories only show images on homepage
- ACF under category name in shop page [closed]
- Create form which redirects to site in network?
- WooCommerce Quantity in Dropdown menu instead of clasic [closed]
- Remove specific javascript when viewing page in Customizer?
- Reverse Cross-Sells (WooCommerce)
- Search function not working
- loop to return tags in woocommerce in alphabetical order?
- Running local copy of an old WordPress site on MAMP
- Customizing WooCommerce with PHP
- I was wondering if it’s possible to implement card.js on WordPress
- What image is this pulling?
- Woocommerce custom field on emails outputs ‘Array’
- How to use PHP code with wordpress page
- if is_bbPress register jquery
- Auto create description in post
- error with WP custom form
- How can I clear the theme mod settings?
- Custom PHP-coding in MU installs
- WooCommerce Custom Pagination
- Date when the custom field was added
- WP Custom tables query
- WCFM Custom form
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- Removing the add to cart button from specific product pages
- Add Woocommerce Customers link to custom admin menu
- Add text below WooCommerce short description if metabox value is true
- Assembly Options at checkout
- How to get default variation ID (woocommerce)