How can I 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 in which you can 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 that is required for the "Share Your Purchase" feature. To begin, log into your Shift4Shop Online Store Manager.
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.
Also, please note that only the following 3 dynamic product variables work within the message text:
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:
You can also edit the template used by the modal to customize the look and feel of the actual pop up window. The template used for this feature is located via FTP at "web/assets/templates/common-html5/shareyourpurchase.html"
(Please note that Shift4Shop support will not be able to assist in the customization or designing of the modal window or its template)
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: