Last active
December 16, 2015 13:19
-
-
Save kloon/5441297 to your computer and use it in GitHub Desktop.
WooCommerce eWAY Shared Payments Page Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Page Title, displayed as the title of the browser | |
add_filter( 'eway_shared_page_tite', 'woocommerce_eway_page_title' ); | |
function woocommerce_eway_page_title() { | |
return __( 'My New Page Title', 'woocommerce' ); | |
} | |
// Company Name, the name of the company the customer is buying from | |
add_filter( 'eway_shared_company_name', 'woocommerce_eway_company_name' ); | |
function woocommerce_eway_company_name() { | |
return __( 'My Company', 'woocommerce' ); | |
} | |
// Description, displayed above transaction details | |
add_filter( 'eway_shared_page_description', 'woocommerce_eway_description' ); | |
function woocommerce_eway_description() { | |
return __( 'My New Description', 'woocommerce' ); | |
} | |
// Page Footer, displayed below transaction details | |
add_filter( 'eway_shared_page_footer', 'woocommerce_eway_footer' ); | |
function woocommerce_eway_footer() { | |
return __( 'My New Footer Text', 'woocommerce' ); | |
} | |
// Language, to display the page in another language, use any of following language codes EN, ES, FR, DE, NL | |
add_filter( 'eway_shared_language', 'woocommerce_eway_language' ); | |
function woocommerce_eway_language() { | |
return "EN"; | |
} | |
// Company Logo, full secure url to your company logo, must be https, restricted to 960px X 65px. | |
add_filter( 'eway_shared_company_logo', 'woocommerce_eway_logo' ); | |
function woocommerce_eway_logo() { | |
return "https://www.example.com/images/logo.png"; | |
} | |
// Page Banner, this is displayed just below the company logo, must be https, restricted to 960px X 65px. | |
add_filter( 'eway_shared_page_banner', 'woocommerce_eway_banner' ); | |
function woocommerce_eway_banner() { | |
return "https://www.example.com/images/logo.png"; | |
} | |
// Allow customer to modify customer details on eWAY payment page | |
add_filter( 'eway_shared_modifiable_customer_details', 'woocommerce_eway_modify_customer' ); | |
function woocommerce_eway_modify_customer() { | |
return "True"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi.. is this complete code for eway shared payment.?