结帐模板的 Woocommerce 位置 [英] Woocommerce location of checkout template
问题描述
我正在尝试编辑结帐页面,但找不到模板.具有结帐字段的文件在插件中的位置是什么?
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?
推荐答案
结帐页面由多个 php 文件组成.
There are several php files that make up the checkout page.
wp-content/plugins/woocommerce/templates/checkout/
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 是主文件.
wp-content/plugins/woocommerce/templates/checkout/form-checkout.php is the main file.
[来自 Woo Commerce Docs 的模板结构][1]
[Template Structure from Woo Commerce Docs][1]
http://wcdocs.woothemes.com/codex/template-structure/罢工>https://docs.woothemes.com/document/template-structure/
建议您复制模板文件夹 建议从 woocommerce 插件目录中复制包含要更改的文件的模板文件夹.将其放在主题的根目录下,并将其重命名为 woocommerce(将模板文件夹保留在插件目录中以允许升级).
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).
这篇关于结帐模板的 Woocommerce 位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!