Skip to main content

Showing Account Widget Links to EU Customers Only

Learn when you can show an Account Widget link only to EU customers, what the workaround uses, and when a different approach is needed.

Written by Stuart Chaney

Showing Account Widget Links to EU Customers Only

Rivo does not include a native setting for showing the Account Widget, a widget section, or a single widget link only to customers in specific countries.

If you need an EU-only action inside the Account Widget, the supported workaround is to add a custom condition to the widget. This is most useful for order-specific links, such as a withdrawal, return, or order action button, where the widget already has an order and shipping country to check.




How the Workaround Works

For order-specific actions, the Account Widget can use the order’s shipping country to decide whether a link should appear.

For example, a store can show a withdrawal or returns link only when:

  • The customer is viewing an order details screen

  • The order has a shipping country in the EU or EFTA

  • Any extra store policy conditions are met, such as a return window or fulfillment window

This is a custom setup. It is not controlled by a self-serve country targeting toggle in the Account Widget settings.




When This Works Best

This approach works best when the link belongs to a specific order, because the widget can use that order’s shipping country.

Good examples include:

  • Showing an EU-only withdrawal link on an order details page

  • Showing a country-specific returns link for eligible orders

  • Showing an order action only during a specific post-fulfillment window

This approach is not a good fit for areas that do not have an order attached, such as the widget home screen or a general profile link. In those areas, the widget may not have a shipping country available, so you may need a different customer or storefront signal.




Setting It Up

  1. In Rivo, open Accounts.

  2. Select Account Widget.

  3. Configure the order action you want customers to see, such as a returns link, tracking link, or additional order button.

  4. Open Javascript Settings for Developers.

  5. Add the custom logic to the appropriate field:

    • On Hash Change Javascript is typically used when the rule depends on the widget page changing, such as opening an order details screen.

    • Onload Javascript can be used for logic that should run when the widget first loads.

  6. Test the widget with orders from eligible and ineligible shipping countries.

  7. Test any timing rules, such as whether the link should only show for a certain number of days after fulfillment.

If you are not comfortable adding custom logic, work with your developer or contact support before publishing the change.

Related setup guides:




Important Limitations

  • There is no built-in show only to EU customers toggle.

  • The workaround depends on the data available in the widget area where the link appears.

  • For order details links, the recommended country signal is the order’s shipping country.

  • For non-order areas, shipping country may not be available.

  • A brand-new conditional link usually requires custom setup, not just changing a URL.

  • Always test with multiple countries before launch.




FAQ

Can I hide the entire Account Widget from non-EU customers?
Not with a native Rivo setting. The workaround described here is intended for specific widget links or actions, especially order-specific links.

Can I show a returns link only for EU orders?
Yes, when the link is on the order details screen and the order has a shipping country available.

Can this use the customer’s locale instead of shipping country?
Locale may not be reliable for order eligibility. For order-specific links, shipping country is usually the clearest signal because it reflects where that order was shipped.

Can I use this for the widget home screen?
Usually not without another signal. The widget home screen is not tied to a specific order, so it may not have a shipping country to check.

Do I need custom code for this?
Yes. This is a custom Account Widget setup, not a standard toggle.

Did this answer your question?