Hi Colin,
Thanks for using our plugin. Currently, the way to do this is by adding a couple of functions using the filters:
sc_before_payment_details_html
sc_payment_details_html
sc_after_payment_details_html
If you want to remove the details completely you will need to add it in like this:
function remove_payment_details_open( $html ) {
return '';
}
add_filter( 'sc_before_payment_details_html', 'remove_payment_details_open' );
function remove_payment_details_html( $html ) {
return '';
}
add_filter( 'sc_payment_details_html', 'remove_payment_details_html' );
function remove_payment_details_close( $html ) {
return '';
}
add_filter( 'sc_after_payment_details_html', 'remove_payment_details_close' );
The current default for the opening tag of the payment details is this:
$before_payment_details_html = '<div class="sc-payment-details-wrap">' . "\n";
And the closing is just </div>
.
So just in case you are looking to only change the style of the payment details screen you can just change the opening to use a <div>
with class/id attributes that suit your needs:
function remove_payment_details_open( $html ) {
return '<div class="my_custom_payment_details">';
}
add_filter( 'sc_before_payment_details_html', 'remove_payment_details_open' );
I hope this helps and if this does not answer your question let me know and I will be glad to take a further look.
Thanks!
Nick Young