Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Full example One Page Checkout
Posted: 23 April 2010 12:07 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  19
Joined  2010-04-08

Hi everyone,

I have spent some time building a checkout screen, that I like.  Since their are currently no full working examples of this.  I thought I would share mine.  Hopefully it is useful.  You can get it here if you are interested:

http://github.com/bitdigital/cartthrob_checkout

It is currently one long file, to keep things contained, but it could easily be broken out to multiple templates.

You should look here to see how the ajax is working. http://cartthrob.com/forums/viewthread/113/#589

The fields are tuned for Paypal Pro, but those can easily be changed.

Feedback welcome.  Cheers.

Profile
 
 
Posted: 23 April 2010 12:40 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

That’s awesome. I’ll definitely have to add some more ajax stuff to our documentation. Rob’s been working on a jQuery plugin that runs from CartThrob so hopefully we can simplify this stuff too.

 Signature 

NOTE: If I say “I will look into x” and you PM me information, please do not hesitate to contact me again about it, if I do not respond in several hours, or at most a day. Please feel free to remind me as you see fit

Profile
 
 
Posted: 19 July 2010 03:23 PM   [ Ignore ]   [ # 2 ]
Wallflower
Avatar
Rank
Total Posts:  20
Joined  2010-04-29

I wish that link worked, because I could *really* use just a template to work from to figure out how to build this type of basic checkout page. It seems to me that the documentation lists all tags and everything, but nowhere can I find just a few simple examples of how typical checkout pages would work.

I realize that a big feature of CartThrob is that it integrates with EE and works the “EE way” and such, but I’m building a checkout and it needs to work the “checkout way” and for that I really need just a few solid examples of those. Am I missing something?

Profile
 
 
Posted: 19 July 2010 03:32 PM   [ Ignore ]   [ # 3 ]
Wallflower
Rank
Total Posts:  19
Joined  2010-04-08

My appologies, I changed my account name to my real name.

http://github.com/beauohara/cartthrob_checkout

Profile
 
 
Posted: 19 July 2010 03:35 PM   [ Ignore ]   [ # 4 ]
Wallflower
Avatar
Rank
Total Posts:  20
Joined  2010-04-29

Oh cool, thanks so much for the update, that’s very helpful to see!

Profile
 
 
Posted: 19 July 2010 03:38 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

Brigleb: The auto-install templates have sample code available within them. If you have an expectation of how your checkout page should work, post here, and I may be able to get some samples together for you. We have several examples, but different people have different ideas about how much should be in a checkout.

We’ll eventually include more samples, but for now we have to focus on some other features (ee 2.1 compatibility being the big one)

 Signature 

NOTE: If I say “I will look into x” and you PM me information, please do not hesitate to contact me again about it, if I do not respond in several hours, or at most a day. Please feel free to remind me as you see fit

Profile
 
 
Posted: 19 July 2010 03:43 PM   [ Ignore ]   [ # 6 ]
Wallflower
Avatar
Rank
Total Posts:  20
Joined  2010-04-29

And thank you, Chris, duh. I must have missed installing those, most helpful!

Profile
 
 
Posted: 19 July 2010 03:49 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

I need to add them as samples on the site as well. This isn’t the first time it’s come up.

 Signature 

NOTE: If I say “I will look into x” and you PM me information, please do not hesitate to contact me again about it, if I do not respond in several hours, or at most a day. Please feel free to remind me as you see fit

Profile
 
 
Posted: 19 July 2010 04:12 PM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

Here’s the links to template code that’s included with the auto-install templates:

http://cartthrob.com/tutorials/template_example_donations/
http://cartthrob.com/tutorials/template_example_order_reports/
http://cartthrob.com/tutorials/template_example_single_page_checkout/
http://cartthrob.com/tutorials/template_example_software_downloads/
http://cartthrob.com/tutorials/template_example_t-shirt_store/

 Signature 

NOTE: If I say “I will look into x” and you PM me information, please do not hesitate to contact me again about it, if I do not respond in several hours, or at most a day. Please feel free to remind me as you see fit

Profile
 
 
Posted: 30 March 2011 11:10 AM   [ Ignore ]   [ # 9 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

How can I use this great example for both customers who have an EE account as well as New users.

I can populate the billing/shipping form with current logged in users, but how do I use the same for to create a new user account on submit?

In order to autopopulate the fields with my members custom fields I need to wrap the checkout_form with the member:custom_profile_data tags.

But in doing so nothing is displayed if you are not currently a logged in member.

{exp:member:custom_profile_data}
      {exp
:cartthrob:checkout_form 
      id
="order" 
      
required="shipping_first_name|shipping_last_name|"
      
return="checkout/order_info"


Thanks in advance.

Peter

[ Edited: 30 March 2011 11:28 AM by eastwooddesign ]
Profile
 
 
Posted: 30 March 2011 02:02 PM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRank
Total Posts:  3369
Joined  2009-05-29

Use a conditional {if logged_in} and print out the fields outside of custom_profile_data.

Profile