Zen Cart Logo
Forums / All Other Contributions/Addons / AutoFacebook [Support]

AutoFacebook [Support]

Views: 140,955

Results 401 to 420 of 691
31 Jul 2011, 09:07
#401
Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

AutoFacebook [Support]

@cybergirl

Just so you know it's not something you have done or should have done. It works that way for me too.

Well thats a serious pain as its okay for a couple of ads but when you have a number to create a new ad AND insert ALL its attributes as well would take a lifetime in my case.

This is a very good addon but I'm afraid its not very practical in the way it works on anything but a very very small site.

31 Jul 2011, 19:08
#402
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: AutoFacebook [Support]

It can be made to update facebook for copied products, there are some alterations that need to be done. I offered up how to do this as well as specify when it would update fb, so for instance if you were updating a product description you could specify whether or not to post if to fb. No one took me up on the offer so I didn't bother spending the time. I guess I will post it here and perhaps update the zip in the downloads.

I couldn't get the fb app to work properly so used the older version (not the lite). My changes are for using this older version.

01 Aug 2011, 07:11
#403
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: AutoFacebook [Support]

It can be made to update facebook for copied products, there are some alterations that need to be done. I offered up how to do this as well as specify when it would update fb, so for instance if you were updating a product description you could specify whether or not to post if to fb. No one took me up on the offer so I didn't bother spending the time. I guess I will post it here and perhaps update the zip in the downloads.

I couldn't get the fb app to work properly so used the older version (not the lite). My changes are for using this older version.Hi lankeeyankee,
That sounds like a great enhancement! I think that specifying if or when you want to post to FB would be excellent. We often copy products or have products set up & deemed 'unavailable' sitting waiting until our stock arrives before we make them 'live'.
I'd love to try your version if you are still submitting it:bigups:

04 Aug 2011, 06:50
#404
west_net avatar

west_net

New Zenner

Join Date:
Jul 2011
Posts:
18
Plugin Contributions:
0

Re: AutoFacebook [Support]

Can anybody help me with this app, tried to follow procedures but they seem a bit dated, seems to hook thru but then gets stuck in a "reload" loop; this is point 14 on the authors web page

Thanks for any help

05 Aug 2011, 10:04
#405
tyger avatar

tyger

New Zenner

Join Date:
Jan 2010
Posts:
13
Plugin Contributions:
0

Re: AutoFacebook [Support]

I've been using this for a while now and had to reinstall when i changed servers and domains.

This time around the updates are posting to the wrong facebook page. (I admin 3 other pages in addition to my store page) How can I make sure the updates go to the correct page?

05 Aug 2011, 13:58
#406
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

Tyger:

I've been using this for a while now and had to reinstall when i changed servers and domains.

This time around the updates are posting to the wrong facebook page. (I admin 3 other pages in addition to my store page) How can I make sure the updates go to the correct page?

Go back and do what WHOSYOURDADDY says to do to fix it.

WHOSYOURDADDY:

IMPORTANT UPDATE FOR THOSE WHO MANAGE SEVERAL FACEBOOK PAGES

Like most I have been scratching my head on how to get this app from Jamielife (Thanks Jamielife:cool:) to post new products in our zen cart to the proper Fan Page/Business Page.

Each fan page has its own page id and access token. The easy part was getting the page ID the hard part was figuring out how to get the the access token for the specific page.

After you have gone through the initial steps outlined by Jamielife to get the app authorized the next steps will allow you to have this app post to the page of your choosing.

Here is the solution.:

  1. Run this link in your Browser. Please replace URL with your connect URL (Facebook Application dialog) and APPID with your application ID

You will need to add https// to the following links

If done correctly you get your zen cart with the URL Parameter Access Token

  1. This URL will return to you a URL parameter access_token.

  2. Save the token somewhere;

  3. Load This URL. Replace TOKEN with the token received from Facebook at point 2.

  4. As a result you will get the json with all your pages and all access tokens. Save them somewhere;

Once you have this data it is simple going into the update_product.php at lines 88-92 and change them according to the information associated with the specific page that you want to mod to post to.

Test to make sure it works

I have tested it on 1.3.9f with the latest version of Jamielife's mod with success :clap:

Good Luck

11 Aug 2011, 17:14
#407
hbellc avatar

hbellc

New Zenner

Join Date:
May 2011
Posts:
24
Plugin Contributions:
0

Re: AutoFacebook [Support]

Hello,
I just installed this add on for my website which is currently 1.3.9h I have followed all direction however on your statement "Now click "Facebook Integration" on the left. Towards the bottom you should see "Installable to?". Uncheck "Users" and add a check next to "Facebook Pages" instead."

there is nothing on Facebook Intergration that has that option. when i go to the app part to add app it sends me to my website. also the http://apps.facebook.com/---------/ is blank where the -------- lines are.

How do i know if it is working properly without your directions not being on the facebook app section?

Thanks

16 Aug 2011, 16:56
#408
vescera avatar

vescera

New Zenner

Join Date:
Sep 2010
Posts:
24
Plugin Contributions:
0

Re: AutoFacebook [Support]

When you have more than one page on facebook application goes blank and dont work. Is there update soon for this great mod? autoFacebook Light

27 Aug 2011, 07:35
#409
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: AutoFacebook [Support]

Is there a way to remove the pricing? Because some items we have at MAP then crossed out in red with a sale price. But the sale price does not show on the facebook page. Anyways I think it is better to remove the price so the user will click on it to read about it first and to see the actual price on our site.

28 Aug 2011, 00:17
#410
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: AutoFacebook [Support]

willie bee:

Is there a way to remove the pricing? Because some items we have at MAP then crossed out in red with a sale price. But the sale price does not show on the facebook page. Anyways I think it is better to remove the price so the user will click on it to read about it first and to see the actual price on our site.

Yes there is.

All you do is open up update_product.php and comment out line 107 for example.

Original section of the file.

'page'              =>  $pageID,
'prod_image'        =>  $_POST['products_image'],
'price'             =>  $products_price,
'prod_name'         =>  $_POST['products_name'][$_SESSION['languages_id']],

Modified section of the file.

'page'              =>  $pageID,
'prod_image'        =>  $_POST['products_image'],
// 'price'             =>  $products_price,
'prod_name'         =>  $_POST['products_name'][$_SESSION['languages_id']],

Now the price will not be posted on Facebook.

04 Sep 2011, 23:54
#411
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

CybaGirl:

Yes there is.

All you do is open up update_product.php and comment out line 107 for example.

Original section of the file.

'page' => $pageID,
'prod_image' => $_POST['products_image'],
'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],

> 
> Modified section of the file.
> 
> ```
'page'              =>  $pageID,
'prod_image'        =>  $_POST['products_image'],
// 'price'             =>  $products_price,
'prod_name'         =>  $_POST['products_name'][$_SESSION['languages_id']],

Now the price will not be posted on Facebook.

Just a quick check before I go breaking it all over again. :frusty:

could you enlighten us newbees as to the line number or section of the code we should edit for this, please.

I can see two or is it three times where it is entered and would not like to fiddle around with the wrong bits. :cry:

05 Sep 2011, 00:00
#412
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

Addendum to my last post.

would it be in this section?

// No Need to edit below here.
$prod_image = $store_url . "/images/" . $_POST['products_image'];

// $price = $products_price;
$prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id;
$prod_name = $_POST['products_name'][$_SESSION['languages_id']];
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
//$prod_description = implode(" ", $_POST['products_description']);

Ironically for me with the header;

// No Need to edit below here.

:unsure: :lookaroun

05 Sep 2011, 00:12
#413
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

BillyBoyle:

Addendum to my last post.

would it be in this section?

// No Need to edit below here.
$prod_image = $store_url . "/images/" . $_POST['products_image'];

// $price = $products_price;
$prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id;
$prod_name = $_POST['products_name'][$_SESSION['languages_id']];
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
//$prod_description = implode(" ", $_POST['products_description']);

Ironically for me with the header;

// No Need to edit below here.

:unsure: :lookaroun

also edit line 135

//'caption' => 'Price: '.$cur . $price,

or you'll have an currebcy symbol with no price.

05 Sep 2011, 02:44
#414
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: AutoFacebook [Support]

Yes thanks for that I forgot to edit the currency symbol out :hug: .

Also to make your life easier when editing or comparing files you might find the following two programs of great use to you.

EditPad Lite

http://www.editpadlite.com/

Press and hold the Shift key and then press the F11 key to get the line numbers to show. This will make your life easier when trying to find line numbers and what code to edit, remove etc. Plus you can set it to replace NotePad as it uses tabs for all your opened text files.

WinMerge

http://winmerge.org/

For comparing differences between your mod files and or adding changes so that mods will work along side each other.

:bigups:

05 Sep 2011, 14:25
#415
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

CybaGirl:

Yes thanks for that I forgot to edit the currency symbol out :hug: .

Also to make your life easier when editing or comparing files you might find the following two programs of great use to you.

EditPad Lite

http://www.editpadlite.com/

Press and hold the Shift key and then press the F11 key to get the line numbers to show. This will make your life easier when trying to find line numbers and what code to edit, remove etc. Plus you can set it to replace NotePad as it uses tabs for all your opened text files.

WinMerge

http://winmerge.org/

For comparing differences between your mod files and or adding changes so that mods will work along side each other.

:bigups:

Your very welcome. :bigups:

I do use Winmerge for compare and merging
I use Mostly Dreamweaver in code view or Context for php editing, though I will take a look at the program you suggested.

Do you know anything about formating the the curency out put from this mod (or any php file I guess)

I'm looking at including the price for my postings but have hit a couple of... (well really don't know what I'm doin) issues.

I found an edit way back in the thread for
line 123 (or there abouts)

$price = $_POST['products_price_gross'];

to show the price with VAT or TAX added.

The issue I have is the number of decimal places (3)

I get a price as this £0.996 instead of £0.99

I have tried this edit as it looked similar to an edit the [OP] offered for formating the same in autotweet 3

$price = $_POST[number_format($products_price_gross, 2, '.', ',' )];

I'm not really php savy and have been going crossed eyed reading this thread and a whole load of info on php.net

Any help would be greatly appreciated and I am sure other users would benifit from this as well.

Thanks in advance Billy

05 Sep 2011, 14:38
#416
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

Here I go again, replying to my own posts.

How sad is that. :P

I was getting the edit correct for formating out put except for copying it from the web page on php.net my sigle quotes were all wrong not coming out like ' ' at all.

Now I don't get a broken update product page, though I am not getting a figure showing on the facebook post.

I know the answer is with in reach, just that my wee short arms can't get it. :D

05 Sep 2011, 15:42
#417
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

:clap: :flex: :bigups: :wink: :shocking: :cool:

Got it, SO ******* happy with myself right now.

I've worked out how to format php output from zen cart to facebook and twitter. :P

Look for this line:

$price = $products_price; 

and edit to this:

	$vat = .20;
	$price = (number_format(( $products_price + $products_price * $vat), 2, '.', ''));

that sorts facebook.

if your using Autotweet as well

look for this line:

if ($showprice){ $message .=  ' Only $' . $products_price . '.'; }

and edit to this:

if ($showprice){ $message .= ' Only £' . number_format(( $products_price + $products_price * $vat), 2, '.', '') . ' !'; }

That only tookm me two days, bring on the hard stuff.

15 Sep 2011, 11:56
#418
vescera avatar

vescera

New Zenner

Join Date:
Sep 2010
Posts:
24
Plugin Contributions:
0

Re: AutoFacebook [Support]

Everything was working till today. I try to get new token but I get this code. Try every sugestion from thread for this error but no luck. Any help, thanx.

Notice: Undefined offset: 1 in /htdocs/facebook_authorization.php on line 956

Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in /htdocs/facebook_authorization.php on line 599
17 Sep 2011, 10:55
#419
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

Would like some (probably advanced) help on this one .
Would really like to have correct price showing on the facebook updates (where price does not include VAT).

My previous attempt to fix this works okay if and when the price does include VAT. see two posts up.

Have been looking through other mods I have implemented and found this calc for colloecting Info on price it's form /admin/includes/modules/product/collect_info.php

<script language="javascript" type="text/javascript"><!--
var tax_rates = new Array();
<?php
    for ($i=0, $n=sizeof($tax_class_array); $i<$n; $i++) {
      if ($tax_class_array[$i]['id'] > 0) {
        echo 'tax_rates["' . $tax_class_array[$i]['id'] . '"] = ' . zen_get_tax_rate_value($tax_class_array[$i]['id']) . ';' . "\n";
      }
    }
?>

function doRound(x, places) {
  return Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
}

function getTaxRate() {
  var selected_value = document.forms["new_product"].products_tax_class_id.selectedIndex;
  var parameterVal = document.forms["new_product"].products_tax_class_id[selected_value].value;

  if ( (parameterVal > 0) && (tax_rates[parameterVal] > 0) ) {
    return tax_rates[parameterVal];
  } else {
    return 0;
  }
}

function updateGross() {
  var taxRate = getTaxRate();
  var grossValue = document.forms["new_product"].products_price.value;

  if (taxRate > 0) {
    grossValue = grossValue * ((taxRate / 100) + 1);
  }

  document.forms["new_product"].products_price_gross.value = doRound(grossValue, 4);
}

function updateNet() {
  var taxRate = getTaxRate();
  var netValue = document.forms["new_product"].products_price_gross.value;

  if (taxRate > 0) {
    netValue = netValue / ((taxRate / 100) + 1);
  }

  document.forms["new_product"].products_price.value = doRound(netValue, 4);
}
//--></script>

It would I think (truth is I don't really know a lot about coding) solve the issue of tax/vat showing or not showing as required.

Are there any proper coders reading this thread any more?
Is there a way to transfer tis to the Autofacebook module?
Would it need converted into a php function and can someone do this?
Am I asking to much? :smile:
Please Jamie I need your input. :clap:

23 Sep 2011, 08:43
#420
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: AutoFacebook [Support]

Is there a way we can update the instructions since it looks like the apps for facebook has changed?

I got it to work and it says facebook updated successfully on my admin side but when i go to my facebook page it is blank.

i have the correct ID's and such that are correctly filled in.