Zen Cart Logo
Forums / All Other Contributions/Addons / AutoTweet [support]

AutoTweet [support]

Views: 51,022

Results 41 to 60 of 264
5 Mar 2010, 10:56 AM
#41
omerhanif avatar

omerhanif

Zen Follower

Join Date:
Aug 2009
Location:
London
Posts:
106
Plugin Contributions:
0

AutoTweet [support]

I noticed one problem, when i add products manually it relays to twitter site but when i run feed to add/update products then no new products are shown on twitter despite new products appearing on my site through feed update?

Can some one help plz?

Regards

5 Mar 2010, 3:08 PM
#42
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

I don't know what feed update is. This mod was only written to update twitter when you manually add a new product via the default zencart backend. It wont update twitter if you update an existing product, and it wont update twitter if you add products any other way.

5 Mar 2010, 6:05 PM
#43
omerhanif avatar

omerhanif

Zen Follower

Join Date:
Aug 2009
Location:
London
Posts:
106
Plugin Contributions:
0

Re: AutoTweet [support]

hummm, can i some how add products to twitter from zencart's existing products list? or can i add it manually on twitter itself?

6 Mar 2010, 2:29 PM
#44
heavendreams avatar

heavendreams

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

Re: AutoTweet [support]

Sorry, that I answer so late, but the last week has been very busy for me....

I've made the changes in the update_products.php und the fix from here http://www.zen-cart.com/forum/showpost.php?p=848150&postcount=18
And it works all fine with two languages in my testshop.
I setup a new product with German language and the product appears in the shop and the twitter feed will be update.
So it must work.

But, in my real shop, it doesn't work.
When setting up a new product, it always ends with a blank side.
The product is only avaible for the English language and the twitter feed doesn't update.

I think, the reason must be a server setting, but I can't find out, which setting it might be.

My settings are here:
http://scrap-wishes.com/phpinfo.php

Thanks Micki

6 Mar 2010, 9:08 PM
#46
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

also, I see nothing about json support enabled in your server info. Is it enabled locally? That might be it, but then again I'm not a pro in this area.

6 Mar 2010, 9:16 PM
#47
heavendreams avatar

heavendreams

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

Re: AutoTweet [support]

Yes, I've tried it, and it doesn't help.

I think it must be some server settings, because the modul works fine on another server.

6 Mar 2010, 9:28 PM
#48
heavendreams avatar

heavendreams

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

Re: AutoTweet [support]

What ist json support?

6 Mar 2010, 9:35 PM
#49
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

if you look at: http://htmyell.com/phpinfo.php (my server) and scroll down you'll see it's an enabled php extension.

Yours seems to be missing it I know both classes use json.
It can be installed manually (http://us.php.net/manual/en/json.installation.php), or contact your host.

6 Mar 2010, 9:42 PM
#50
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

you could double check to see if json is installed on the local/remote working servers you've tested, and if so that's probably the problem.

6 Mar 2010, 10:03 PM
#51
heavendreams avatar

heavendreams

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

Re: AutoTweet [support]

Yeah, I've found it - not on my server, on my testserver it is enabled.

I will contact my host, and see, what to do.

Thanks for your help!

Hugs Micki

8 Mar 2010, 10:27 AM
#52
heavendreams avatar

heavendreams

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

Re: AutoTweet [support]

Yeah, now we have JSON support installed an the server, and all works!
Thank for your great help!

And for the wonderful mod :hug:

Hugs Micki

24 Mar 2010, 10:37 PM
#53
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: AutoTweet [support]

I'd like to do a similar API thing with an online art gallery I load my artwork up to. I'm not quite sure how to put it all together.

their help page is http://dart.fine-art.com/api/?i=21085

the code is something like this

$userID = 9991;
$password = "fiddlestix";
$action = "new";
$artistFirstName = "Pablo";
$artistLastName = "Picasso";
$price = 515.95;
$title = htmlentities(urlencode("Paloma en Bleu")); //url encode variables with spaces and special characters
$category = 5;
$urlArt = "http://www.fine-art.com/mypainting.gif";
$vendorCode = "pic12512" ;
$subject1 = 25;
$subject2 = 27;
$media1 = 56;
$urlReturn = "http://www.mysite.com/results.php";
$paypalEmail = "[email protected]";
$watermark = htmlentities(urlencode("© " . "My Name"));

//Redirect to API

$redirectTo = "https://dart.fine-art.com/api/process.asp" .
"?userID=" . $userID . "&password=" . $password . "&action=" . $action .
"&artistFirstName=" . $artistFirstName . "&artistLastName=" . $artistLastName .
"&price=" . $price . "&title=" . $title . "&category=" . $category . "&urlArt=" .
$urlArt . "&vendorCode=" . $vendorCode . "&subject1=" . $subject1 . "&subject2=" . $subject2 .
"&media1=" . $media1 . "&urlReturn=" . $urlReturn . "&paypalEmail=" . $paypalEmail .
"&watermark=" . $watermark ;

header("Location: $redirectTo") ;

Any help would be greatly appreciated.

25 Mar 2010, 12:30 PM
#54
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

So youre trying to have anything you upload to your store also submit to fine-art.com? Or use twitter?

25 Mar 2010, 4:32 PM
#55
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

nevermind i see what you meant:

K, Since I'm feeling generous:

open admin/includes/modules/update_product.php
the 2nd to last line of code (scroll all the way down) should look like this:

zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')));

Delete it, and replace with this:

//D'art Api

//edit the following vars
    $userID = 42146;     //d'art userid
    $password = "yourPassword";     //d'art password
    $artistFirstName = "Jamie";
    $artistLastName = "Taylor";
    $paypalEmail = "jvptaylor##########################";
    $store_url = 'http://www.htmyell.com';      //path to your store without the trailing "/"
    $category = 5;       //see [url]http://dart.fine-art.com/api/variables.asp#response[/url] for info
    $subject1 = 25;      //see [url]http://dart.fine-art.com/api/variables.asp#response[/url] for info
    $subject2 = 27;     //see [url]http://dart.fine-art.com/api/variables.asp#response[/url] for info
    $media1 = 56;        //see [url]http://dart.fine-art.com/api/variables.asp#response[/url] for info
    $watermark = htmlentities(urlencode("© " . "Jamie Taylor"));
//do not edit the vars below
    $prod_name = implode(" ", $products_name);
    $prod_description = implode(" ", $products_description);
    $prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id ;
    $price = $products_price;
    $title = htmlentities(urlencode($prod_name));
    $action = "new";
    $urlArt = $store_url . "/images/" . $products_image;
    $vendorCode = $products_model;  //uses zencart model number
    $urlReturn = zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''));

//Redirect to API and back to store front

    $redirectTo = "https://dart.fine-art.com/api/process.asp" .
    "?userID=" . $userID . "&password=" . $password . "&action=" . $action .
    "&artistFirstName=" . $artistFirstName . "&artistLastName=" . $artistLastName .
    "&price=" . $price . "&title=" . $title . "&category=" . $category . "&urlArt=" .
    $urlArt . "&vendorCode=" . $vendorCode . "&subject1=" . $subject1 . "&subject2=" . $subject2 .
    "&media1=" . $media1 . "&urlReturn=" . $urlReturn . "&paypalEmail=" . $paypalEmail .
    "&watermark=" . $watermark ;

    header("Location: $redirectTo");
//end of d'art api

change the top variables to reflect your fine-art.com info
go to http://dart.fine-art.com/api/variables.asp#response if you need help with them. and thats it, now everytime you add a product in zencart, it will appear on your fine-art.com profile :D

if youd rather download and replace your existing update_product.php here's a link http://htmyell.com/images/share/update_product.zip NOTE: this does not have AutoTweet installed its just the default version and d'art api.

25 Mar 2010, 10:43 PM
#56
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: AutoTweet [support]

That is absolutely fantastic!

Awsome! Thanks soooooo much, I'm still getting my head around this API thing.

is there any way that i can just limit it to a particular category?

26 Mar 2010, 5:30 AM
#57
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

replace current code with:

//D'art Api
if ($current_category_id == 3) { //change this line to category id
//edit the following vars
    $userID = 42146;     //d'art userid
    $password = "yourpassword";     //d'art password
    $artistFirstName = "Jamie";
    $artistLastName = "Taylor";
    $paypalEmail = "jvptaylor##########################";
    $store_url = 'http://www.htmyell.com/zencart';      //path to your store without the trailing "/"
    $category = 5;       //see http://dart.fine-art.com/api/variables.asp#response for info
    $subject1 = 25;      //see http://dart.fine-art.com/api/variables.asp#response for info
    $subject2 = 27;     //see http://dart.fine-art.com/api/variables.asp#response for info
    $media1 = 56;        //see http://dart.fine-art.com/api/variables.asp#response for info
    $watermark = htmlentities(urlencode("© " . "Jamie Taylor"));
//do not edit the vars below
    $prod_name = implode(" ", $products_name);
    $prod_description = implode(" ", $products_description);
    $prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id ;
    $price = $products_price;
    $title = htmlentities(urlencode($prod_name));
    $action = "new";
    $urlArt = $store_url . "/images/" . $products_image;
    $vendorCode = $products_model;
    $urlReturn = zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''));

//Redirect to API and back to store front

    $redirectTo = "https://dart.fine-art.com/api/process.asp" .
    "?userID=" . $userID . "&password=" . $password . "&action=" . $action .
    "&artistFirstName=" . $artistFirstName . "&artistLastName=" . $artistLastName .
    "&price=" . $price . "&title=" . $title . "&category=" . $category . "&urlArt=" .
    $urlArt . "&vendorCode=" . $vendorCode . "&subject1=" . $subject1 . "&subject2=" . $subject2 .
    "&media1=" . $media1 . "&urlReturn=" . $urlReturn . "&paypalEmail=" . $paypalEmail .
    "&watermark=" . $watermark ;

    header("Location: $redirectTo");
//end of d'art api
} else {
 zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')));
}

on the first line where you see

if ($current_category_id == 3) {

change "3" to your art's category id

(you can get this by looking at your categories url, i.e.;
http://htmyell.com/zencart/index.php?main_page=index&cPath=4)

26 Mar 2010, 7:00 AM
#58
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: AutoTweet [support]

you are gorgeous, thanks so much!

31 Mar 2010, 2:27 AM
#59
michellewardley avatar

michellewardley

Zen Follower

Join Date:
Nov 2004
Location:
Port Neil South Australia
Posts:
295
Plugin Contributions:
0

Re: AutoTweet [support]

[QUOTE=jamielife;861611]
$subject1 = 25; //see http://dart.fine-art.com/api/variables.asp#response for info
$subject2 = 27; //see http://dart.fine-

it allows you to choose up to 3 of each of the options, can i do that?

do I just use commas to separate the different selections?

31 Mar 2010, 2:32 AM
#60
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoTweet [support]

hmmm well this would only work if your art falls into the same 3 subjects everytime.