Merge pull request #12546 from woocommerce/paypal-image-url

Add image_url setting to PayPal Standard.
This commit is contained in:
Mike Jolley 2016-12-09 12:59:59 +00:00 committed by GitHub
commit 5df70d8458
3 changed files with 11 additions and 1 deletions

View File

@ -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 ) ) ), '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() ), 'cancel_return' => esc_url_raw( $order->get_cancel_order_url_raw() ),
'page_style' => $this->gateway->get_option( 'page_style' ), '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' ), 'paymentaction' => $this->gateway->get_option( 'paymentaction' ),
'bn' => 'WooThemes_Cart', 'bn' => 'WooThemes_Cart',
'invoice' => $this->gateway->get_option( 'invoice_prefix' ) . $order->get_order_number(), 'invoice' => $this->gateway->get_option( 'invoice_prefix' ) . $order->get_order_number(),

View File

@ -107,7 +107,15 @@ return array(
'page_style' => array( 'page_style' => array(
'title' => __( 'Page style', 'woocommerce' ), 'title' => __( 'Page style', 'woocommerce' ),
'type' => 'text', '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' => '', 'default' => '',
'desc_tip' => true, 'desc_tip' => true,
'placeholder' => __( 'Optional', 'woocommerce' ), 'placeholder' => __( 'Optional', 'woocommerce' ),

View File

@ -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. * Added tool to clear orphaned variations in system status.
* Remove checkbox options in system status tools and replace with constants. * Remove checkbox options in system status tools and replace with constants.
* Added security section in system status report. * 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). * 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 - 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. * Performance - Added visibility term for outofstock products to speed those queries up also.