Hiding Products

For various business or legal reasons, you may want to prevent international buyers from purchasing specific products on some targeted localized sites. There are multiple options to achieve this goal depending on your use case.

  • If you use Glopal Localized checkout solution, you can reach out to the Customer Support Team, providing a list of SKUs or Brand names that will be blocked at the checkout step.

  • If you don’t use Glopal Localized checkout or if you don’t want visitors to see products they cannot buy on your localized sites, then you may find this documentation helpful.

How to hide products from your localized sites

Use Case 1: You have a dedicated source site or catalog for each localized site rendered by Glopal

Solution: Remove brands or products from your market-specific catalog. If products do not appear on your source site or product catalog, they will not appear on the localized site.

For examples

  • Shopify Merchants should use Shopify Markets features to manage which products should appear on their target market. Please see this Shopify help page.

  • Merchants running on Magento Platform and using a specific Store View as a source to render a Glopal localized site for a specific market, can simply remove targeted products (ex: all products from a given Brand) from the Magento Store View of the corresponding market.

Use Case 2: You have the same source site or product catalog for multiple localized sites and you want to remove products from a given brand only for a targeted localized site.

Solution: Apply specific customizations (Dev required)

  • On non-managed platforms, it is possible to do development to return different source content based on X-Glopal-* headers. You can leverage any existing functionality of your store platform to filter-out products when displaying the source content, based on the target Glopal-localized country (X-Glopal-Country header). With this approach, even that you use a single source site, this site can show different content when Glopal is using it to create a specific localized site. Please see Server-side customizations documentation.

  • On other platforms, you may be able to modify the site template to conditionally add customization CSS classes (".glopal-hide-<COUNTRY>") for products that should be hidden, when displaying product data. Your source site will always show the same content and all products will be visible on your original site. But on Glopal localized sites, products that should be hidden will not appear in the page due to the present CSS class. Please see the CSS customizations documentation.

  • In other cases, you could use JS customizations, adding custom script snippet to remove some page elements based on glopal.target.country value. Please see the JavaScript customizations documentation.

When using CSS or JS to hide products, it is recommended to set up conditional JS-based redirections from product pages back to the homepage, based on glopal.target.country value. For example, on a given localized site, you may want to redirect all product pages that contain a specific brand keyword in their url.

Last updated