vokomokum / foodsoft-vokomokum

plugins and documentation for the use of foodsoft by the vokomokum food cooperative
GNU Affero General Public License v3.0
1 stars 1 forks source link

upload ODIN products #1

Closed edgaleano closed 4 months ago

edgaleano commented 7 months ago

UPDATE: this functionality exists. see comment below

every month we get a new XML from Odin with all the products and their updated prices.

People should be able to upload this XML to foodsoft to import all products.

Since we don't sell all Odin products, there also needs to be an option for only uploading the products in our selection. The workflow should be something like this:

  1. people upload an ODIN XML for the first time, and select which products to include. foodsoft already has a feature to select and unselect products in an upload
  2. next time an XML is uploaded, the products are automatically checked based on the selection from the previous upload.

We also need to find a way to do the first upload efficiently, since we already have the list of products that we want to sell, and we don't want to have to check or uncheck all prodcuts manually. perhaps next to uploading the Odin XML people should also be able to upload a .txt or .csv with a list of ids of products to include.

edgaleano commented 6 months ago

It looks like foodsoft already has a functionality for automatically getting products from Odin: https://foodcoops.net/2023/05/17/odin-catalog-updates/ :eyes:

here is the documentation for it: https://github.com/foodcoops/sharedlists

And here is more documentation: https://github.com/foodcoops/foodsoft/wiki/Shared-database

edgaleano commented 4 months ago

since this functionality already exists in foodsoft I'll close the issue :heavy_check_mark: