• Cat

    (@catscholz74)


    My client would like me to make some modifications in the php to the Woo Commerce product page such as changing the title text “product description” to “Program Schedule.”

    If I change the .php files in the plugin folder, how do I know the changes will not be reverted upon updating to the latest version of Woo Commerce?

    Thanks!

    -Cat

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • If you alter just woocommerce/templates/single-product/tabs/description.php, your changes will be lost on update. You could make a custom page template in a child theme, and this may be the way to go if several changes are required.

    However for the example given it may be less work to use the translate feature. Set WPLANG in wp-config.php to, say, en-GB for English, alter the translation file i18n/languages/woocommerce-en_GB.po at line 8371, and use poedit to make the corresponding .mo file.

    From WordPress 3.8, you can put translation files in:
    /wp-content/languages/plugins/textdomain-locale.mo
    to protect from updates, though I’ve not tried that.

Viewing 1 replies (of 1 total)
  • The topic ‘how to preserve modifications when updating’ is closed to new replies.