1b.app
Link copied -

Webasyst API / Import products do not load photos into the box

Hello, lately products by automatic action Webasyst API / Import products come to the box without a photo. The photo format for the site has not been changed. What could be the reason?
Оригинальный вопрос доступен на версии: ru

Answers:

Hello. Give a link to the product in the box, which does not receive a photo and a link to the webasyst of this product
23.02.2021, 17:32
Оригинальный комментарий доступен на версии: ru

23.02.2021, 17:53
Оригинальный комментарий доступен на версии: ru

Any thoughts on this?))
25.02.2021, 16:16
Оригинальный комментарий доступен на версии: ru

For some reason, custom names for photos are formed for you. By default, we are trying to take a photo from the link:
/wa-data/public/shop/products/31/75/7531/images/88788/88788.970.jpg
and you have it in:
/wa-data/public/shop/products/31/75/7531/images/88788/shtory-i-tyul-5086.750.jpg
from the difference as far as I understand shtory-i-tyul-5086 and the size is 750 (or is it part of the url).
In any case, you need several such examples to understand how exactly the names of such photos are formed and access to the database + a link to phpmyadmin to see where this photo name lies. It will take about 2 hours to finalize the import for your format.
25.02.2021, 17:41
Оригинальный комментарий доступен на версии: ru

Thank you! Now there are two types of photo names on the site:
1) for older products /88788.970.jpg - were generated by webasyst with the image_id parameter.
2) for newer /shtory-i-tyul-5086.750.jpg - where "shtory-i-tyul-5086" is the original name of the uploaded photo from the image_filename field in the database, 750 - yes, this is the size (the webasyst setting "Use original names is enabled files")
26.02.2021, 12:09
Оригинальный комментарий доступен на версии: ru


Fokin Vladimir Sergeevich
Client wrote:
shtory-i-tyul-5086.750.jpg

But how can I understand this name for a photo for a specific product, having only access to the database? Can you screenshot the image_filename for this product from the database, is it stored there with .750?
26.02.2021, 12:42
Оригинальный комментарий доступен на версии: ru

For example, for a product on the website https://lanita-shtor.com.ua/product/7531/ which was discussed above. The size 750 is not stored in the database. The link is formed from the database values The size is added to the photo name in the theme template
26.02.2021, 13:35
Оригинальный комментарий доступен на версии: ru

How can I understand the size of your photo based on the data from the first screen? I understand that you can have 1k lines of code written in smarty, but I won’t duplicate it in my action
26.02.2021, 13:44
Оригинальный комментарий доступен на версии: ru

You wrote above "By default, we are trying to take a photo from the link: /wa-data/public/shop/products/31/75/7531/images/88788/88788.970.jpg" That is, photos with a size of 970 were initially loaded. Links of the new like, if they are also with a size of 970 "/shtory-i-tyul-5086.970.jpg" - they will have pictures of the appropriate size. I think the size should be specified as the previous one - 970.
26.02.2021, 13:59
Оригинальный комментарий доступен на версии: ru

For some reason I thought that the photo is only one size store. Yes, we can do everything in 2 hours. Bill?
26.02.2021, 14:15
Оригинальный комментарий доступен на версии: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment