Support for Multiple Currencies on Wishlist page

There are several apps which require a class “money” to be added to the price, in order to support multiple currencies. In order to implement it on the wishlist page of Smart Wishlist, please follow these steps:

1. Create a new snippet titled wishlist-enhancements. It creates the file snippets/wishlist-enhancements.liquid

2. Add the following code to it and save it.

{% unless template %}
<script type="text/javascript">
WishlistLoadedCallback=function(){
	if($("#bookmarks").has(".price").length>0)
	{
	
		$("#bookmarks .price").removeClass("money").addClass("money");
			
	}	
};
</script>
{% endunless %}

3. Add the following code anywhere before closing </head> in layout/theme.liquid.

{% include 'wishlist-enhancements' %} 

Leave a Reply

Your email address will not be published. Required fields are marked *