Avoid duplicate images in Prestashop 1.6 when import CSV - combinations

I am having issues with Prestashop 1.6 and I hope I could find some help in here.
Basically, I uploaded a csv with all the products and everything worked fine. After that I also uploaded another csv with the combinations that include the images related to the product colors and, again, no problems, it simply adds these images to the previously uploaded with the products.
The issue occurs when I update the combinations csv. It seems it duplicates the images from the previous csv. I tried to add a column "delete existing images" set to 1 (=yes) but the problem is that it also removes the product images!
Does anyone have any idea?
Thanks in advance,
Pat

PrestaShop fits the image of the first csv as an image product.
Even if you set to 1 "delete existing images", PrestaShop does not find images because that function deletes the entity attribute and not the product.
My advice is do not upload images of products with attributes in the first csv. General product will look like the image pricipale Default Product.

Related

AWS Personalize complaining about user_id not present in csv when it is. Any suggestions?

I have a csv with user-interactions data and trying to create a data import job on amazon personalize, however it keeps on failing saying column user_id does not exist. can someone please help?
I have tried renaming the column different things and changing schema accordingly but it still fails on that first column.
I figured it out myself, kinda annoying but the first column in CSV cannot be any of the columns that Personalize requires. So, just add some random key or something in first column and it'll pass thru their validation. I hope it helps if anyone has the same issue.
I've also had this issue recently. Turns out my file was encoded in UTF-16 and that didn't play too well with Amazon's systems.

How to add recommended products in django oscar dashboard

I am using django-oscar == 1.6.1 for a project.
I am trying to add recommended products to an individual product in the dashboard, currently I see that the recommended product field is empty, how do I populate it and give the ranking?
It's a streaming search field, whatever you type should search for related term in your existing products database.
For example, if you type <search_term> it would ultimately query (after several intermediate queries of substrings) & hit http://localhost:8000/dashboard/catalogue/product-lookup/?q=<search_term>, the view for which can be found here. As you can see, it searches the product titles only, if you need something else, you can always modify it.
By the looks of it, you haven't populated your products database yet, or there's something else wrong with your installation or setup.

Fetch data from an excel file and make an editable data grid

I am planning to use django. I am provided a task to fetch data from an excel sheet and display it as an editable datagrid on a web page on page load. In grid few fields will already contain data and User need to provide data in few fields in the grid and then after performing some calculations on the frontend itself, one more field will be filled and on clicking save the data should be saved in the excel file. Next time user visit the page he should see the earlier data in the grid. I am not getting how to approach this problem. deadline is coming Sunday. Please suggest how can I achieve this or any sample code will be very helpful. Any help will be appreciated. Thanks

Building a geographical location filter app in Django

I would like to create a market place like app with Djano as the backend server, where users can buy/sell items. In the app I would like have to a feature related to geographic region of a user. Such as, to filter out items in a given specific miles of radius.
Example use case:
User uploads an item, get the gps cordinates from their mobile and store in db.
User can search item, also filter to only get items in X miles radius.
For this feature
I have looked at GeoDjango. But it seems like I need to extend the postgresql database to use it, also by using the postgis engine.
I have also looked at the Haversine formula for nearby queries.
There is also an option for multiple database support.
But I have some initial doubts before proceeding and your insights would really help me alot. Could you please help me with this queries:
I will have to store user data and some other data including the geo location. Will there be any difference/side effects between postgresql_psycopg2 and postgis, to store all the data in one single db?
For my simple use case would you rather prefer to go with the Haversine formula? Or integrating GeoDjango will help me lot in the future?
Or having a multiple database support be better for me or it will be an over head?
point
1. postgresql_psycopg2 and postgis is difference that posgis has inbuilt functionality for the location distance and radius calculation, so postgis is good to go.
For multiple database it depends up on how many user you will have, for initial phase of project you can got with one db, in future you can improve that.

how to remove images from amazon mws catalog

I have got 2 amazon account, US, UK (diff merchantId) and in UK account, i have got DE,ES,IT,FR account with the same merchantID as UK one.
the problem here is, last week in backend because of some issue images got duplicated and when i published the catalog, all images got duplicated in amazon accounts as well. I have spoken to catalog team and they said that they can not do anything unless i provide them the ASINS and only 7 ASINS per support case. I have got almost 9000 ASINS. I need to remove the duplicated images from my catalog and i dont know what to do..
I have published the image feed for 10 ASINS with Operation type 'DELETE' to delete all the images for that product and the response says successful BUT images are still there, I dont know why... i was reading somewhere that images are linked between accounts, so if i delete the images from my UK account, i still need to do the same for US account. i did the same with success response BUT still images are not being deleted from amazon...
can anyone tell me how to remove all images regardless of duplicated or not? and then i can update the images again with proper order.
appreciate your help and time.
If you`d wish to delete single images you have two options:
Delete them manually in your inventory.
Create a file with the full list of ASINs and forward this list in a new case to Amazon Seller Support and ask them to delete the images on this ASINs. As this order will delete every image on this ASINs you`ll have to re-upload the residual images.
Info: Option 2 is just goodwill and I cannot confirm that every Seller Support associate will do that.
Thanks
Raz