I added this code to the functions.php file:
* Custom filter for Improved External Products Pro
*/
add_filter(“iepp_category_image_link_target”,”iepp_category_image_link_item”);
function iepp_category_image_link_item(){
return “item.parent().prev(‘figure.no-transition’).find(‘a’)”;
}
add_filter(“iepp_category_button_link_target”,”iepp_category_button_link_item”);
function iepp_category_button_link_item(){
return “item.siblings().find(‘a’)”;
}
// Add save percent next to sale item prices.
add_filter( ‘woocommerce_sale_price_html’, ‘woocommerce_custom_sales_price’, 10, 2 );
function woocommerce_custom_sales_price( $price, $product ) {
$percentage = round( ( ( $product->regular_price – $product->sale_price ) / $product->regular_price ) * 100 );
return $price . sprintf( __(‘ SPARE %s’, ‘woocommerce’ ), $percentage . ‘%’ );
}