Giter Club home page Giter Club logo

Comments (4)

bahiirwa avatar bahiirwa commented on June 21, 2024 1

Agree with approach. Yes, either....or... is neat.

from classic-commerce.

 avatar commented on June 21, 2024 1

I think theme-name/woocommerce should be for legacy installations only and that we encourage the use of theme-name/classic-commerce.

Yes, that's what I think as well. That solution seems perfect to me.

from classic-commerce.

timbocode avatar timbocode commented on June 21, 2024

This requires a small change to function template_path() in includes/class-woocommerce.php as shown in this gist:

https://gist.github.com/timbocode/62b21ea425a48375ea4db2e94b6eba40

This will first look for the existence of directory theme-name/classic-commerce. If that exists, it is set as the template path ( WC()->template_path() ). If theme-name/woocommerce exists, it is ignored.

If theme-name/classic-commerce does not exist, theme-name/woocommerce is set as the template path if it exists.

This does mean that the user cannot have both theme-name/classic-commerce and theme-name/woocommerce in use at the same time but I personally think that's best anyway otherwise things could get a tad messy.

I think theme-name/woocommerce should be for legacy installations only and that we encourage the use of theme-name/classic-commerce.

Thoughts?

from classic-commerce.

timbocode avatar timbocode commented on June 21, 2024

OK, I'll do a PR.

from classic-commerce.

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.