• I have looked for that past few hours but cannot find a way to change the “Donation” label when viewing a single donate item.

    I want to use the Donate function to make it a “Gift Certificate” feature. So, need to change “Donation” to “Gift Amount”.

    I tried in EN_en.php:

    define(‘TXT_WPSC_DONATION’, ‘Gift Amount’);

    And editing directly the wpsc-single_product.php file but nothing works.

    Help, please…

    https://www.ads-software.com/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey ronr1999,

    did you figure this out? I have been searching as well to change the “donation page”. I can’t find where to change it and what file to edit.

    Thanks.

    Thread Starter ronr1999

    (@ronr1999)

    I couldn’t find an easy way so I wrote some jQuery to make it work. I put this in my footer just before </body>.

    You’ll change “xxxxxxxxxx_1891” to your product number.

    <script>
    jQuery(function($) {
    
    	$("label[for='donation_price_1891']").html('Gift Amount ($):');
    	$("label[for='donation_widget_price_1891']").html('Gift Amount ($):');
    
    	$("input[name='donation_price']").val('0.00');
    
    	$("input[name='donation_price']").on('click', function(){
    		$("input[name='donation_price']").val('');
    	});
    
    	$("#product_1891_submit_button").on('click', function() {
    		if ($("input[name='donation_price").val() == 0) {
    			alert("Please Enter a Gift Certificate Amount")
    			return false;
    		} else {
    
    		}
    	});
    
    });
    </script>

    Hope this helps…

    You’ll find this used here:

    Gift Certificate Site

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Donation Label’ is closed to new replies.