Kevin
Kevin

Reputation: 928

Woocommerce not showing any changes

I'm trying to edit the Woocommerce checkout page.

The file is located in

enter image description here

I did some changes in the form-checkout.php file but in my browser i get to see nothing at all! I even opened it in different browsers and opened the website in incognito mode.

I deleted all the php in form-checkout.php to see if i could see any changes but nope. I'm wondering if this is the right file to edit.

Thanks in advance

Upvotes: 1

Views: 782

Answers (2)

Stanley Wang
Stanley Wang

Reputation: 1164

It's ok but not the best practice to modify WooCommerce templates.

WooCommerce has a override template mechanism. By doing so, your modifications will not be missing when you updating WooCommerce.

If you don't see any changes when you modifing the template file directly, your theme may have overridden WooCommerce templates.

You can check which template is overridden at wp-admin WooCommerce->System Status page. You can modify the files in your theme, or copy it to the child theme which is the better way. enter image description here

Upvotes: 1

RST
RST

Reputation: 3925

That is not the way to make changes to any plugin.

* Never edit core plugin files. *

Changes will be lost on future updates. Read the manual. You will find you will have to copy files to your themes folder.

Upvotes: 1

Related Questions