Author Topic: Auto unzip a ZIP file of resources  (Read 310 times)

Offline timlight10

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +9/-0
    • View Profile
    • Dedicated Presentation Solutions
Auto unzip a ZIP file of resources
« 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4308
  • Karma: +288/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Auto unzip a ZIP file of resources
« Reply #1 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
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

Offline timlight10

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +9/-0
    • View Profile
    • Dedicated Presentation Solutions
Re: Auto unzip a ZIP file of resources
« Reply #2 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4308
  • Karma: +288/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Auto unzip a ZIP file of resources
« Reply #3 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
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

Offline timlight10

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +9/-0
    • View Profile
    • Dedicated Presentation Solutions
Re: Auto unzip a ZIP file of resources
« Reply #4 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.

Offline maxter

  • Full Member
  • ***
  • Posts: 211
  • Karma: +64/-0
    • View Profile
Re: Auto unzip a ZIP file of resources
« Reply #5 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. :)

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4308
  • Karma: +288/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Auto unzip a ZIP file of resources
« Reply #6 on: April 23, 2021, 02:56:26 PM »
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

Offline timlight10

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +9/-0
    • View Profile
    • Dedicated Presentation Solutions
Re: Auto unzip a ZIP file of resources
« Reply #7 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.
« Last Edit: April 23, 2021, 03:00:46 PM by timlight10 »

 

Powered by SMFPacks Social Login Mod