GithubHelp home page GithubHelp logo

Comments (3)

BananaHemic avatar BananaHemic commented on May 26, 2024

I believe you can delete bearded's version of the file and woocommerce will use it's own version. Make a backup first of course!

from bearded.

BeatDeer avatar BeatDeer commented on May 26, 2024

How to update outdated templates

We need to determine what templates to update, make a backup of old templates and then restore any customizations.

Go to WooCommerce > System Status. Scroll to the end of the page where there is a list of templates overridden by your theme/child theme and a warning message that they need to be updated. For example, the template cart-shipping.php is outdated:
outdated-template

To fix it, copy the default template from wp-content/plugins/woocommerce/templates/[path-to-the-template] and paste it in your theme folder.
Save a backup of the outdated template.

Open the template you pasted into the theme folder with a text editor of choice, such as Notepad++, and replicate changes that you had to the previous template.

We recognize that it can be time consuming. This is why we try to avoid changing WooCommerce templates, but sometimes it is wise to break backwards compatibility.

Source:
https://docs.woothemes.com/document/fix-outdated-templates-woocommerce/

from bearded.

tallcoder avatar tallcoder commented on May 26, 2024

I had the same problem and to save you from destroying your view and redoing any customizations you did, you can use this:

Replace Line #115 and #117 with these:

$comment_form['comment_field'] .= '<p class="comment-form-comment"><label for="comment">' . esc_html__( 'Your review', 'woocommerce' ) . ' <span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required></textarea></p>';

comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) );

from bearded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.