novusstd
Forum Replies Created
-
Forum: Plugins
In reply to: [Site Reviews] rel=”nofollow”thank’s a lot
Forum: Plugins
In reply to: [Site Reviews] rel=”nofollow”i talk about pagination….sorry
Forum: Plugins
In reply to: [WooCommerce P.IVA e Codice Fiscale per Italia] P.IVA RumenaSalve
Sul sito dell’UE la partita iva è valida.
Forum: Plugins
In reply to: [WooCommerce P.IVA e Codice Fiscale per Italia] P.IVA RumenaQuesto è l’errore
Il numero della partita IVA R……. non è corretto
Forum: Plugins
In reply to: [Site Reviews] Error assigned_toThis 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' => '', )
Forum: Plugins
In reply to: [Site Reviews] Error assigned_toI 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 nothingand 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 6 years, 1 month ago by novusstd.
Forum: Plugins
In reply to: [WooCommerce P.IVA e Codice Fiscale per Italia] Rotelline che giranoCiao @dot4all,
Scusami, ma non avevo abilitato il modulo SOAP sul server di sviluppo.
Grazie mille per la celere risposta.
Forum: Plugins
In reply to: [Site Reviews] Possibility to select order into submit formThanks 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()
andglsr_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?Forum: Plugins
In reply to: [Site Reviews] Possibility to select order into submit formAnother 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.Forum: Plugins
In reply to: [Site Reviews] Email when review was approvedThanks a lot
Forum: Plugins
In reply to: [Site Reviews] Possibility to select order into submit formThis 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
Forum: Plugins
In reply to: [Site Reviews] Possibility to select order into submit formI 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 6 years, 2 months ago by novusstd.
Forum: Plugins
In reply to: [Site Reviews] Email when review was approvedok 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 6 years, 2 months ago by novusstd.
Forum: Plugins
In reply to: [Site Reviews] Email when review was approvedok 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 PageBut you implement this features in next release?