Just wanted to say thanks for the very nicely put together add-on And the very complete step-by-step how-to. Worked like a charm!
Just wanted to say thanks for the very nicely put together add-on And the very complete step-by-step how-to. Worked like a charm!
Well thanks, I'm glad you liked it :)
Jamie Taylor
Htmyell Web Design and Development
Question: One of my carts is a Zen version 1.3.6. Do you know of any reason why this add-on might not function with it?
Thanks
Well I can't say for sure, as I started zen cart @ 1.3.8, but in theory the code isn't that integrated to the new versions. You might have to find some variable names, but maybe not.
I wouldnt overwrite the existing update_product.php, instead copy the AutoFacebook code into it.
pm me the code for the existing file if need be.
Jamie Taylor
Htmyell Web Design and Development
Hi Jamie
I was going to PM you my update_product.php to see if you could see why it is not posting price and description. But you have your PMs on not allowed.
I added the code below to my update_product.php as it has been modified. Is there anything else I need to add?
Code://AutoFacebook $store_name = "My Store"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com." $store_url = 'http://www.mystore.co.uk'; //path to your store without the trailing "/" $cur = '£'; //change to your currency symbol. Assumes symbol come in front of numbers $new_message = "New Product!"; // change to whatever or leave the same. i.e "New Cupcake!" //your facebook developer app info. $appapikey = 'mykey'; $appsecret = 'mysecret'; $user_id = 'myid'; //id of your facebook store page $infinite_session_key = 'Mysessionkey'; //from facebook app // 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 = implode(" ", $_POST['products_name']); $prod_description = implode(" ", $_POST['products_description']); include_once 'facebook/php/facebook.php'; $facebook = new Facebook($appapikey, $appsecret); $facebook->api_client->user = $user_id; $facebook->api_client->session_key = $infinite_session_key; $facebook->api_client->expires = 0; $attachment = array( 'name' => $prod_name, 'href' => $prod_url, 'caption' => 'Price: '. $cur . $price, 'description' => $prod_description, 'media' => array(array('type' => 'image', 'src' => $prod_image, 'href' => $prod_url))); $action_links = array( array('text' => $store_name, 'href' => $store_url)); $attachment = json_encode($attachment); $action_links = json_encode($action_links); $facebook->api_client->stream_publish($new_message, $attachment, $action_links); //end of autoFacebook
@meltdown let me see the code. pm's should be on now.
Anyway this price issue is baffling me. It works fine on my end everywhere i try it. For those who aren't seeing price, what does it look like on facebook? Are you seeing the dollar sign '$' and then nothing? are you seeing 'Price: ' and then nothing?
Jamie Taylor
Htmyell Web Design and Development
Hi jamielife
Want to say thanks for the mod.
Ifigured out the reason mine was posting to both my personal and business pages was because id selected both users and pages in the app settings lol
As for the price issue, im not getting anything show on facebook other than the image and the model name
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?
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation