Home › Forums › Community Forum › Payment canceled when user bought nother cc
Tagged: custom capabilities, payment cancel
This topic contains 26 replies, has 4 voices. Last updated by Cristián Lávaque 4 years, 3 months ago.
Topic Author | Topic |
---|---|
Posted: Wednesday Sep 19th, 2012 at 1:43 pm #25833 | |
|
|
Hi! I have two different custom capabilities. Big Problem: Did I do anything wrong or what happend??? /Malin |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Thursday Sep 20th, 2012 at 7:04 am #25906 | |
|
|
Hi Malin. Well, s2Member can’t handle more than one subscription yet, but it’s fine to have a running subscription and then sell stuff with one-time payments. If the second ccap is for lifetime access and paid just one time, then you shouldn’t have the problem you mentioned. Make sure you’re not selling a subscription with a single payment, it has to be a Buy Now one. The one payment subscription is only useful if you want to give a trial, but that doesn’t seem to be the case. Double check that you aren’t using a subscription button/pro-form for the ccap, please, it should be Buy Now. I hope that helps. :) |
|
Posted: Monday Oct 1st, 2012 at 5:30 am #27042 | |
|
|
Thank you! (I didn’t see your reply until now!) Yes I made two subscriptions… I wasn’t aware I couldn’t do this. I will now change this to Buy now. Do you know how I can get the customer back on the payment? Do they have to buy it again? Thanks, |
|
Posted: Monday Oct 1st, 2012 at 6:03 am #27045 | |
|
|
Alright, need to get this completely so I have further questions. One subscription only. Mine is called “klubb”. I made one Buy Now for the cc called “sockerfri”. Seems to work fine for subscribers to “klubb”. But how can somebody wants to buy “Sockerfri” without already being a subscriber to “klubb”? And what do I do about people already bought sockerfri and then wants to buy “klubb”??? Thanks, |
|
Posted: Monday Oct 1st, 2012 at 6:33 am #27047 | |
|
|
I have a similar situation where i have a lifetime course which is a single purchase, called “basic” and a monthly subscription called “element”. They work fine together. The only “problem” is that once a member is registered (free or having purchased the other ccap), and they purchase something with the ccaps, IF they are not logged in, the s2M does not seem to be able to associate the purchase (made while not logged in) to a member who will log in minutes later. That is why it states that the member has to be logged in. But if it is a new member, no problem. What i found is that (while i can still manage the number of registrations), i have to go check each purchase to make sure the ccaps are added properly, and if not, i add them manually. You can also add, in small characters, something beside or below the purchase button that “if they are already registered, please log in before clicking”. Of course, another alternative would be to use conditionals and only let the purchase button appear if they are logged in, meaning you would require everyone to register at a Level 0. Depending on your target, it might or might not be convenient. |
|
Posted: Monday Oct 1st, 2012 at 8:08 am #27061 | |
|
|
If the user doesn’t have an account, then you’d sell him the ccap but also give him an s2Member Level (1 or higher). Or have him register first for free at Level 0 and then, while logged in, pay for the ccap to add it to his account. We’re working on improving this, but for now it’d be like that. You can use conditional to check whether the user is logged in or not to determine what button to show him. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite] |
|
Posted: Monday Oct 1st, 2012 at 8:12 am #27062 | |
|
|
Right, this would probably be the safest route to avoid the problem you described. If the user is not logged in, then s2Member assumes new user and the purchase can’t be tied to an existing account without the admin doing it manually, like you have. |
|
Posted: Monday Oct 1st, 2012 at 9:27 am #27072 | |
|
|
But how do I give him Level 1 with the Buy Now-form??? It says Level=”*” If I change it to Level=”1″ there is no difference between this form and the one I used before that didn’t work… I already use different forms depending on if your logged in or not. but I suppose the best way then is to let people register at Level 0 first… OR, could I use the Buy Now and set Level=”0″ when they buy “sockerfri”? Or would that not be possible since Level 0 is free??? Thanks, |
|
Posted: Monday Oct 1st, 2012 at 9:37 am #27073 | |
|
|
Ok, so I see there are two different Buy Now forms. One called “Capability” that is what I talk about in my last post, and it seems to only work if you’re a registered, but there is also the “Specific Post/Page” that seems to work if your NOT registered. So perhaps I can use the last one for people not logged in.. But then it might be weird if they also want to buy “klubb”… |
|
Posted: Monday Oct 1st, 2012 at 1:20 pm #27096 | |
|
|
ONe current “annoyance” of s2M is that the visitor cannot make two purchases at the same time. They can only purchase ONE, go through the process, and come back for a second one if they want to. Hopefully, it will be a new feature in the next major release. |
|
Posted: Monday Oct 1st, 2012 at 7:03 pm #27152 | |
|
|
Malin, The Buy Now forms/buttons cannot be used to purchase Membership, as they are designed for one-time purchases by non-members who don’t need an account. Instead, they simply receive an email with a time-sensitive link to receive access to the content they just purchased. If you want to offer membership (i.e., an account on your site), you must use one of the Level Forms (Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms). If you want to charge one-time for membership access, you can certainly do that. Simply change the payment dropdown to “I want to charge One-Time” and select the period of access you’re selling. |
|
Posted: Wednesday Oct 3rd, 2012 at 8:09 am #27331 | |
|
|
Thanks Raam! But I’m getting more and more confused now :) I DO offer membership and I DO use the Membership Level 1 form for that. The Problem was that I thought I could add 2 or more different custom capabilities, but as Cristián and Cassel said, it is not possible, that I need to use the Buy Now forms instead. So after that: I DO want EVERYONE to get registered. But how can I do that??? I thought the answer was to get the ones who buy “sockerfri” to sign up as Level 0. (and they just upgrade to Level 1 if they want “klubb” too). And my question was if it was possible to add them to Level 0 at the same time they purchased “sockerfri” with the Buy Now form… Your answer says it’s NOT possible. Right? But I cannot use a membership form for level 0 either, right? So the only way, is to have them to first sign up for free and become Level 0… then log in and then purchase. Am I correct? Or do you have an easier solution for me??? THANK you so much for your help and support!!! |
|
Posted: Thursday Oct 4th, 2012 at 7:30 am #27416 | |
|
|
Malin, I got a bit confused with the latest replies here, but I think what you want is to have the user registered and sell him a custom capability, one-time payment for lifetime access to that ccap, right? If so, make sure he’s logged in when you show him the ccap pro-form/button generated with one of these: The Specific Post/Page wouldn’t be a good choice for what you want. That’s to sell access to content without having an account. Let me know if it helps, please. :) |
|
Posted: Friday Oct 5th, 2012 at 4:35 am #27544 | |
|
|
Haha, yeah, I’m confused too :) I believe that is what I want. I realize I need to have them to register and log in first. Another question… Can I use the same Buy Now form if I don’t need them to register? Or do they HAVE to register (as level 0) before purchasing with Buy Now forms? Thanks! |
|
Posted: Friday Oct 5th, 2012 at 5:39 am #27548 | |
|
|
No, you can’t use that button/pro-form if the user isn’t logged in. Not because they’re buy-now, but because they’re independent custom capabilities, which can only be added to an account. If you want to sell a ccap to someone not logged in, you have to use the Level button/pro-form, with the ccap included. |
|
Posted: Friday Oct 5th, 2012 at 5:43 am #27550 | |
|
|
Ok… but then I can only sell ONE ccap to someone not logged in? In my case, I HAVE to have them register then.? |
|
Posted: Friday Oct 5th, 2012 at 5:54 am #27551 | |
|
|
Oh, no, you can sell several ccaps at the same time, just separate them with commas: [hilite mono]ccap1,ccap2[/hilite]. :) |
|
Posted: Friday Oct 5th, 2012 at 5:57 am #27552 | |
|
|
But I have 2 completely different online-courses. They buy them seperately, not at the same time. |
|
Posted: Friday Oct 5th, 2012 at 5:58 am #27553 | |
|
|
By the way, in case there’s a misunderstanding with “independent” in Independent Custom Capabilities, that’s because they aren’t being added to a role, but the user, they’re independent of the WP role the user has. So it’s not like they’re independent so only one can be sold at a time, you can sell several at the same time too, just wanted to make that clear. |
|
Posted: Friday Oct 5th, 2012 at 5:59 am #27554 | |
|
|
Then sell them separately. I thought earlier you were asking if you had to sell them separately, so it sounded like you wanted to sell them together… Sorry for misunderstanding. |
|
Posted: Friday Oct 5th, 2012 at 6:06 am #27555 | |
|
|
As you see in my first post I DID have to separate Level 1 forms and the problem was the payment got canceled as soon as they bought both courses. So now it’s all confusing :) I guess I could use Buy Now forms when somebody buys their second course, but… will that work even if one of the courses is monthly paid and not a one time payment??? |
|
Posted: Friday Oct 5th, 2012 at 6:14 am #27556 | |
|
|
If it’s paid monthly, then you have to sell a Level, the ccap can’t be sold with a subscription, it’s the level that can and you add the ccap to that sale. Remember, too, that when the EOT demotion happens, the level is dropped to 0 and all ccaps are removed, even the ones sold without expiration. So it can get complicated to mix things like these with the current s2Member.
|
|
Posted: Friday Oct 5th, 2012 at 6:32 am #27558 | |
|
|
Yes it’s complicated, but has to be doable. Just need to figure out the best way. Ok, it seems to work if I do this: If they are not already Level 1 and want only “sockerfri”, they register at Level 0 and then they can buy “sockerfri”. If they want “klubb” later on, I use an upgrade form to level 1… Does it seem like I have got it right this time??? |
|
Posted: Friday Oct 5th, 2012 at 7:26 am #27560 | |
|
|
Yep, that sounds right. The only trouble I can see is if someone starts the Level 1 subscription, then buys the sockerfri ccap, and then ends the Level 1 subscription: he’ll be demoted to Level 0 and the ccap removed. You’ll need to use a hack to avoid ccaps being removed on demotion and not have that problem. Move the file s2member\includes\classes\auto-eots.inc.php to the /wp-content/mu-plugins/ folder and comment out this: [hilite pre_code]foreach ($user->allcaps as $cap => $cap_enabled) if (preg_match ("/^access_s2member_ccap_/", $cap)) $user->remove_cap ($ccap = $cap); [/hilite] I hope it helps. :) |
|
Posted: Friday Oct 5th, 2012 at 7:28 am #27561 | |
|
|
Thank you soooo much for your help and you patience :) I’ll try the hack too… |
|
Posted: Friday Oct 5th, 2012 at 7:33 am #27563 | |
|
|
One little thing though: Do you think I should take off the ccap “klubb” from my Levvel 1 subscription? /Malin |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.