Home › Forums › Community Forum › Add multiple posts to a cart then checkout
This topic contains 16 replies, has 3 voices. Last updated by Eduan 4 years, 1 month ago.
Topic Author | Topic |
---|---|
Posted: Wednesday Nov 21st, 2012 at 10:06 am #32248 | |
|
|
Is it possible to allow the customer to add multiple products (posts – we’ll use custom capabilities) to a cart and then checkout at PayPal once? I want to avoid the purchaser having to checkout multiple times at PayPal to be able to get access to 2-12 video posts. |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Wednesday Nov 21st, 2012 at 8:59 pm #32299 | |
![]() |
|
Hi Pam, s2Member does not currently have the shopping cart functionality that you describe. As you’re already aware, Custom Capabilities can be used to sell access to multiple things, but the functionality necessary to “collect” all the Custom Capabilities the purchaser wants and then sell them in one go would need to be created by you. You could do something with PHP sessions where you simply record which “products” the visitors wants and then at checkout you read those session variables and then show a Pro-Form that is configured to sell access to all those Custom Capabilities. |
|
Posted: Wednesday Nov 21st, 2012 at 9:12 pm #32300 | |
|
|
Thank you so much for your thorough reply. I know PHP enough to take some code and change it to my needs, and troubleshoot, but not to write from scratch. Do you know of an example I could modify? Thanks!!!! |
|
Posted: Thursday Nov 22nd, 2012 at 4:34 pm #32374 | |
|
|
Let me clarify what I’m trying to do. I’d like to offer 2 videos for $2.99 or all 12 for 12.99. Customer #1 may want Video 1 and Video 6. I know how to collect which videos they want with PHP and retain them as variables. My question is, how would I pass the Video number(s) as Custom Capabilities for that customer and the $$ amount to Paypal for purchase. An example is nice, but if you can tell me where the documentation for passing PHP variables to S2member is, I’d appreciate it. I’m searching but not finding quite all the pieces I’m guessing that I need. THANKS! |
|
Posted: Friday Nov 23rd, 2012 at 12:28 pm #32425 | |
![]() |
|
Hello Pam, So what you’re trying to achieve is modify the button according to the user’s selections right? In that case you might be interested in this article: Knowledge Base » Using variables in a shortcode Also check out my hack which might help you, just gotta customize it to your needs: http://eduantech.com/code-snippets/donation-button-that-gives-access Hope this helps. :) |
|
Posted: Sunday Nov 25th, 2012 at 12:11 am #32516 | |
|
|
Ok, yes, I’m starting to piece it all together, thank you. I took your donation code, and changed it to match my own product, changing the “amount” variable to a CCAPS variable instead, and changing the button short code to my own created, [s2Member-Pro-PayPal-Form level=”*”…etc etc. I’m unclear on what URL to send the output to, for ” Another important thing, change the output value to url, thanks! |
|
Posted: Sunday Nov 25th, 2012 at 10:09 am #32532 | |
![]() |
|
Glad my button helped you. :) Change the output value, from “button”, to “url”. In order for the hack to work. If that’s what you didn’t understand. :) – Eduan |
|
Posted: Sunday Nov 25th, 2012 at 10:15 am #32535 | |
|
|
output=”url” in the short code is what I have, and it’s still just reloading with this as the url: |
|
Posted: Sunday Nov 25th, 2012 at 1:29 pm #32539 | |
![]() |
|
Could you please post the following here:
Thanks, these’ll help me find the reason of your problem. :) |
|
Posted: Sunday Nov 25th, 2012 at 2:59 pm #32540 | |
|
|
You are so kind to help me with this! I’m sure I will use it over and over again once I get it. I understand each peice, but just not how it all fits together. Here’s my hack, based on your donation hack, my own comments added // after yours//.
Here’s the test post I made with the short code “video-button” short code: http://insightfulastrology.tv/word/button-sale/ Location of the hack is http://insightfulastrology.tv/word/wp-content/mu-plugins/video-button.php |
|
Posted: Sunday Nov 25th, 2012 at 3:38 pm #32543 | |
![]() |
|
Well, I inspected the code and noticed more than one thing wrong. First, I suggest you don’t change the variable names, unless you do a search and replace on the whole file, also please tell me when you change the names, cause I was a bit confused. ;) Also, don’t change the indenting, for some reason it’s all messed up. OK, then, if you want your users to be able to select more than one option, then I suggest you use check boxes, not drop-downs. Here’s some reference on forms, there’s check boxes among those: http://www.w3schools.com/html/html_forms.asp Also, last time I checked, this hack only works with PayPal buttons, not pro-forms, so that’s another thing you need to change. And… Oh yeah, the level attribute must be set to 0 or 1, depending on the level that this is gonna offer, you can’t set it to *. – Eduan |
|
Posted: Sunday Nov 25th, 2012 at 3:44 pm #32546 | |
|
|
Ok I’m going to start over again, not changing the variables, only the “amount” and “Ccaps”. The indenting may have happened in DreamWeaver Cs6 so I will try to keep that the same. I SO appreciate your feedback, and assistance. I am already learning so much from your example. |
|
Posted: Sunday Nov 25th, 2012 at 3:47 pm #32547 | |
![]() |
|
No problem, that’s how you learn. :) |
|
Posted: Sunday Nov 25th, 2012 at 4:08 pm #32548 | |
|
|
Ok, this is using your code, the only changes I made, is that I used a regular PayPal button (Button Code Generator For Independent Custom Capabilities), to change the short code, and there I changed output=”button” to output=”url”. From this url, I input a $ amount, (32.00) – do you think its’ because I have WP in a subdirectory and not in the root?
|
|
Posted: Sunday Nov 25th, 2012 at 5:58 pm #32551 | |
![]() |
|
Not sure if that would cause the problem. I’ve had a similar problem with a client, where it would never redirect correctly in Internet Explorer. What browser are you using? Also, could you try these common troubleshooting tips: Knowledge Base » Common Troubleshooting Tips – Eduan |
|
Posted: Sunday Nov 25th, 2012 at 7:09 pm #32553 | |
|
|
Does not work in IE, Firefox or Chrome. I’ll do some quick troubleshooting but it looks like I can’t use the donation code example. I’ll probably begin working right away on passing variables into a short code. Thank you so much for your time. I know that it can be done, it’s finding the right inroads :) |
|
Posted: Sunday Nov 25th, 2012 at 7:30 pm #32555 | |
![]() |
|
No problem. Here’s the link to variables in shortcodes: Knowledge Base » Using variables in a shortcode Let’s hope it’s nothing too difficult. :) |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.