page style Closes #904.

This commit is contained in:
Mike Jolley 2012-04-10 18:49:56 +01:00
parent 21a5829684
commit 9f3e958601
2 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class WC_Paypal extends WC_Payment_Gateway {
$this->address_override = isset( $this->settings['address_override'] ) ? $this->settings['address_override'] : 'no';
$this->debug = $this->settings['debug'];
$this->form_submission_method = ( isset( $this->settings['form_submission_method'] ) && $this->settings['form_submission_method'] == 'yes' ) ? true : false;
$this->page_style = ( isset( $this->settings['page_style'] ) ) ? $this->settings['page_style'] : '';
// Logs
if ($this->debug=='yes') $this->log = $woocommerce->logger();
@ -141,6 +142,12 @@ class WC_Paypal extends WC_Payment_Gateway {
'description' => __( 'Enable this to post order data to PayPal via a form instead of using a redirect/querystring.', 'woocommerce' ),
'default' => 'no'
),
'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' ),
'default' => ''
),
'testmode' => array(
'title' => __( 'PayPal sandbox', 'woocommerce' ),
'type' => 'checkbox',
@ -205,6 +212,7 @@ class WC_Paypal extends WC_Payment_Gateway {
'upload' => 1,
'return' => $this->get_return_url( $order ),
'cancel_return' => $order->get_cancel_order_url(),
'page_style' => $this->page_style,
// Order key
'custom' => $order_id,

View File

@ -147,6 +147,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Feature - Allow attributes to be added from the edit product page
* Feature - Allow external products to be a part of a grouped product. Button titles will be respected when displayed.
* Feature - Added woocommerce_get_dimension/woocommerce_get_weight helpers for normalisation. Thanks Andy Zhang
* Feature - Pass page_style to paypal standard if defined
* Tweak - Show multiple success messages/error messages if added, rather than one or the other
* Tweak - Adding an item to an order now uses the ajax style product finder
* Tweak - Updated chosen to latest release