digital download

Permalink Browser Info Environment
Hi
I want to sell a digital download that as a product key. my question is
can this addon be set up so each time a user buys a digital download they’re given a different URL?
or do I need to make multiple product blocks of the same product and assign different URLs

I would like to make one product block and assign different URLs so when a user buys the digital download they get their own URL to the download and product key?

thanks in advance Damian

Type: Pre-Sale
Status: In Progress
day187
View Replies:
mesuva replied on at Permalink Reply
mesuva
Hi Damian,

I can't think of a way to achieve this with Snipcart and the memberships add-on, at least by itself.

I think would you would need to do is write another add-on that has an event listener, one that triggers when a user is added to a user group. The concrete5 event would be 'on_user_enter_group'. When that happens, you would need to store into another database table somewhere the user ID and an assigned product key.

Then on a page that would be made accessible via user group permissions, i.e a 'My Product Keys', you would then need a block to look at the currently logged in user and display a list of links to the product keys that have been assigned to them.

I do have another package that responds to Snipcart order events, but the benefit of doing it based on user groups is that it would work for cases where you wanted to set someone up manually, you wouldn't have to put through a Snipcart order for it to work.

In other words, the actual assigning and displaying of product keys isn't something I can see easily handled by Snipcart Memberships alone. This add-on can create users and assign groups to that user based on the product bought, but there's nothing in it that would allow you to specifically assign items to a user - that would have to be coded up.

-Ryan
day187 replied on at Permalink Reply
day187
Thanks for the reply Ryan, but when it comes to coding its way beyond my skill level I can follow instructions and guides.

Think my best option is to email user manually when purchased the digital download until I find a solution.

Thanks again keep up the good work

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), Background Image and Overlay (0.9.9), Cycle2 Slide Show (1.0.2), eCommerce with Snipcart (1.3.3), Honest Websites Back To Top (1.0.1), HonestWebsites Simple testimonials (1.0.0), List files from set (1.0.13), Neat (0.9.2), Simple Gallery (1.0.5), Thumb Gallery (1.0.3), Vivid Carousel (1.0.1)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.0.1

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 6000
max_input_vars - 1000
memory_limit - 128M
post_max_size - 100M
sql.safe_mode - Off
upload_max_filesize - 100M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.