1
1
16Gb2017-01-19 14:36:02
PHP
16Gb, 2017-01-19 14:36:02

The site is constantly changing product id. How to implement unloading in Yandex market?

In general, a parser works on the site, it clears the database and fills everything with a new one, which is why the IDs change. Yandex Market needs permanent IDs, products have a permanent URL, but it cannot be stuffed into the id field.
What are the options? It is not necessary to rewrite the parser so that it only updates the offer, this is a very long and the latest backup option.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
W
WQP, 2017-01-19
@WQP

Make another table
ID | URL
and already give it to Yandex

D
dev400, 2017-01-19
@dev400

dopfield with unchanging id is not an option?

A
Andrey Nikolaev, 2017-01-19
@gromdron

Use url hash instead of ID

T
ThunderCat, 2017-01-19
@ThunderCat

Cant number one - change the id every time - and reindexing does not affect the base well, and it's an extra hassle.
Cant number two - each product must have an article in the price list, a unique key, if it is not there, then something went wrong (although we see this from the first paragraph).
The solution is either to fix the first one and rewrite part of the price update code, or the second one and introduce order in the warehouse and in the accounting department.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question