Hi!

So, my question is whether we can make the following functionality available through commerce_file eventually.

Some background:

The site I'm envisioning is a photographers store, selling digital images
* i want to be able to upload/import masses of images using the media module(and mediabrowserplus)
* then turn those images into products (using commerce_feeds and vbo)
* i want to use the real file to generate a display image (what used to be called imagecache, a media_file_styles generated image is what i mean) instead of requiring duplicate uploads
*
what i envision commerce_file to supply is a config page which lets you pick a media_reference_field on product types (like exif module is attempting) and use that to issue licenses and manage download access

Or will development definitely go another direction? (i can see that this might be specific only to images, and not to other types of digital products)

Thanks!

Comments

recrit’s picture

this is along the lines of our idea that is floating around... decouple this into a license module and a submodule of file license that would be file field specific. I plan on investigating this in the near future. This would lead into a more of licensing entities of which could be controlled on number of accesses, ie instead of downloads.

drupallerina’s picture

Version: » 7.x-1.x-dev
StatusFileSize
new3.32 KB

For now I have to take the feeds workaround using an additional commerce_feeds mapper for mapping existing mediafiles to commerce_file fields.

drupallerina’s picture

StatusFileSize
new3.32 KB

something went wrong with my attachment... let me try this again

thill_’s picture

Title: far_future_feature? » Fedds support for Commerce File
thill_’s picture

Title: Fedds support for Commerce File » Feeds support for Commerce File
pcambra’s picture

Shall we include feeds support in commerce file or have all this stuff in commerce feeds module? see #1249114: Add Commerce File field mapping

discipolo’s picture

definetly in commerce_feeds. i am still trying to figure out how to map files that are already in the database to commerce_fields using their fileID but i keep creating duplicates. hope i will have a patch ready soon

d3vo’s picture

I have been trying to use this patch but I am running into a hangup when it comes to the file upload or mapping. I am not sure what the destination needs to be in the csv file for the file mapping. Do I use a full http://link_to_original_file or /sites/default/private/file or just a filename.zip? I have tried all different ways but get several different errors for each way. A little insight would be helpful.

discipolo’s picture

i think this one needs a file ID

if you want to use the path check this one http://drupal.org/node/1249114

recrit’s picture

Status: Active » Fixed

Initial feeds integration committed per http://drupalcode.org/project/commerce_file.git/commit/6460bd9 and http://drupalcode.org/project/commerce_file.git/commit/54aed20

Feeds Targets provided:

  • {Field Name} : File - import file by specifying a path similar to feeds support for image and file
  • {Field Name} : Data: {limit} - set specific access limits such as 'duration', 'download limit', 'address limit'

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

donbon’s picture

Issue summary: View changes

As a drupal newbie, I had to find out these things through trial and error I thought I'd mention some things here. Make sure to import duration and type.


Some important notes on these values:

  • The license type should be written as "file". Make sure the "f" is undercase.
  • Duration Input is in seconds, e.g. "1209600" = 14days. Importing "0" results in no duration limit, aka infinite license duration.
  • For importing large amounts of products, all with the same duration/license type, using Feeds Tamper's rewrite plugin to auto create the values will save you two whole columns in your csv file.