Posted on

Disable product gallery zoom in WooCommerce 3.0+

Product Gallery in Electro WooCommerce Theme

WooCommerce 3.0 was a major release and it included a complete overhaul of Product Image gallery. The new gallery had advanced features like image zoom, mobile features and gallery view. Product zoom is a necessary feature for products that are more detailed in nature. For other type of products, its unnecessary and many users would like to disable it.

To disable the product gallery zoom please add the code snippet given below into your child theme’s functions.php :

Posted on

WooCommerce – Change currency sign/symbol of UAE Dirham

The Problem

When you set the currency in WooCommerce Settings to United Arab Emirates Dirham it looks like this :

While it is correct to use د.إ which stands for Emirati Dirham as the currency sign, it is not commonly used in websites that are in English where AED is used instead. So we need to change the currency sign from د.إ to AED.

The Solution

Luckily WooCommerce has filters that allows us to override the default values for currency symbol. Pasting this code in your theme’s functions.php ( It is recommended to use a child theme always for customisations ) will change the currency symbol of UAE Dirham to AED :