Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Auto unzip a ZIP file of resources

Started by timlight10, April 17, 2021, 04:58:45 PM

Previous topic - Next topic

timlight10

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.

abantecart

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
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

timlight10

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.

abantecart

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

timlight10

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.

maxter

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. :)

abantecart

Ha Ha. I agree, someone has to pay/contribute for this work :)
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

timlight10

#7
Quote from: maxter on April 23, 2021, 02:54:28 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.

Quote from: maxter on April 23, 2021, 02:54:28 PMIn 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.

Forum Rules Code of conduct
AbanteCart.com 2010 -