• Resolved GeeDave

    (@geedave)


    Hi–

    I’ve followed the instructions at https://quirm.net/wiki/eshop/additional-plugins-and-code-snippets/change-merchant-gateway-images/ but I’ve apparently missed something.

    When the wiki says to upload the new images to “your theme’s images folder,” I’m assuming that’s [theme]/assets/images, yes?

    I’ve confirmed that the PNG files are there, and my theme functions.php has this:

    add_filter('eshop_merchant_img_bank', 'my_icon_bank');
    function my_icon_bank() {
    	$icon = array(
    		'path'=>get_stylesheet_directory(). '/images/bank.png',
    		'url'=>get_stylesheet_directory_uri(). '/images/bank.png'
    	);
    	return $icon;
    }
    
    add_filter('eshop_merchant_img_cash', 'my_icon_cash');
    function my_icon_cash() {
    	$icon = array(
    		'path'=>get_stylesheet_directory(). '/images/cash.png',
    		'url'=>get_stylesheet_directory_uri(). '/images/cash.png'
    	);
    	return $icon;
    }
    
    add_filter('eshop_merchant_img_paypal', 'my_icon_paypal');
    function my_icon_paypal() {
    	$icon = array(
    		'path'=>get_stylesheet_directory(). '/images/paypal.png',
    		'url'=>get_stylesheet_directory_uri(). '/images/paypal.png'
    	);
    	return $icon;
    }

    …but I’m still getting “broken image” icons where those buttons are supposed to be.

    What am I missing?

    Thanks,

    David

    https://www.ads-software.com/plugins/eshop/

Viewing 1 replies (of 1 total)
  • Thread Starter GeeDave

    (@geedave)

    Blergh. Found it. Should have been [theme]/images. Had to create that new images subdirectory.

Viewing 1 replies (of 1 total)
  • The topic ‘Filtering Merchant Gateway button images–not found?’ is closed to new replies.