E
E
Egor2020-07-12 13:59:23
WordPress
Egor, 2020-07-12 13:59:23

Automatic WP price change?

Here's the problem, I need to scrape all the prices from one site (Easy to do, I write in Python) and transfer them to another one made in WordPress. At the same time, it should be possible to change the price immediately for any group of goods. How can I link the script and the site?

The site where you need to update prices - https://kpmtrad.ru/product_list
From here you need to take everything you need - https://mc.ru/products/msk

I say right away, I don't have access to the site yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-07-12
@Yksys126

Hello!

I say right away that I do not have access to the site yet.

Access is highly recommended.
You can implement it in different ways:
1) generate xlsx, csv with a script, and then update the prices with the WP All Import plugin
2) But it’s even better to use the API capabilities. For example, if the site is on WP + Woocommerce, then try using the Woocommerce REST API. You can get the product from the working site by that general indicator (for example, by the article, if it matches on the donor site and the acceptor site.), And then update the price and send it to the server. You can also look for ready-made libs for Wordpress & Woocommerce REST API to work from python. Once threw off here some libraries. I did the same with Java language + WordPress & Woocommerce REST API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question