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.
   
 
Linking Orders and Zoo Visitor together
Posted: 30 November 2011 01:34 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  93
Joined  2011-08-01

For the allover user experience my customer now decided to add Zoo Visitor to the mix because he was unhappy with the clunky way of presenting user data (registration form, login/logout etc.) what - from an aesthetically point of view - I can fully understand.

Now I am looking for a way to link these two together. On the checkout-page Cartthrob needs {customer_first_name} etc. to map those infos to the Order entry, right? Logged in user data coming from Zoo Visitor has this tag: {visitor:first_name}. So it kind of boils down to a prefix-issue?

I hope no offenses are taken here, I am just looking for a starting point and would probably also be willing to hack core files or pay for a plugin or something like that.

Thanks a ton! Marc

Profile
 
 
Posted: 01 December 2011 11:38 AM   [ Ignore ]   [ # 1 ]
Has a Great Personality
Avatar
Rank
Total Posts:  42
Joined  2011-05-21

I was just introduced to ZV yesterday and I’m really intrigued. Would love to know about this too, as well as any other potential conflicts between ZV and CT.

Profile
 
 
Posted: 01 December 2011 12:15 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

Our own product Profile:Edit has tight integration with CartThrob. CT recognizes that it’s installed, and changes the member settings accordingly.

http://mightybigrobot.com/products/detail/profile-edit

Like Zoo Visitor, it allows you to make sweet looking registration forms, and also has the benefit of saving customer data to channel entries for even MORE possibilities.

That said:

if you really want to incorporate Zoo Visitor:

You’d have to copy out the gateway fields data, and add that to your checkout form. You’d have to then wrap the checkout form with the z:v tags, put the ZV data in there. I don’t remember the tags off of the top of my head, but it’s basically this:

{zoo visitor info tag}
{exp
:cartthrob:checkout_form return="" }


<input type="text" value="{visitor:first_name}" name="first_name" /> 
<
input type="text" value="{visitor:last_name}" name="last_name" /> 
<
input type="text" value="{visitor:address}" name="address" /> 
etc
<input type="submit" value="Checkout" />

{/exp:cartthrob:checkout_form}
{
/zoo visitor info tag} 

 

The downside, is that if the customer changes that information, cartthrob won’t update Zoo Visitor, or those fields. So if they change all of the billing information, and they get a validation error, the form would be reset with the original Zoo Visitor information. You could check for CT customer data first before filling in with zoo visitor information, but that gets messy.

With profile edit, you don’t need to do any of that extra stuff.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 01 December 2011 12:21 PM   [ Ignore ]   [ # 3 ]
Has a Great Personality
Avatar
Rank
Total Posts:  42
Joined  2011-05-21

Profile:Edit here I come. smile My problem is solved! Thanks Chris!

Profile
 
 
Posted: 02 December 2011 12:44 PM   [ Ignore ]   [ # 4 ]
Is a Really Great Dancer
RankRank
Total Posts:  93
Joined  2011-08-01

Profile:Edit lookin’ good!

But after tinkering around today for a while respectively thinking about this the other two days I did a pretty short and not extensive but successful test by renaming the ZV custom fields to customer_first_name, customer_last_name etc. to reflect the CT needed input fields and from what I can see now it has worked. More testing on Monday - I wont be able make it on the weekend.

Profile
 
 
Posted: 02 December 2011 01:00 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

I set up Zoo visitor on this site: kringlecandle.com and it worked fine there. Just took me a bit more time.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 19 March 2012 10:02 AM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  8
Joined  2012-02-05

I am using Zoo Visitor also and have also hit this block. Installed CT and thought everything would be smooth sailing but having a litte trouble wrapping my head around member functionality.

To avoid errors when someone tried to update or edit their name etc(which are ZV) in any CT form, should I just copy out the gateway code as mentioned, but instead of replacing the required fields in the form with my ZV information, make these specific fields hidden? The excuse the below code, it is no way accurate, just an idea.

So:

{zoo visitor info tag}
{visitor
:first_name} {visitor:last_name}
{visitor
:address} etc.
{/zoo visitor info tag}
Link to edit contact info 
(goes to ZV account admin page)


{zoo visitor info tag}
{exp
:cartthrob:checkout_form return="" }

<input type="hidden" value="{visitor:first_name}" name="first_name" /> 
<
input type="hidden" value="{visitor:last_name}" name="last_name" /> 
<
input type="hidden" value="{visitor:address}" name="address" /> 
etc 

then below
fields not retained by ZV are editable

<label for="card_type">Payment Type</label>
 <
select name="card_type"  id="card_type">
  <
option value="visa">Visa</option>
  <
option value="mc">Mastercard</option>
  <
option value="amex">American Express</option>
  <
option value="discover">Discover</option>
 </
select>

<
input type="submit" value="Checkout" />

{/exp:cartthrob:checkout_form}
{
/zoo visitor info tag} 
[ Edited: 19 March 2012 10:09 AM by ABD ]
Profile
 
 
Posted: 22 March 2012 09:00 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRank
Total Posts:  465
Joined  2008-09-30

Your idea looks like it should work. Give it a try.

Profile
 
 
Posted: 22 March 2012 10:03 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

Hello ABD. Barrett said you’d sent him a PM sounding a bit frustrated with his late and terse response. 2 things I’d like to say

1. I usually do a lot of the forum support, and I’ve been a bit overwhelmed lately, so I apologize for the slowness

2. His reply is however is correct. Your method is one of the methods I’ve used in the past with Zoo visitor when working with CT. You need to get customer data into the CT fields… outputting them in a hidden or visible field is the method you’d use with Zoo.

I apologize again for any trouble. Best wishes and good luck.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 22 March 2012 10:18 AM   [ Ignore ]   [ # 9 ]
Wallflower
Rank
Total Posts:  8
Joined  2012-02-05

Apologies accepted, and completely understood, but entirely unnecessary. I will try, and if successful, post my results

Profile