Woocommerce location of checkout template

后端 未结 4 1167
盖世英雄少女心
盖世英雄少女心 2021-02-01 17:34

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?

4条回答
  •  被撕碎了的回忆
    2021-02-01 17:57

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

提交回复
热议问题