Skip to content

Multilingual sites with Polylang or WPML

If your client base spans multiple languages, you've probably reached for Polylang or WPML to translate your WordPress site. Sunshine plays nicely with both — your store-related pages stay in the language each visitor is browsing.

What This Covers

Sunshine has a handful of dedicated pages that power the storefront:

  • Galleries (the main galleries page)
  • Account
  • Cart
  • Checkout
  • Favorites
  • Terms

When Polylang or WPML is active, Sunshine recognizes the translations of each of these pages. When a visitor is browsing your site in French, the cart link points to the French cart page, the checkout uses the French checkout page, and the storefront looks like a single, consistent French site rather than dropping the visitor onto an English page mid-flow.

How to Set It Up

The integration runs automatically whenever Polylang or WPML is active. There's no setting to flip on inside Sunshine. The work is on the translation plugin's side:

  1. Install and activate Polylang or WPML and finish their initial language setup.
  2. Go to Sunshine > Settings > Pages and confirm each Sunshine page is assigned (Galleries, Account, Cart, Checkout, Favorites, Terms).
  3. In Polylang or WPML, open each of those pages and create the translations you need (one translation per language).
  4. That's it. Sunshine will pick the right page based on the visitor's current language.

You only need to assign your default-language pages in Sunshine's settings. The translations are linked through the translation plugin and Sunshine follows that link automatically.

How It Works

When something on your site needs to know "what's the cart page?", Sunshine asks the translation plugin which version of the cart page belongs to the current language. This affects:

  • Page links generated throughout Sunshine (cart, checkout, account, favorites, etc.)
  • Detection of which Sunshine page is currently being viewed, so the right template renders
  • Things like breadcrumbs, redirects, and notices that point at Sunshine pages

If a translation hasn't been created for a given page in a given language, Sunshine falls back to the default-language page. So if you only translate the cart page but not the favorites page, the cart will be localized while favorites will continue to use the original.

Notes

  • Galleries, products, and orders are managed separately by Sunshine and are not translated by Polylang or WPML. The integration here is specifically for the configured Sunshine pages — the storefront frame around your galleries.
  • If a customer's order, cart contents, or account details should appear in a specific language, that's controlled by the visitor's chosen language, not by per-row translation.
  • If you switch translation plugins later (Polylang to WPML or vice versa), recreate the translations in the new plugin and the integration picks up automatically.

Still need help?

If you have not yet found your answer in the documentation articles, please contact support

Sunshine Photo Cart for WordPress