I'm trying to edit the checkout page, but can't find the template. What's the location inside plugin, of the file that has checkout fields?
First, you will need to find WooCommerce's existing template files. These are located in the directory called wp-content/plugins/woocommerce/templates.
There are several php files that make up the checkout page.
wp-content/plugins/woocommerce/templates/checkout/
wp-content/plugins/woocommerce/templates/checkout/form-checkout.php is the main file.
[Template Structure from Woo Commerce Docs][1]
http://wcdocs.woothemes.com/codex/template-structure/ https://docs.woothemes.com/document/template-structure/
It's recommended that you copy the template folder It's recommended to copy over the template folder with the files you wish to change from the woocommerce plugin directory. Put it at the root of your theme and rename it to woocommerce (leaving the template folder intact in the plugin directory to allow for upgrading).
Be careful of your cart template which is by default the page.php
template from your general theme.
You can change the cart layout by changing the page.php
, or go to your WordPress cart page, edit and change the template for an other one.
Hope it helps, I just wasted 2h searching that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With