mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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
|
@ -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