Jump to content

Move to another group after purchase a file


Go to solution Solved by Esther E.,

Recommended Posts

Posted
6 minutes ago, opentype said:

I do that with linked Commerce products. So the user is buying a Commerce product which has the group update and then the Download file links to the Commerce product, so the customer can also download the file. 

Can you elaborate? Do I have to create a product for every single file I have?

Posted (edited)

Yeah, you have to have a product ready to be linked to from a file. 

Could contain: Page, Text

So, it might be a bit more complicated than you hoped for, but it is a native way that does what you want. Instead of selling in Downloads, you push it all to Commerce. 

Edited by opentype
Posted
8 minutes ago, opentype said:

So, it might be a bit more complicated than you hoped for, but it is a native way that does what you want. Instead of selling in Downloads, you push it all to Commerce. 

Oh, you mean people will purchase in the Store instead of in Downloads?

Posted

Unfortunately, this is not practical for me. I have a lot of files to add, each one as a new product.

I could probably create a new app and move the user to the specific group via a hook in the Downloads extension  (onPurchaseGenerated method) but that won't work on IPS5, you know.

Thanks for the tips. 👍

Posted

Btw, it seems there will be a way in IPS5:

Quote

Invoice Listener

An Invoice listener is fired only on the \IPS\nexus\Invoice class. This listener does not require you to specify a class to extend.

The Invoice listener includes a single method, onStatusChange. This is fired when the invoice is saved and the status changes (pending/paid/expired/canceled).

 

Posted
30 minutes ago, Adriano Faria said:

but that won't work on IPS5, you know.

How do you know this? Have you seen v5 yet? Have you read about all upcoming dev related changes?  I guess the answer is no, so please stop posting this constant false claims and FUD about v5 until you see at least the first public alpha..

Posted
5 minutes ago, Daniel F said:

How do you know this?

Because of this:

46 minutes ago, Adriano Faria said:

and move the user to the specific group via a hook in the Downloads extension  (onPurchaseGenerated method)

This we all already know.

Posted
7 minutes ago, Daniel F said:

How do you know this? Have you seen v5 yet? Have you read about all upcoming dev related changes?  I guess the answer is no, so please stop posting this constant false claims and FUD about v5 until you see at least the first public alpha..

Mate - you've misread his comment; he's clearly talking about hooks. And he followed it up with a possible option in v5.

Posted
4 minutes ago, Nathan Explosion said:

Mate - you've misread his comment; he's clearly talking about hooks. And he followed it up with a possible option in v5.

It's slightly frustrating to see people over and over again insist that things aren't going to work because we won't have hooks, after we've gone through so much trouble to make sure that people can continue to do most of the things they currently do. 

 

Posted
1 minute ago, Esther E. said:

It's slightly frustrating to see people over and over again insist that things aren't going to work because we won't have hooks, after we've gone through so much trouble to make sure that people can continue to do most of the things they currently do. 

 

But Adriano only stated that hooks won't be possible for what he wants to do...that is all. It's his use-case, he's identified what is possible in v4 and identified that that specific approach won't be possible, and then identified another possible approach.

Daniel overreacted; disagree if you wish. No skin off my nose.

Posted
1 minute ago, Nathan Explosion said:

But Adriano only stated that hooks won't be possible for what he wants to do...that is all. It's his use-case, he's identified what is possible in v4 and identified that that specific approach won't be possible, and then identified another possible approach.

Daniel overreacted; disagree if you wish. No skin off my nose.

Except that his specific approach actually is possible, literally with the same onPurchaseGenerated method.

Posted
Just now, Esther E. said:

It's slightly frustrating to see people over and over again insist that things aren't going to work because we won't have hooks, after we've gone through so much trouble to make sure that people can continue to do most of the things they currently do. 

Not this time, really. It was a genuine question then I found out that will be possible to still do it on V5. 

That’s all. Tired of this, honestly. I won’t be a burden anymore.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...