Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pere65

    (@pere65)

    Hi, can you help me?

    I explain, I have registered users to whom I want to show the product with prices and unregistered customers who do not want to show the price, so far so good.

    The problem is that when they choose the product and they will see the cart in both cases the price appears, how do I have to do so that only the price in the cart is seen when you are registered?

    Thank you

    Thread Starter pere65

    (@pere65)

    Hi, I pass you the code that I have in the request-quote-form.php file. If I put the code you sent me in the other post it doesn’t show the nicename field. Could you tell me what is wrong?

    <?php
    /**
    * Form to Request a quote
    *
    * @package YITH Woocommerce Request A Quote
    * @since 1.0.0
    * @version 1.0.0
    * @author YITH
    */
    $current_user = array();
    if ( is_user_logged_in() ) {
    $current_user = get_user_by( ‘id’, get_current_user_id() );
    }
    $user_nicename = ( ! empty( $current_user ) ) ? $current_user->user_nicename : ”;
    $user_name = ( ! empty( $current_user ) ) ? $current_user->display_name : ”;
    $user_email = ( ! empty( $current_user ) ) ? $current_user->user_email : ”;
    ?>
    <div class=”yith-ywraq-mail-form-wrapper”>
    <h3><?php _e( ‘Enviar el pedido’, ‘yith-woocommerce-request-a-quote’ ) ?></h3>

    <form id=”yith-ywraq-mail-form” name=”yith-ywraq-mail-form” action=”<?php echo esc_url( YITH_Request_Quote()->get_raq_page_url() ) ?>” method=”post”>

    <p class=”form-row form-row-wide validate-required” id=”rqa_nicename_row”>
    <label for=”rqa-nicename” class=””><?php _e( ‘Name’, ‘yith-woocommerce-request-a-quote’ ) ?>
    <abbr class=”required” title=”required”>*</abbr></label>
    <input type=”text” class=”input-text ” name=”rqa_nicename” id=”rqa-nicename” placeholder=”” value=”<?php echo $user_nicename ?>” required />
    </p>

    <p class=”form-row form-row-wide validate-required” id=”rqa_name_row”>
    <label for=”rqa-name” class=””><?php _e( ‘Código’, ‘yith-woocommerce-request-a-quote’ ) ?>
    <abbr class=”required” title=”required”>*</abbr></label>
    <input type=”text” class=”input-text ” name=”rqa_name” id=”rqa-name” placeholder=”” value=”<?php echo $user_name ?>” required>
    </p>

    <p class=”form-row form-row-wide validate-required” id=”rqa_email_row”>
    <label for=”rqa-email” class=””><?php _e( ‘Email’, ‘yith-woocommerce-request-a-quote’ ) ?>
    <abbr class=”required” title=”required”>*</abbr></label>
    <input type=”email” class=”input-text ” name=”rqa_email” id=”rqa-email” placeholder=”” value=”<?php echo $user_email ?>” required>
    </p>

    <p class=”form-row” id=”rqa_message_row”>
    <label for=”rqa-message” class=””><?php _e( ‘Message’, ‘yith-woocommerce-request-a-quote’ ) ?></label>
    <textarea name=”rqa_message” class=”input-text ” id=”rqa-message” placeholder=”<?php _e( ‘Notes on your request…’, ‘yith-woocommerce-request-a-quote’ ) ?>” rows=”5″ cols=”5″></textarea>
    </p>

    <?php if( ‘yes’ == get_option(‘ywraq_add_privacy_checkbox’, ‘no’) ): ?>
    <div class=”ywraq-privacy-wrapper”>
    <p class=”form-row”
    id=”rqa_privacy_description_row”><?php echo ywraq_replace_policy_page_link_placeholders( get_option( ‘ywraq_privacy_description’ ) ) ?></p>
    <p class=”form-row” id=”rqa_privacy_row”>
    <input type=”checkbox” name=”rqa_privacy” id=”rqa_privacy” required>
    <label for=”rqa_privacy”
    class=””><?php echo ywraq_replace_policy_page_link_placeholders(get_option(‘ywraq_privacy_label’) ) ?>
    <abbr class=”required” title=”required”>*</abbr></label>

    </p>
    </div>
    <?php endif ?>

    <p class=”form-row”>
    <input type=”hidden” id=”raq-mail-wpnonce” name=”raq_mail_wpnonce” value=”<?php echo wp_create_nonce( ‘send-request-quote’ ) ?>”>
    <input class=”button raq-send-request” type=”submit” value=”<?php _e( ‘ENVIAR PEDIDO’, ‘yith-woocommerce-request-a-quote’ ) ?>”>
    </p>

    </form>
    </div>

    Thread Starter pere65

    (@pere65)

    Hello again. The request-quote.php file is changed only in the theme or also in the plugin.

    I changed it in both and still nothing appears.

    Thanks

    Hi, I bought a template and added your plugin. The plugin itself has no problem, the point is that I want to add the nicename field in the email I receive when the budgets are made.

    I have created this field in the budget request form but I don’t know how to call it in the email received.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)