Social Share Buttons: setup and help

Quick start

  1. Upload and install the mprsocialshare ZIP in Modules > Module Manager.
  2. Click Configure to open the Social Share settings form.
  3. Set Enable to Yes.
  4. In Networks, select the platforms you want, then click Save.
  5. Open a storefront product page and locate the Share: row.
  6. Click each selected icon and check the destination URL and product name where applicable.
  7. Check the row on mobile and on a second product to confirm each share link uses the correct product.

Requires PrestaShop 1.6 or later and PHP 7.1 or later.

Setup manual

Install and first configuration

Follow the steps in Quick start.

Choose the networks

Open the module through Module Manager > Social Share Buttons > Configure. The form exposes two settings.

Setting Default What to change
Enable Yes Set No to hide the product sharing block.
Networks Facebook, X, Pinterest, LinkedIn, WhatsApp, Email Use the multiple-selection field to choose the visible sharing icons.

The network IDs are facebook, twitter, pinterest, linkedin, whatsapp and email. X uses the stored ID twitter. Internally, the selection is saved as a comma-separated string such as facebook,whatsapp,email. You select platforms in the Back Office rather than typing this string into a text field.

For a smaller list, select Facebook, WhatsApp and Email. For a visual catalogue, you can select Pinterest along with Facebook, WhatsApp and Email. There are no API keys to configure.

Check the storefront

The module renders a Share: label and SVG platform icons through displayProductMetaShare and displayProductAdditionalInfo. The latter is a fallback when no sharing block has yet been rendered. The final location depends on your theme's product hooks. The stylesheet loads through displayHeader on product pages while the module is enabled.

The block uses normal HTML links and CSS. It does not load platform SDKs or front-office JavaScript and does not record share counts or set its own tracking cookies. Social websites open after the shopper follows a link. Email uses the browser's configured mail handler.

The product URL comes from the presented product when available, then the PrestaShop product-link helper. The product name supplies the share text on platforms whose URL accepts it. In the following patterns, the values are URL-encoded:

Network Link pattern
Facebook https://www.facebook.com/sharer/sharer.php?u={product_url}
X https://twitter.com/intent/tweet?url={product_url}&text={product_name}
Pinterest https://pinterest.com/pin/create/button/?url={product_url}&description={product_name}
LinkedIn https://www.linkedin.com/sharing/share-offsite/?url={product_url}
WhatsApp https://api.whatsapp.com/send?text={product_name}%20{product_url}
Email mailto:?subject={product_name}&body={product_url}

Test at least two products and compare their links. The module does not create Open Graph metadata, choose social preview images, offer a custom share-message field or add Telegram. Check your page metadata separately if a platform shows an unexpected preview.

Adjust theme placement and style

The standard setup targets product-page hooks. It does not provide CMS or blog placement controls. If a custom product theme lacks a supported hook, a developer can add one appropriate call with product data:

{hook h='displayProductMetaShare' product=$product}

or:

{hook h='displayProductAdditionalInfo' product=$product}

Place the call where you want the row. Check for repeated output after changing hooks. A theme can override views/templates/hook/share.tpl at:

themes/your-theme/modules/mprsocialshare/views/templates/hook/share.tpl

Use these classes for theme CSS: .mprshare-container, .mprshare-label, .mprshare-btn, .mprshare-facebook, .mprshare-twitter, .mprshare-pinterest, .mprshare-linkedin, .mprshare-whatsapp and .mprshare-email.

.mprshare-container { margin-top: 16px; }
.mprshare-btn { width: 40px; height: 40px; }
.mprshare-btn svg { width: 20px; height: 20px; }

Troubleshoot

  • If the row is missing, check Enable, Networks, the product hook and whether the hook receives product data.
  • If a row has no icons, select supported networks and save. Unknown stored network IDs have no matching template branch.
  • If the row is unstyled, check modules/mprsocialshare/views/css/front.css, the product-page header hook and theme overrides.
  • If email does not open, check the visitor's mail handler. The module only outputs a mailto: link.
  • If a platform refuses a share or chooses a different preview, inspect the generated link and that platform's response. The module does not control the external share dialog.

Use Integrity for installation checks. The module also provides configuration, license, support and update controllers.

Disable or uninstall

Set Enable to No and save to hide the row. To remove the module, use Uninstall in Module Manager. Uninstall removes the module's shared configuration entries and admin menu. Your product data stays in PrestaShop.

Questions

1

Will a share link include the selected product combination?

The module uses the product URL supplied by your theme, or passes the rendered id_product_attribute to PrestaShop when building one. It does not update share links with JavaScript after a shopper changes the combination, so the link may not follow the new selection.

Known Issues

4

Pinterest share pin uses the wrong image — picks the first image on the page instead of the product image

Open

The Pinterest share URL doesn't specify the media parameter, so Pinterest's crawler picks the first image it finds on the page (often the logo or a banner) instead of the product image.

Resolution note

Added the og:image URL as the media parameter in the Pinterest share URL, ensuring the correct product image is pinned.

Share channels cannot be selected

ResolvedUpdated:
Fixed in: 1.0.23
The Networks setting showed a label without channel choices, preventing merchants from choosing the share buttons to display.

PHP 7.1 compatibility

ResolvedUpdated:
Fixed in: 1.0.20
The module could fail to load on shops running PHP 7.1.

Missing or damaged interface translations

ResolvedUpdated:
Fixed in: 1.0.19
Some module labels remained in English or displayed damaged text when another shop language was selected.

Feature Requests

1

Implemented

Product sharing buttons

Implemented
Let shoppers share products through Facebook, Twitter, Pinterest, LinkedIn, WhatsApp and email using native share links.

Changelog

v1.0.182026-09-12

  • Addedcomplete FR/DE/ES/IT/PL translations
Older releases

v1.3.02026-04-20

  • Addedadmin menu management via MenuInstaller for streamlined module setup

v1.2.02026-02-05

  • AddedPS 9 / Hummingbird theme compatibility
  • AddedBluesky and Mastodon share targets
  • Improvedbutton layout — supports both horizontal and vertical stack orientations
  • Fixedshare URL encoding for products with non-ASCII characters in name

v1.1.02025-07-16

  • Addedper-platform enable/disable toggles in back office
  • Addednative Web Share API fallback on mobile for unsupported platforms

v1.0.02025-06-02

  • Initialrelease: social share buttons for PrestaShop product pages
  • InitialZero external JS — uses platform share URLs only, no tracking widgets loaded
  • InitialSupports Facebook, X, LinkedIn, Pinterest, Reddit, WhatsApp, Telegram, Email
  • InitialCompatible with PS 1.7.x and PS 8.x

Demo

Test the full module

  • Ready demo shop Explore a ready demo shop in your browser.
  • No registration No account, email or store domain needed.

By opening this demo you accept the demo terms and the privacy policy.

Loading...
Back to top