Jump to content


Replying to Billing Address


Post Options

  or Cancel


Topic Summary

newmediamotion

Posted 12 May 2014 - 01:47 PM

Hello Elise,

Thanks, that worked great!

Garth

Elise Alley

Posted 12 May 2014 - 01:28 PM

Hi Garth,

You can have all three filtered in the same block of code:

function my_translated_text_strings( $translated_text, $untranslated_text, $domain ) {
$translated_text = $untranslated_text;
if ( 'LION' === $domain || 'it-l10n-ithemes-exchange' === $domain ) {
switch ( $untranslated_text ) {
case 'Buy Now' :
$translated_text = 'Donate Now';
break;
}
switch ( $untranslated_text ) {
case'State' :
$translated_text = 'Prov/State';
break;
}
switch ( $untranslated_text ) {
case 'Zip Code' :
$translated_text = 'Postal/Zip Code';
break;
} 
}
return $translated_text;
}
add_filter( 'gettext', 'my_translated_text_strings', 10, 3 );
add_filter( 'ngettext', 'my_translated_text_strings', 10, 3 );

They each have to be in their own switch case, but you don't have to do the rest of the code multiple times.

There isn't a way in Exchange at this time to export customer information like billing address.  You can use the WordPress Export tool, though.

If you go into Tools > Export, you'll see a "Choose what to export" option.  One of those options should be "Payments."  That will allow you to download an XML file that will include the customer information, the payment, billing address, etc.  

Let us know if you have any additional questions.  


Thanks,

Elise

newmediamotion

Posted 12 May 2014 - 11:30 AM

Hello,

I am using Exchange to accept donations for a Canadian non-profit.

1. I found how to modify the "Buy Now" button to "Donate Now" (http://ithemes.com/forum/topic/58441-create-an-update-safe-change-to-buy-now-button/) but I would also like to change "State" to "Prov./State" and "Zip Code" to "Postal/Zip Code". Using that code I can filter all three but only one at a time. Is there a way to filter them all?

2. For tax receipting purposes is there a way to download all customer payments with their billing address as a CSV? I can download this from Stripe, but Exchange does not pass the billing address or name. Is it possible to pass the billing address and customer name to Stripe?

Thanks,

Garth

Review the complete topic (launches new window)