AbanteCart Community

AbanteCart Development => New Features Discussion => Topic started by: timlight10 on April 17, 2021, 04:58:45 PM

Title: Auto unzip a ZIP file of resources
Post by: timlight10 on April 17, 2021, 04:58:45 PM
It would be very helpful to upload a ZIP file with resources (e.g. PDF, images, etc...) and have AbanteCart automatically unzip the file and add the individual files to the product.
Title: Re: Auto unzip a ZIP file of resources
Post by: abantecart on April 18, 2021, 08:28:01 AM
timlight10, this sounds like a good feature, but there are some concerns.
1. it is an advanced feature and can cause unexpected results for some users. Cannot be bluet prove.
2. Will not work well on all hosts without additional server configuration.

P.S. Part of this can be achieved with the existing import. Your resources would need to be uploaded prior or exist on remote public URL
Title: Re: Auto unzip a ZIP file of resources
Post by: timlight10 on April 21, 2021, 08:44:22 AM
1. Can you elaborate what the troubles might be? For example I can think of "what happens if there are folders inside of the ZIP"? I'd say we should import files in any subfolders. Ignore any unsupported or non-matching file types. e.g. if uploading a ZIP of images to the PDF section, ignore all files.
2. What kind of server configuration? I can help write the documentation.
Title: Re: Auto unzip a ZIP file of resources
Post by: abantecart on April 21, 2021, 10:44:30 PM
How would this be better than existing product import/update?
https://abantecart.atlassian.net/wiki/spaces/AD/pages/16777227/Import+Wizard
Title: Re: Auto unzip a ZIP file of resources
Post by: timlight10 on April 22, 2021, 07:20:54 PM
That requires setting up a whole file, etc...
I get resources from my product vendors in ZIP files. Being able to upload the ZIP file in one action would save time from having to extract the files manually and then upload them to AbanteCart.
Title: Re: Auto unzip a ZIP file of resources
Post by: maxter on April 23, 2021, 02:54:28 PM
Sounds like a custom solution. How many users would need this? I have seen integrations with drop shippers and they provide URLs to product images. That works perfect with the import.
In the scenario of zip based import, this will now require to follow naming convention for files/folders and will be a lot to handle on error side.
Sound like a lot of work with ton of support and lack of reward. :)
Title: Re: Auto unzip a ZIP file of resources
Post by: abantecart on April 23, 2021, 02:56:26 PM
Ha Ha. I agree, someone has to pay/contribute for this work :)
Title: Re: Auto unzip a ZIP file of resources
Post by: timlight10 on April 23, 2021, 02:58:38 PM
provide URLs to product images. That works perfect with the import.

Disagree, see this thread: https://forum.abantecart.com/index.php/topic,8964.msg35606.html#msg35606
which ironically, nobody was able to help me with.

In the scenario of zip based import, this will now require to follow naming convention for files/folders and will be a lot to handle on error side.
Sound like a lot of work with ton of support and lack of reward.
I am not sure this is true. Wouldn't you just add another step to adding resources to product? If adding an Image resource, and the file type is a ZIP, extract it and then attach the component images to the product.