Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter novusstd

    (@novusstd)

    thank’s a lot

    Thread Starter novusstd

    (@novusstd)

    i talk about pagination….sorry

    Thread Starter novusstd

    (@novusstd)

    Salve

    Sul sito dell’UE la partita iva è valida.

    Thread Starter novusstd

    (@novusstd)

    Questo è l’errore

    Il numero della partita IVA R……. non è corretto

    Thread Starter novusstd

    (@novusstd)

    This is the content of $reviewValues

    'assigned_to' => '',
      'author' => 'xxxxxx',
      'avatar' => 'https://secure.gravatar.com/avatar/?s=96&d=mm&r=g',
      'content' => 'ssadsad',
      'custom' =>
      array (
        'order' => '3431',
      ),
      'date' => '2019-02-11 16:35:30',
      'email' => 'info@xxxxxx',
      'ip_address' => '195.x.x.x',
      'pinned' => false,
      'rating' => 5,
      'response' => '',
      'review_id' => '7c2e91724ef0a0728074f22c017126ce',
      'review_type' => 'local',
      'title' => 'sdasd',
      'url' => '',
    )
    Thread Starter novusstd

    (@novusstd)

    I have do some debug tests, and i founds that
    this $reviewValues['custom']['order'] contains value 3134
    but when this -> $post = get_post( $reviewValues['custom']['order'] );

    into $post there is nothing

    and not enter to the if( $post instanceof \WP_Post && $post->post_type != 'site-review' ) {

    Why $post don’t have the post id?

    • This reply was modified 5 years, 1 month ago by novusstd.
    Thread Starter novusstd

    (@novusstd)

    Ciao @dot4all,

    Scusami, ma non avevo abilitato il modulo SOAP sul server di sviluppo.

    Grazie mille per la celere risposta.

    Thread Starter novusstd

    (@novusstd)

    Thanks for your reply.
    But in the pastebin code, I create a select with this snippet of code. I have no idea to implement the name value.

     $config['order'] = [
            'label' => __( 'Orders', 'your_theme_domain' ),
            'placeholder' => __( 'Provide an order', 'your_theme_domain' ),
            'required' => true,
            'type' => 'select',
            'options' => $options,
            ];

    maybe:

     $config['order'] = [
            'label' => __( 'Orders', 'your_theme_domain' ),
            'placeholder' => __( 'Provide an order', 'your_theme_domain' ),
            'required' => true,
            'type' => 'select',
            'options' => $options,
            'name'    => 'myName'
        ];

    I have used the glsr_log() and glsr_debug() but into the console, the system shows me an error. Tomorrow I can send you the error. But can you tell me, if add the name same as the code that I have posted a few lines before it’s ok?

    Thread Starter novusstd

    (@novusstd)

    Another question is. I have the select with my custom text, but i have no idea how i set the value to custom text.

    I have:

    <select class=”glsr-field-control” id=”site-reviews-order-jqs4skzy” name=”site-reviews[order]” required=””>
    <option selected=”” value=”0″>aaa -foro</option>
    <option value=”1″>qwfqwf -Rotolo</option>
    <option value=”2″>rsfwqq – Rotolo</option>
    <option value=”3″>231 – Rotolo</option>
    </select>

    I want that my select have into value the text description, for example:
    <option selected=”” value=”aaa -foro”>aaa -foro</option>
    <option value=”aaa -foro”>qwfqwf -Rotolo</option>
    <option value=”rsfwqq – Rotolo”>rsfwqq – Rotolo</option>
    <option value=”231 – Rotolo”>231 – Rotolo</option>

    Do you have any suggestions?
    I want that my field order has stored into DB, or if it’s possible I want that when submitting the review if I select the first choice, the system automatically assigns the id of this choice into “assign to” variable.

    Thread Starter novusstd

    (@novusstd)

    Thanks a lot

    Thread Starter novusstd

    (@novusstd)

    This is my complete code:

    dd_filter( ‘site-reviews/config/forms/submission-form’, function( $config ) {
    $customer_orders_completed = get_posts( array(
    ‘numberposts’ => -1,
    ‘meta_key’ => ‘_customer_user’,
    ‘meta_value’ => get_current_user_id(),
    ‘post_type’ => wc_get_order_types(),
    ‘post_status’ => ‘wc-completed’,
    ) );
    $options = [];
    foreach ( $customer_orders_completed as $dett_ordine) {
    $date_order = $dett_ordine->post_date;
    $order = new WC_Order( $dett_ordine->ID);
    $item_det = $order->get_items();
    foreach ( $item_det as $item) {
    $options[] = $item->get_name().” – “.$date_order;
    }
    }
    $config[‘order’] = [
    ‘label’ => __( ‘Orders’, ‘your_theme_domain’ ),
    ‘placeholder’ => __( ‘Provide an order’, ‘your_theme_domain’ ),
    ‘required’ => true,
    ‘type’ => ‘select’,
    ‘options’ => $options,
    ];
    return $config;
    });

    So now, into database i don’t see the field order

    Thread Starter novusstd

    (@novusstd)

    I have seen this code -> https://pastebin.com/4fvKErcp

    I have implemented it but i have a problem with select.

    This is my code:

    add_filter( ‘site-reviews/config/forms/submission-form’, function( $config ) {
    $config[‘order’] = [
    ‘label’ => __( ‘Orders’, ‘your_theme_domain’ ),
    ‘placeholder’ => __( ‘Provide an order’, ‘your_theme_domain’ ),
    ‘required’ => true,
    ‘type’ => ‘select’,
    ‘value’ => “0”,
    ];
    return $config;
    });

    I have no idea why the form not show my select data.

    Thanks

    • This reply was modified 5 years, 2 months ago by novusstd.
    Thread Starter novusstd

    (@novusstd)

    ok so, i have write this code, but i want that whe review was submit, the page refresh. How can i do that?

    • This reply was modified 5 years, 2 months ago by novusstd.
    Thread Starter novusstd

    (@novusstd)

    ok thanks a lot.

    And there is any hook for email the user when he submit a review?

    Something like. Hey man you submit this reviem and now is under approval by adminsitrator, for your review yuo can use this discount code.

    Thanks

    Forum: Plugins
    In reply to: [WP Login Form] Error Page
    Thread Starter novusstd

    (@novusstd)

    But you implement this features in next release?

Viewing 15 replies - 1 through 15 (of 18 total)