With MyCashflow's Facebook extension, via your online store you can enable Facebook widgets such as “Like” and “Share” buttons, as well as the page plugin, with which you can display the updates on the desired Facebook page.

See also the instructions on how to enable the Facebook extension if you still haven't enabled this in your online store.

The HTML codes necessary for adding Facebook widgets can be found on the Facebook for Developers website.

Adding Facebook widgets to the store theme requires editing HTML files. If you don't know how to add the necessary HTML code snippets to the theme, contact the designer of your online store's theme or our customer service.

Widgets are added to the theme in the following way.

  1. In your online store's admin panel, on the page User interface > Filebrowser navigate to the folder with the active store theme.
  2. Open the file that contains the beginning of the theme's <head> and <body> elements.

    They can usually be found in the helpers/header.html file.

  3. Make sure that the following Interface tags have been used correctly in the theme:
    • {Extensions(for: 'head')} // Precisely before the closing </head> tag.
    • {Extensions(for: 'body')} // Immediately after the opening <body> tag.

    The MyCashflow default themes as well as the free themes in the Theme Store contain the {Extensions} tags by default.

  4. Once you've made sure that the theme contains the {Extensions} tags, on the Facebook for Developers website, go to the page for the desired Facebook plugin.

    In this help article, as an example we've used the Page plugin with which you can add the Facebook update feed to your online store's theme.

  5. Fill in the widget details in the form, and copy the HTML code from the page (in this example, the code can be accessed by clicking Get Code).

    Facebook will also provide a code for adding the JavaScript library used by the widget to the page. Don't copy it, as the JavaScript library has already been added to the page by the {Extensions} tag.

  6. Back in your online store's admin panel, open the theme file to which you'd like to add the widget. Paste the code you've copied to the desired location in the file.
  7. Save the file, and go to your store's customer area and make sure that the widget works properly.

All widgets can be added in the way that has been described in this help article. Depending on the widget, Facebook may require different fields of data, so make sure that you carefully read the detailed instructions on the Facebook for Developers website.