Results 1 to 10 of 695

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by BillyBoyle View Post


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

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

    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.

    what file is this? which file do I need to edit?

  2. #2
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by armie View Post
    what file is this? which file do I need to edit?
    First the easy question:
    The price you are seeing is the price without TAX or VAT or whatever added.

    The mod to the file corrects that. so that if you live in a country where we are not used to seeing TAX added at the sale end you don't give miss-leading prices to customers.

    Sorry willie bee it has nothing to do with sales.

    This would be edits to the file whatever-admin/includes/modules/update_product.php.

    You would be looking for the section that starts


    //// INSERT PRODUCT-TYPE-SPECIFIC *UPDATES* HERE //////
    ///////////////////////////////////////////////////////
    //AutoFacebook

    in this section look below your:
    $app_id = "8888888888888"; //given when you created app
    $app_secret = "a5a5a5a5a5a5a5a5a5a5a5a5a5a"; //given when you created app
    $page_id = "1234567890987654321"; //obtained from running facebook_authorization.php from your browser
    $page_token = "blahblahblahblah"; //long number obtained from facebook_authorization.php
    $store_name = "AML Candles"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
    $store_url = 'http://amlcandles.co.uk'; //path to your store without the trailing "/"
    $cur = '£'; //change to your currency symbol. Assumes symbol comes in front of numbers
    $new_message = "Scented Soy Wax Candles!"; // change to whatever or leave the same. i.e "New Cupcake!"

    There is a line that says (ironically)
    // No Need to edit below here.
    about line number 116: (in my version anyway)

    below that you'll see

    About line 123: $price = $products_price; //this is what you need to edit first

    Add the lines of code you seen in the other post and that sorts the VAT issue for both Auto-Facebook and Auto-Tweet.

    If you need to clean up your postings to get rid of the html from your product descriptions you need to edit the line.

    around line 119:

    There were a few optional line commented out there so just pick the one that looks similar to:

    $products_description = strip_tags($products_description);

    That cleans things up if you haven't done so already.


 

 

Similar Threads

  1. v151 autofacebook help
    By sean g in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Nov 2014, 08:52 PM
  2. AutoFacebook and Canada Post Modules
    By DJLQD in forum General Questions
    Replies: 0
    Last Post: 27 Feb 2013, 02:32 PM
  3. v139h Help please with Autofacebook - Support thread is no longer supported
    By shags38 in forum General Questions
    Replies: 0
    Last Post: 18 Jul 2012, 01:49 PM
  4. Problems with AutoFacebook
    By amanda099 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 31 Aug 2010, 10:12 AM
  5. AutoFacebook OG 1.3.9 addon problems
    By eOstrE in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Jul 2010, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg