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:
Code:
$price = $products_price;
and edit to this:
Code:
$vat = .20;
$price = (number_format(( $products_price + $products_price * $vat), 2, '.', ''));
that sorts facebook.
if your using Autotweet as well
look for this line:
Code:
if ($showprice){ $message .= ' Only $' . $products_price . '.'; }
and edit to this:
Code:
if ($showprice){ $message .= ' Only £' . number_format(( $products_price + $products_price * $vat), 2, '.', '') . ' !'; }
That only tookm me two days, bring on the hard stuff.
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.
Code:
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
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
Code:
<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:
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.
Re: AutoFacebook [Support]
is anyone here having issues with their autofacebook lite? it worked for me until days ago and nothing has changed except i think, a newer fb layout??
Re: AutoFacebook [Support]
im having trouble installing this as facebook developers screen have changed andf all the button are now different. Can some create new installation instructions please.
stuck on step 4
4. For now we need to click "Web Site" on the left (not that i can see) and edit our "Site URL" and our "Site Domain".
The Site URL is simply your store's web address followed by a '/' forward slash. So it should look something like "http://mystore.com/"
Your Site Domain is just your domain name 'dot' whatever and could look like "mystore.com". No "http://", no "www.", and no "/"
5. Now click "Facebook Integration" on the left (i cant see this either). Towards the bottom you should see "Installable to?" (or this). Uncheck "Users"(or this) and add a check next to "Facebook Pages"(or this) instead.
Re: AutoFacebook [Support]
Hey, I just filled out what I can and FINALLY got Autofacebook 2.0 to work without any problems. Those other things you have to look for, I couldnt find and doesnt seem to exist.
Quote:
Originally Posted by
kitcorsa
im having trouble installing this as facebook developers screen have changed andf all the button are now different. Can some create new installation instructions please.
stuck on step 4
4. For now we need to click "Web Site" on the left (not that i can see) and edit our "Site URL" and our "Site Domain".
The Site URL is simply your store's web address followed by a '/' forward slash. So it should look something like "http://mystore.com/"
Your Site Domain is just your domain name 'dot' whatever and could look like "mystore.com". No "http://", no "www.", and no "/"
5. Now click "Facebook Integration" on the left (i cant see this either). Towards the bottom you should see "Installable to?" (or this). Uncheck "Users"(or this) and add a check next to "Facebook Pages"(or this) instead.
Re: AutoFacebook [Support]
Trying to use AFB Lite. But can't seem to install the app thru facebook.
I try to install as "My Page" and i get error message from FB telling me: "To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself."
so i click the button "Continue as Me", it redirects me back to http://apps.facebook.com/storeupdater/
but when i click the dropdown to "Select Page" i get the error popup saying "The page at http://jamielife.ipower..com says Please create a facebook page before continuing or login on your page's account....but i can't do it as my page. :dontgetit
Any help appreciated,
Ken
Re: AutoFacebook [Support]
This is kind of off subject but for the life of me I can not figure out how to post my own thread for help.... Sorry....
My question if anyone can help me,
I added this code to my product_info_display.php
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),
'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action
=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;
height:40px"></iframe>
It works fine, but in the process it took away my rounded corners at the bottom of my page. Does anyone know how to fix that?
Sorry again, I cant figure out how to post a new topic/question.
Thanks anyone who replies :)
Re: AutoFacebook [Support]
I am not so sure how to view my app? I am looking at it but I don't see any of my products...