tayssir.ch
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Exclude Posts programmaticallyThanks Mikko for the quick response!,
After I added the hook “Exclude products where the discontinued custom field is set to 1:” in my function.php
and I rebuild Index, I got this :Indexed 0 posts (total 0), processed 0 / 0. Indexing complete. 0 posts excluded.
, and nothing appear in my search result anymore
when i remove the function, everything work fineThanks for the advice, You are totally right,
I think I should define $woocommerce or $product global before.But I was able to achieve my goal like this:
add_filter( 'relevanssi_content_to_index', 'rlv_index_title', 10, 2 ); function rlv_index_title( $content, $post ) { if ( 'product' === $post->post_type ) { $arabic_product_id = apply_filters( 'wpml_object_id', $post->ID, 'product', false, 'ar' ); if($arabic_product_id){ $arabic_title = get_the_title( $arabic_product_id ); } $english_product_id = apply_filters( 'wpml_object_id', $post->ID, 'product', false, 'en' ); if($english_product_id){ $english_title = get_the_title( $english_product_id ); } $content .= " $arabic_title"; $content .= " $english_title"; } return $content; }
if you think i should enhance it more please advice, thank you
Thanks for your reply, but
1) definitely you can provide us a triggers, for example how can i get when validation is true ? so i can display message or use css to do it with Jquery
2) Since your plugin work on all product pages, Sure i can’t stop caching on all product pages. what i am looking for, when comment is added, I need the website to be redirectForum: Plugins
In reply to: [YITH WooCommerce Advanced Reviews] Make a single Reviews landing page?I vote for this feature
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Custom Outputs the form its possible?Hello Andrea,
I made changes here : includes/widgets/class.yith-wcan-navigation-widget.phpinstead of
printf( '<li %s><a %s href="%s">%s</a>', $class, $rel_nofollow, esc_url( $link ), wp_kses_post( $term_name ) );
I want to replace it with:
printf( '<li %s><a %s href="%s"><img class="attributeimage" src="%s">%s</a>', $class, $rel_nofollow, esc_url( $link ), esc_url( $textureImg[0]), wp_kses_post( $term_name ) );
but the problem, instead of each time i update the plugin, i don’t want to replace them manually,
that’s why i am asking if there is a function i can put it in function.phpForum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Custom Outputs the form its possible?I want to retrieve the default attribute image dynamically,
so my custom modifications is:
$thumbnail_id = get_woocommerce_term_meta( $term->term_id, 'product_attribute_image', true ); $textureImg = wp_get_attachment_image_src( $thumbnail_id ); $term_image = apply_filters( 'yith_wcan_term_name_to_show', $term->description, $term ); printf( '<li %s><a %s href="%s"><img class="attributeimage" src="%s">%s</a>', $class, $rel_nofollow, esc_url( $link ), esc_url( $textureImg[0]), wp_kses_post( $term_name ) ); // phpcs:ignore
can you give me a code that i can put it in my function.php to override the default output ?
Appreciated
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Get The Exchange rate by Country$get_rate = get_option( ‘wc_price_based_country_regions’ );
$current_exchange_rate = $get_rate[‘lebanon’][‘exchange_rate’];Forum: Plugins
In reply to: [Front End PM] Display User Name when Message View is threadedHere is the solution
https://www.shamimsplugins.com/support/topic/messages-panel/#post-37695Thanks
Hello Rashed,
We send a ticket on Dokan Pro website, and we didn’t get any help,
We just received online link, and not related for dokan.Feel free to visit the following blog links: https://www.ibenic.com/create-custom-woocommerce-email/ https://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/
I am sorry to write it here, but the support on dokan pro is not recommended at all, and really i am planing to request a refund, and move to another multi vendor plugin.
Sending Custom email with Trigger is one of the MINIMUM requirement that you should provide
Hello,
Please i am interested in this snippet too,
can you send us a tutorial how we can do this ?Forum: Hacks
In reply to: Change query to display for each parent and for each Childdear am still not able to do it, do you offer payed support ?
i just noticed that there are no single-events-recurring.php?
Forum: Hacks
In reply to: Change query to display for each parent and for each Childcould you please help? am not excerpt in coding …
Thanks a lothello again
am ready for any extra charge to do iti am using this php code to display latest 3 events titles:
<?php echo do_shortcode('[events_list scope="future" limit=4]'); ?>
i have Events, and Event Recurring.
Event A (24/12/2015)
Event B (25/12/2015)
in recurring events i have:
Event C (Every Friday) (25/12/2015 – 1/1/2016)
Event D (Every Monday) (4/1/2016 – 11/1/2016)the shortcode display my events like this :
Event A (24/12/2015)
Event B (25/12/2015)
Event C (25/12/2015)
Event C (1/1/2016)i want to display events like this
Event A (24/12/2015)
Event B (25/12/2015)
Event C (25/12/2015 till 1/1/2016)
Event D (4/1/2016 till 11/1/2016)Thank you