From edfc54dff5430d32b8af0c6eb100b459c67c6735 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 8 Dec 2016 12:28:05 +0000 Subject: [PATCH] Add image_url setting to PayPal Standard. --- .../includes/class-wc-gateway-paypal-request.php | 1 + includes/gateways/paypal/includes/settings-paypal.php | 10 +++++++++- readme.txt | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php b/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php index 60ebe14ee38..4e89542cd31 100644 --- a/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php +++ b/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php @@ -74,6 +74,7 @@ class WC_Gateway_Paypal_Request { 'return' => esc_url_raw( add_query_arg( 'utm_nooverride', '1', $this->gateway->get_return_url( $order ) ) ), 'cancel_return' => esc_url_raw( $order->get_cancel_order_url_raw() ), 'page_style' => $this->gateway->get_option( 'page_style' ), + 'image_url' => esc_url_raw( $this->gateway->get_option( 'image_url' ) ), 'paymentaction' => $this->gateway->get_option( 'paymentaction' ), 'bn' => 'WooThemes_Cart', 'invoice' => $this->gateway->get_option( 'invoice_prefix' ) . $order->get_order_number(), diff --git a/includes/gateways/paypal/includes/settings-paypal.php b/includes/gateways/paypal/includes/settings-paypal.php index 4ddd2d33ab1..909d16a1483 100644 --- a/includes/gateways/paypal/includes/settings-paypal.php +++ b/includes/gateways/paypal/includes/settings-paypal.php @@ -107,7 +107,15 @@ return array( 'page_style' => array( 'title' => __( 'Page style', 'woocommerce' ), 'type' => 'text', - 'description' => __( 'Optionally enter the name of the page style you wish to use. These are defined within your PayPal account.', 'woocommerce' ), + 'description' => __( 'Optionally enter the name of the page style you wish to use. These are defined within your PayPal account. This affects classic PayPal checkout screens.', 'woocommerce' ), + 'default' => '', + 'desc_tip' => true, + 'placeholder' => __( 'Optional', 'woocommerce' ), + ), + 'image_url' => array( + 'title' => __( 'Image url', 'woocommerce' ), + 'type' => 'text', + 'description' => __( 'Optionally enter the URL to a 150x50px image displayed as your logo in the upper left corner of the PayPal checkout pages.', 'woocommerce' ), 'default' => '', 'desc_tip' => true, 'placeholder' => __( 'Optional', 'woocommerce' ), diff --git a/readme.txt b/readme.txt index cd7049b2aad..e214b145028 100644 --- a/readme.txt +++ b/readme.txt @@ -188,6 +188,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woocommerce/wo * Added tool to clear orphaned variations in system status. * Remove checkbox options in system status tools and replace with constants. * Added security section in system status report. +* Add image_url setting to PayPal Standard. * Fixed attribute registration. Attributes are non-hierarchical by default (parent is not supported). * Performance - Converted _featured and _visibility meta data to terms for faster catalog queries. Upgrade routine handles migration. Developers may need to update queries to reflect this change. * Performance - Added visibility term for outofstock products to speed those queries up also.