Skip to content
nt3rp edited this page Sep 12, 2012 · 12 revisions

LeadSpeaker was previously called ReEngage.

Installation

Installation is a manual for the moment. Here's what you'll need to do.

  1. Checkout the latest version of the code (dev branch)

  2. Create an application on Shopify. Make sure to use Legacy authentication. Details on this can be found on the environment setup page

    a. You'll want the redirect URL to be http://app-engine-name.appspot.com/a/shopify?app=ReEngageShopify

  3. In your local_consts.py file, make sure that the following is present:

     SHOPIFY_APPS = {
         //... whatever other apps.
         'ReEngageShopify': {
             'api_key': 'YOUR_APP_ID',
             'api_secret': 'YOUR_APP_SECRET',
             'facebook': {
                 'app_id': '392482400810748',
                 'app_secret': '70936547d4f80c815dcd3dff67eab869'
             }
         } 
     }
    

    a. If your test site is not on myshopify.com, you'll need to create a new Facebook application

  4. Deploy to your domain on appspot

  5. Visit your-domain.appspot.com/r/shopify/beta, and enter your shopify store URL

  6. After you've installed the application, there will be some instructions about adding Fraser. Don't worry about that section of the instructions. Instead, visit your store's admin interface (your-store.myshopify.com/admin).

  7. Visit Themes > Template Editor, and under Layouts, you'll need to edit theme.liquid

    1. Remove any of the tags that you might find in the Shopify SEO guide for designers. Our snippet will be doing most of this work.

    2. Add the following snippet:

       {% include 'leadspeaker-header' %}
      
  8. To be absolutely sure that products exist, run this URL:

     http://your-domain.appspot.com/product/shopify/fetch?app_uuid=APP_UUID
    
  9. To be absolutely sure that collections exist, run this URL:

     http://your-domain.appspot.com/collection/shopify/fetch?app_uuid=APP_UUID
    
  10. You should also run the following to create the queues, in case they haven't been created:

     https://your-domain.appspot.com/r/shopify/get_or_create_queues?client_uuid=CLIENT_UUID
    
  11. If you're deploying for a customer, you'll need to create a custom Facebook application with their domain. Once you've done that, you'll need to visit the following URL and enter the details:

     http://your-domain.appspot.com/r/setup_fb
    
  12. Make sure to add the following div to the relevant spot on the page:

     <div id="_willet_buttons_app"></div>
    
  13. Follow the instructions in the email to activate your account, and follow the subsequent link to login, and VOILA!

Clone this wiki locally