Downloads page not refreshing on purchase

Permalink Browser Info Environment
Hi there, I am setting up the selling of digital downloads. Once the purchase is complete it redirects to a 'My Downloads' page where they can access their content. However (whilst in test mode), If my test user then makes a second, different purchase, when that purchase checks out and goes to the My Downloads page it does not appear, even if you refresh the page. If you log out and log back in again as the user it then appears as you would expect.

Please help, what am I missing? I cannot send the clients site live until I sort this out!!

Type: Pre-Sale
Status: Resolved
StevieB
View Replies:
mesuva replied on at Permalink Reply
mesuva
Hi Stephen,

I think you've hit a bug, that secondary purchase is something I simply didn't think to test.
I'm pretty sure I know why it wouldn't be refreshing and how to fix it though, it's something I've tackled recently in another project.

Give me 24 hours and I'll look to make a change, test it and push up an update for you.

Cheers
-Ryan
StevieB replied on at Permalink Reply
StevieB
Hi Ryan,
That's great. I have sent the site live anyway as I don't think it is a situation we are going to come across immediately, but I do look forward to the update so I can sign it off with the client.
Just to add, a great set of add-on's, I love the power and versatility it gives me because of the way it works with Concrete's permissions. I shall be recommending this method to all future clients wanting e-commerce!

Thanks again,

Steve.
mesuva replied on at Permalink Reply
mesuva
Thanks for the positive feedback, means a lot!

I've updated the package to version 1.0.5 - this should fix the issue you've described. I tested the fix by:

- creating two products, each adding the user to a different user group
- creating a page with two blocks of content with view permissions set to each of the two user groups (so I could easily tell what groups the user was in). I set the memberships config to redirect to this page
- I purchased the first product. That redirected to the page, I could see the first bit of content
- Without logging out, I purchased the second product. Before the change, I'd be redirected to the page but would only see the first bit of content and would need to log out and in again to see the second bit of content. After the fixed I'd see both bits of content immediately as expected, without requiring a logout/in.

Fortunately I'd addressed the same issue recently in some work I've done forhttps://github.com/vividweb/vivid-store,... so I knew what I needed to do, I just had to make sure it worked.

Let me know if you have any further issues.

-Ryan
StevieB replied on at Permalink Reply
StevieB
Just given it a quick test and seems to be working perfectly. Thank you very much, not just for a great add-on, but for a very swift remedy to a bug and for a happy friendly attitude towards us lesser mortals (prevalent amongst most Concrete5 devs, but not all).

You are a credit to the community sir!

Thanks again,

Steve.
mesuva replied on at Permalink Reply
mesuva
Fantastic, glad to hear it's working.

Any chance you can drop a quick review onto the add-ons themselves?

-Ryan
StevieB replied on at Permalink Reply
StevieB
Absolutely I can, although I will do it in the morning after some sleep, I am being quite incoherent at the moment!

Once again, thank you for such a speedy fix!

Steve.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5
Version Installed - 5.7.5
Database Version - 20150713000000

# concrete5 Packages
Avenir 5.7 (1.2), eCommerce with Snipcart (1.1.13), eCommerce with Snipcart: Memberships (1.0.1), Like This (0.9.1), List files from set (1.0.10), Login/Logout Link (1.0), Spacer (0.9.2), Under Construction (1.0.1).

# concrete5 Overrides
blocks/external_form/form/contact_form.php, blocks/external_form/form/controllers/contact_form.php, blocks/external_form/form/controllers, blocks/external_form/form, blocks/external_form, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, blocks/external_form/form/contact_form.php, blocks/external_form/form/controllers/contact_form.php, blocks/external_form/form/controllers, blocks/external_form/form, blocks/external_form, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR

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

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.8

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, memcache, memcached, mhash, mssql, mysql, 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, Zend Guard Loader, 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
memcache.max_failover_attempts - 20
memcached.sess_lock_max_wait - 0
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - 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 - 14400
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/6.2.8 Safari/537.85.17

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.