I’m trying to collect only part of an email address from the frontend user and add the domain (@test.com) automatically in the code. It is in HTML, but the string for the email is PHP. I would imagine that I need to concatenate the string with the domain I want. Maybe .“test.com” ?? This is the bit of code I’m working with:
<input type="email"
name="ywgc-recipient-email[]" <?php echo ( $mandatory_recipient && ! $gift_this_product ) ? 'required' : ''; ?>
class="ywgc-recipient yith_wc_gift_card_input_recipient_details" placeholder="<?php _e( "Email", 'yith-woocommerce-gift-cards' ); ?>"/>
<input type="text" name="ywgc-recipient-name[]" placeholder="<?php _e( "name", 'yith-woocommerce-gift-cards' ); ?>" <?php echo ( $mandatory_recipient && ! $gift_this_product ) ? 'required' : ''; ?> class="yith_wc_gift_card_input_recipient_details">
<a href="#" class="ywgc-remove-recipient hide-if-alone">x</a>
<?php if ( ! $mandatory_recipient ): ?>
<span class="ywgc-empty-recipient-note"><?php echo apply_filters( 'ywgc_empty_recipient_note', __( "Example D9", 'yith-woocommerce-gift-cards' ) ); ?></span>
<?php endif; ?>
</div>
I would sure appreciate some guidance here.