<script>
let str = document.getElementById("myid").innerHTML;
let res = str.replace(/-/g, "£");
document.getElementById("myid").innerHTML = res;
</script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
$price = 0;
if ( $user->get( 'cb_field1' ) == 'value1' ) {
$price += 20; // add 20 to the price
}
if ( $user->get( 'cb_field2' ) == 'value2' ) {
$price += 5; // add 5 to the price
}
if ( $reason === 'register' ) {
return cbpaidMoney::getInstance()->renderPrice( $price, null ); // Return formatted price during registration
}
return -$price;
Please Log in to join the conversation.