spree_digital icon indicating copy to clipboard operation
spree_digital copied to clipboard

Add Versioning for Digital Updates

Open davekiss opened this issue 11 years ago • 3 comments

I'm interested in coming up with a way to add version numbers to each digital product and allowing an existing customer to redownload the latest version of some products while other products require a paid upgrade.

I know this will take a little bit of work, but wanted to get the discussion rolling to see if anybody had any ideas on how to best fit that into the db schema or any other general ideas on getting started.

davekiss avatar Dec 04 '13 23:12 davekiss

Allow me throw my two cents here. I believe you could achieve this using the following technique:

  • Create two variants for a product:
    • One including upgrades
    • Another "locked" to a certain version
  • Each time a new version comes up, just upload the new file in:
    • the variant with upgrades (and reset the download count)
    • a newly created variant for the new version
    • Disable the previous version for new orders

What do you think?

dlage avatar Dec 05 '13 04:12 dlage

I don't want to have a variant where a customer can have the option of choosing whether or not to buy upgrades.

I just want for someone to be able to buy the product, and if the next upgrade is paid then they don't get it automatically and if it is free then they get it and the download count is reset.

Can you think of a way that your method would still apply?

davekiss avatar Dec 31 '13 17:12 davekiss

Could this be one approach? https://github.com/halo/spree_digital/pull/29

halo avatar Dec 02 '14 08:12 halo