A
A
Alexander2020-11-16 18:02:19
WordPress
Alexander, 2020-11-16 18:02:19

How to make the transition to a new theme (design) on a working site with Wordpress + Woocommerce?

There is a working store. You need to change the theme (template) to a new one. It is clear that any innovations in the files that I made with the current theme must be made in the new one. All this can be done on the dev site and then roll out the file update to the prod. But what about theme settings?
Option two.
1. Make at the time of the DB dams and on the dev site for some time set up and test everything. And then only return orders and new users for this period from the production site to the database and apply this updated database on the working production site. But how can selected missed orders and users be transferred? What if there are other changes, for example, in product descriptions?
2. Make a completely new store and set up a new theme. But how then can the plugin settings be transferred from the old site and all other information about products, orders, customers?

Or is there another approach?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kulnev, 2020-11-16
@alexanderkulnyow

If this is a completely different topic, then you can configure it locally and deploy it to the working version

B
Belarus007, 2020-11-16
@Belarus007

Do everything locally and, if you need to immediately set the theme settings, you can use the hook:

add_action('after_switch_theme', 'newtheme_setup_options');

function newtheme_setup_options () {
  //тут вызываешь update_option(), с нужными ключами-значениями, для корректной работы темы
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question