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?
Original question is available on version: 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
Original comment available on version: ru

23.02.2021, 17:53
Original comment available on version: 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
Original comment available on version: 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
Original comment available on version: 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
Original comment available on version: 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
Original comment available on version: 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
Original comment available on version: 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
Original comment available on version: 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
Original comment available on version: 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