Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Woocommerce location of checkout template

Tags:

woocommerce

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?

like image 855
jOpacic Avatar asked Feb 08 '13 14:02

jOpacic


People also ask

How do I access WooCommerce templates?

First, you will need to find WooCommerce's existing template files. These are located in the directory called wp-content/plugins/woocommerce/templates.


2 Answers

There are several php files that make up the checkout page.

wp-content/plugins/woocommerce/templates/checkout/

  • cart-errors.php
  • form-billing.php
  • form-checkout.php
  • form-coupon.php
  • form-login.php
  • form-pay.php
  • form-shipping.php
  • review-order.php
  • thankyou.php

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).

like image 164
Justin Beaudry Avatar answered Sep 29 '22 09:09

Justin Beaudry


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.

like image 42
jcdarocha Avatar answered Sep 29 '22 09:09

jcdarocha