Make carlos
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Bravo Add on option not showingHi
Thanks but this is totally admin side option where i can see that tab ?
I don’t think you need front side for this ? Once its enable from admin side we can so in front side settings
Please adviceForum: Plugins
In reply to: [WooCommerce] How to hide out of stock products on category pagesHi
// Hide out-of-stock products on category pages function hide_out_of_stock_products_on_category_pages( $query ) { if ( $query->is_main_query() && $query->is_tax( 'product_cat' ) ) { $query->set( 'meta_query', array( array( 'key' => '_stock_status', 'value' => 'instock', 'compare' => '=' ) ) ); } } add_action( 'pre_get_posts', 'hide_out_of_stock_products_on_category_pages' );
This code uses the
pre_get_posts
action hook to modify the main query for category pages (product_cat
taxonomy) and includes a meta query to filter out products with the_stock_status
meta key set to ‘instock’. This will hide any out-of-stock products from being displayed on category pages.Remember to save the changes and clear any caching plugins or server caches for the modifications to take effect.
- This reply was modified 1 year, 4 months ago by Kathryn Presner.
- This reply was modified 1 year, 4 months ago by Kathryn Presner. Reason: put the function in a code block
Forum: Plugins
In reply to: [Yoast SEO] Yoast options tabs not working@timetowine
If you’re using with divi theme then please update to the latest version and it should work.
ThanksForum: Plugins
In reply to: [Yoast SEO] Yoast options tabs not workingOkay so this is related to theme just in my case. I have updated theme to latest version and its working fine.
Theme: DiviForum: Plugins
In reply to: [Load More Anything] Elementor GalleryHi
do below settings for your given page.Load More Button Selector : #gallery-1
Load More Items Selector: .gallery-itemPlease Add more images for better idea.
Thanks
MakeForum: Plugins
In reply to: [WooCommerce] Delivery Date Option on Checkout PageFirst you will need to:
Enqueu main jquery-ui datepicker script
Change your custom script starting it with jQuery(function($){ instead of $(function(){ …
So to enable datepicker for your custom text field your code will be:// Register main datepicker jQuery plugin script add_action( 'wp_enqueue_scripts', 'enabling_date_picker' ); function enabling_date_picker() { // Only on front-end and checkout page if( is_admin() || ! is_checkout() ) return; // Load the datepicker jQuery-ui plugin script wp_enqueue_script( 'jquery-ui-datepicker' ); } // Call datepicker functionality in your custom text field add_action('woocommerce_after_order_notes', 'my_custom_checkout_field', 10, 1); function my_custom_checkout_field( $checkout ) { date_default_timezone_set('America/Los_Angeles'); $mydateoptions = array('' => __('Select PickupDate', 'woocommerce' )); echo '<div id="my_custom_checkout_field"> <h3>'.__('Delivery Info').'</h3>'; // YOUR SCRIPT HERE BELOW echo ' <script> jQuery(function($){ $("#datepicker").datepicker(); }); </script>'; woocommerce_form_field( 'order_pickup_date', array( 'type' => 'text', 'class' => array('my-field-class form-row-wide'), 'id' => 'datepicker', 'required' => true, 'label' => __('Delivery Date'), 'placeholder' => __('Select Date'), 'options' => $mydateoptions ),$checkout->get_value( 'order_pickup_date' )); echo '</div>'; }
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
Forum: Themes and Templates
In reply to: [Blocksy] Same button style not working in product detail pageHi
yes fixed. Thanks
Forum: Plugins
In reply to: [WooCommerce] PHP: Change Add to Cart text when price is empty or 0Hi
function wc_filter_woocommerce_product_add_to_cart_text( $add_to_cart_text, $product ) { // Price empty & Price is 0 if ( empty ( $product->get_price() ) || $product->get_price()) == 0 ) { $add_to_cart_text = __( 'Not available right now', 'woocommerce' ); } return $add_to_cart_text; } add_filter( 'woocommerce_product_add_to_cart_text', 'wc_filter_woocommerce_product_add_to_cart_text', 10, 2 ); add_filter( 'woocommerce_product_single_add_to_cart_text', 'wc_filter_woocommerce_product_add_to_cart_text', 10, 2 );
try this. not tested but should work
Forum: Themes and Templates
In reply to: [Blocksy] Same button style not working in product detail pageLink is fine now as my internet blocking that links.
You misunderstood my question did you ?
I need same hover effect like home page in product details page. if i remove your given CSS it would work ? how I am not sure. please read my question carefully.
Forum: Themes and Templates
In reply to: [Blocksy] Same button style not working in product detail pageHi
Given links is not working anymore. kindly check and support please. don’t know why you made this thread as resolved ? ??
Forum: Themes and Templates
In reply to: [Blocksy] Same button style not working in product detail pageHi
Given link is not working. kindly check please
Forum: Themes and Templates
In reply to: [Astra] Mobile view – logo and toogle jumpingDone
Thanks a lot
Hi,
Thank you for your reply. I have asked question about adding custom post type using filter.
Thanks
MakeForum: Plugins
In reply to: [YITH WooCommerce Wishlist] Need to change message.Hi
Perfect!
ThanksIf i have set 1 hr then it will taking approx 6hr and 30 min. why this is happen ? that means product is relisted based on conditions but it’s taking wrong time always. Please advice.