mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Improve Place Order button styling
This commit is contained in:
parent
3caaa59da9
commit
d253aa44fe
2 changed files with 4 additions and 9 deletions
|
@ -237,8 +237,6 @@ class AxoManager {
|
|||
* Renders the HTML for the AXO submit button.
|
||||
*/
|
||||
public function render_checkout_button(): void {
|
||||
$id = 'ppcp-axo-submit-button-container';
|
||||
|
||||
/**
|
||||
* The WC filter returning the WC order button text.
|
||||
* phpcs:disable WordPress.WP.I18n.TextDomainMismatch
|
||||
|
@ -246,10 +244,9 @@ class AxoManager {
|
|||
$label = apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) );
|
||||
|
||||
printf(
|
||||
'<div id="%1$s" style="display: none;">
|
||||
<button type="button" class="button alt ppcp-axo-order-button">%2$s</button>
|
||||
'<div id="ppcp-axo-submit-button-container" style="display: none;">
|
||||
<button id="place_order" type="button" class="button alt ppcp-axo-order-button wp-element-button">%1$s</button>
|
||||
</div>',
|
||||
esc_attr( $id ),
|
||||
esc_html( $label )
|
||||
);
|
||||
}
|
||||
|
|
|
@ -969,7 +969,6 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
|
|||
*/
|
||||
public function dcc_renderer() {
|
||||
|
||||
$id = 'ppcp-hosted-fields';
|
||||
if ( ! $this->can_render_dcc() ) {
|
||||
return;
|
||||
}
|
||||
|
@ -982,12 +981,11 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
|
|||
// phpcs:enable WordPress.WP.I18n.TextDomainMismatch
|
||||
|
||||
printf(
|
||||
'<div id="%1$s" style="display:none;">
|
||||
<button type="submit" class="button alt ppcp-dcc-order-button" style="display: none;">%2$s</button>
|
||||
'<div id="ppcp-hosted-fields" style="display:none;">
|
||||
<button id="place_order" type="submit" class="button alt ppcp-dcc-order-button wp-element-button" style="display: none;">%1$s</button>
|
||||
</div>
|
||||
<div id="payments-sdk__contingency-lightbox"></div>
|
||||
<style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>',
|
||||
esc_attr( $id ),
|
||||
esc_html( $label )
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue