Videos and Webinars
How Can I Add the "Share Your Purchase - Facebook" Function to My Store?
Search

Add the "Share Your Purchase - Facebook" Function to My Store

If your store is integrated with Shift4Shop's Facebook Connect add-on, you can also utilize a "Share Your Purchase" function on your store.

This function will create a simple ajax pop-up window that will encourage your shoppers to share news of their purchase with both their Facebook friends and Twitter followers upon completion of a purchase. This presents yet another way to use Social Media channels to drive business to your store!

Adding the "Share Your Purchase" Script to your Checkout Page

The first step in the process will be to retrieve the necessary coding for the "Share Your Purchase" feature. To begin, log into your Shift4Shop Online Store Manager.

  1. Using the left navigation menu, go to Modules.

  2. Next, use the search bar at the top to search for "Facebook Connect" to bring up the module.

  3. Click on Change Settings.

Along with your Facebook App ID and Secret keys, you will see a series of text variables that will be used for your "Share your Purchase" options.

These are:

  • Share Message - Facebook
    The basic sharing message that will be displayed on your shoppers' Facebook feeds, including the product name, your store name, and a brief description of the product.

  • Share Message - Twitter
    The basic sharing message that will be displayed on your shoppers' Twitter feeds, including the product name and your store name.

Below the "Share Message" areas, you will then see two specific scripts that will be used for the "Share Your Purchase" feature. Each of these scripts will behave on your store differently, so select the entire code for one (CTRL-A) and copy it (CTRL-C) to your computer's clipboard.

The two options are:

  • Display the Share Your Purchase Window Automatically
    Upon completion of the sale, an ajax modal window will open up automatically and encourage your shopper to share their purchase. The pop-up window will allow posting the share to Facebook or Twitter.

  • Display the Share Your Purchase Button
    At the final checkout page, your shoppers will see a button that will open up the ajax modal pop-up window described above.

Activating "Share Your Purchase"

Once you've selected and copied the script that you'd like to use, you will now need to place it onto your store's Checkout 4 template. To do this, please use the following steps.

From your Online Store Manager:

  1. Go to Content > Titles & Content.

  2. Look for "Checkout #4" and click on its Edit button.

  3. Paste (CTRL-V) the copied script code into the "Footer" section at the bottom.

  4. Click Save at the top right to commit your changes.