X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Intellicontact Integration for x-cart (https://forum.x-cart.com/showthread.php?t=27637)

joomlashack 12-28-2006 06:57 AM

Intellicontact Integration for x-cart
 
1 Attachment(s)
1. You'll need to grab an account at http://joomlashack.intellicontact.com
2. Get a secret key and password for this application from Intellicontact
3. You'll need to add this code to func.php before:

# Send notifications to orders department and providers when product amount in stock is low

(about line 3216)

Code:

        # Subscribe the customer to a list at IntelliConnect. X-Cart support team (zaa@cdev.ru) #537293395 [[[
        require $xcart_dir."/include/intellicontact.php";

        $ic_key = "";
        $ic_secret = "";
        $ic_login = "";
        $ic_password = "";
        $ic_list_id = "";

        $contact_data = array(
            "prefix" => $userinfo['b_title'],
            "fname" => $userinfo['b_firstname'],
            "lname" => $userinfo['b_lastname'],
            "email" => $userinfo['email'],
            "address1" => $userinfo['b_address'],
            "address2" => (!empty($userinfo['b_address2']) ? $userinfo['b_address2'] : ''),
            "city" => $userinfo['b_city'],
            "state" => $userinfo['b_state'],
            "zip" => $userinfo['b_zipcode'],
            "phone" => $userinfo['phone']
        );

        $res = ic_handle_subscription($ic_key, $ic_secret, $ic_login, $ic_password, $contact_data, $ic_list_id);
        # ]]]
}


Enter in your account info, secret key etc as appropriate.

4. Add the attached include file. Note its been renamed to a txt file so I could upload it :)

1day2004 01-15-2007 10:42 AM

Re: Intellicontact Integration for x-cart
 
This is great. Thanks.

I have created a custom field in IntelliContact called 'Group' and want all customers who get added to the list using this method be called Group '1'.

Which of these codes would work, if any?

1.
Code:

"group" => $userinfo['1']

2.
Code:

"group" => ['1']

3.
Code:

"group" => '1'

1day2004 01-15-2007 11:02 AM

Re: Intellicontact Integration for x-cart
 
I just added the code to include/func.php but my website no longer loads properly.

Its just a blank white page instead of my home page. When I remove the code, my website works again.

Any ideas whats wrong?

burtsTechie 01-31-2007 01:06 PM

Re: Intellicontact Integration for x-cart
 
I've looked through this code and it appears to add registered customers only. Is that correct? Is it possible to use it for unregistered users as well?

smh7233 04-23-2007 09:26 AM

Re: Intellicontact Integration for x-cart
 
Quote:

Originally Posted by 1day2004
I just added the code to include/func.php but my website no longer loads properly.

Its just a blank white page instead of my home page. When I remove the code, my website works again.

Any ideas whats wrong?



Im having the same problem. Have you figured this out yet?

1day2004 04-23-2007 05:44 PM

Re: Intellicontact Integration for x-cart
 
Quote:

Im having the same problem. Have you figured this out yet?

No, I never figured it out. Let me know if you get it working.

Isleman 06-25-2008 01:35 AM

Re: Intellicontact Integration for x-cart
 
Has anybody got this working properly ?
I would be quite interested to get intellicontact working with x-cart and manage my e-mails campaigns from Intellicontact instead X-cart.

samz724 07-08-2008 12:25 PM

Re: Intellicontact Integration for x-cart
 
wow +1 on how to get this figured out!

Thanks! :mrgreen:

imexhouse 07-12-2008 06:48 PM

Re: Intellicontact Integration for x-cart
 
That lonely closing brace at the end of the code will give you a blank page for sure.

1day2004 07-29-2008 06:12 PM

Re: Intellicontact Integration for x-cart
 
I got rid of the brace, that took care of the blank page.

There's a new issue now. I receive an error message when i place an order:

Quote:

Warning: main(XML/Serializer.php): failed to open stream: No such file or directory in /home/admin/website.com/html/include/intellicontact.php on line 15

Fatal error: main(): Failed opening required 'XML/Serializer.php' (include_path=':.:/usr/share/pear') in /home/admin/website.com/html/include/intellicontact.php on line 15

I can obviously see that Serializer.php is missing. I checked the intellicontact.php code and noticed that it also calls for Unserializer.php.

Anyone know what these files are?


All times are GMT -8. The time now is 12:23 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.