Your account expired support, please renew to get your support.

Home Forums Themes Support Gecko Most images did not upload on new install!

Topic Resolution: Resolved

Tagged: 

This topic contains 132 replies, has 2 voices, and was last updated by  Harry 1 week, 3 days ago.

Viewing 15 posts - 91 through 105 (of 133 total)
  • Author
    Posts
  • #31798
    brent
    Support Expired

    Hi Harry, how ya doing?

    I created a category of “closeouts” and I don’t want those items to show up on the regular /shop page.

    But I do want them to show up on the category page: https://instockgems.com/product-category/closeouts/

    I found a script but it hide them everywhere. Can you help please?

    Thanks, Brent

     

    This what I used… figured you’d have a better solution:

    /* Exclude Close Outs the shop page */
    function custom_pre_get_posts_query( $q ) {

    $tax_query = (array) $q->get( ‘tax_query’ );

    $tax_query[] = array(
    ‘taxonomy’ => ‘product_cat’,
    ‘field’ => ‘slug’,
    ‘terms’ => array( ‘closeouts’ ), // Don’t display category on the shop page
    ‘operator’ => ‘NOT IN’
    );

    $q->set( ‘tax_query’, $tax_query );

    }
    add_action( ‘woocommerce_product_query’, ‘custom_pre_get_posts_query’ );

    #31799

    Hi Brent,

    Please change code to

    /**
     * Exclude products from a particular category on the shop page
     */
    function custom_pre_get_posts_query( $q ) {
    	
    if( is_shop()) {
        $tax_query = (array) $q->get( 'tax_query' );
    
        $tax_query[] = array(
               'taxonomy' => 'product_cat',
               'field' => 'slug',
               'terms' => array( 'closeouts' ), // Don't display products on the shop page.
               'operator' => 'NOT IN'
        );
    
        $q->set( 'tax_query', $tax_query );
    }
    }
    add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' );

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #31801
    brent
    Support Expired

    Thanks Harry that works great. I do have a couple more question about that.

    If I have multiple categories that I want to hide would I do something like this?

    ‘terms’ => array( ‘closeouts, another-category, another-category2’ ),

    I am using the Dokan plugin where I can have others add products from the frontend. On this page:

    https://instockgems.com/store/brentwallace/

    the test stone still shows up. There’ll be other pages like /store/john OR /store/sally:

    How would I add those in also to hide?

    Thanks again! You’re the best!

    #31805

    Hi Brent,

    1. I’m not sure.

    2. Please try contact to Dokan team.

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #31817
    brent
    Support Expired

    Thanks Harry.

    For some reason the description does not show up in the “Quick View” and I need it too. What can we do to fix that?

    https://instockgems.com/shop/

    Thanks again.

    #31820

    Hi Brent,

    Please add below code to line 97 in gecko > core > libraries > vendors > woocommerce > templates > content-quickview-product.php

    and backup this file for the next update.

    add_action( 'woocommerce_single_product_summary', 'dot_do_product_desc', 20 );

    This file still doesn’t support override in child theme.

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #31821
    brent
    Support Expired

    I forgot about this.. but I had saved a file from before.

    But it doesn’t show even after making changes and clearing caches. ??

    #31822
    brent
    Support Expired

    Here’s the page: https://instockgems.com/shop/

    #31824
    brent
    Support Expired

    Harry I’m headed to bed. Let me know what to do to get the description to show up in the quick view.

    Thank you. Have a good day!

    Brent

    #31836

    Hi Brent,

    I’m sorry i check many ways but still can’t make description work on quickview.

    We have to let it like now.

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #31838
    brent
    Support Expired

    Hey Harry, thanks for checking it out, that’s weird. So then I would prefer it if people would go directly to the single detail page. Can we change the link so that it goes directly there?

    Thanks man, your the best.

    #31839
    brent
    Support Expired

    Hey Harry I temporarily used CSS to hide the Quick View button, What I would like to do if possible would be to change the tooltip on it to “See Details” and have it link directly to the product since we can’t display all of the information there.

    Thank you,

    Brent

    #31843

    Hi Brent,

    Please add below code to gecko-child > functions.php

    function change_quick_view_link() {
        remove_action( 'woocommerce_after_shop_loop_item', 'jas_gecko_wc_add_buton' );
    }
    add_action('wp_head', 'change_quick_view_link');
    
    function jas_gecko_child_wc_add_buton() {
        global $post, $jassc;
    
        // Get product hover style
        $hover_style = $jassc ? $jassc['hover-style'] : cs_get_option( 'wc-hover-style' );
    
        if ( $hover_style == 1 ) {
            // Quick view
            echo '<a class="btn-quickview cp pr br-36 mb__10" href="' . get_the_permalink() . '" data-prod="' . esc_attr( $post->ID ) . '"><i class="fa fa-eye mr__10"></i>' . esc_html__( 'See Details', 'gecko' ) . '</a>';
    
            // Wishlist
            echo jas_gecko_wc_wishlist_button();
        } elseif ( $hover_style == 2 ) {
            // Quick view
            echo '<a class="btn-quickview cp pr bs-36" href="' . get_the_permalink() . '" data-prod="' . esc_attr( $post->ID ) . '"><i class="fa fa-eye"></i><span class="tooltip pa cw fs__12 ts__03">' . esc_html__( 'See Details', 'gecko' ) . '</span></a>';
    
            // Wishlist
            echo jas_gecko_wc_wishlist_button();
        }
    }
    add_action( 'woocommerce_after_shop_loop_item', 'jas_gecko_child_wc_add_buton' );

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #31847
    brent
    Support Expired

    Hi Harry.

    Thanks for the code. I added it and it doesn’t work. Only pops up and does the same thing. I don’t understand. Can you help? There’s also some kind of theme error in the console if you look here: https://instockgems.com/shop/

    Thank you.

    #31848

    Hi Brent,

    Please change code to

    function change_quick_view_link() {
        remove_action( 'woocommerce_after_shop_loop_item', 'jas_gecko_wc_add_buton' );
    }
    add_action('wp_head', 'change_quick_view_link');
    
    function jas_gecko_child_wc_add_buton() {
        global $post, $jassc;
    
        // Get product hover style
        $hover_style = $jassc ? $jassc['hover-style'] : cs_get_option( 'wc-hover-style' );
    
        if ( $hover_style == 1 ) {
            // Quick view
            echo '<a class="cp pr br-36 mb__10" href="' . get_the_permalink() . '" data-prod="' . esc_attr( $post->ID ) . '"><i class="fa fa-eye mr__10"></i>' . esc_html__( 'See Details', 'gecko' ) . '</a>';
    
            // Wishlist
            echo jas_gecko_wc_wishlist_button();
        } elseif ( $hover_style == 2 ) {
            // Quick view
            echo '<a class="cp pr bs-36" href="' . get_the_permalink() . '" data-prod="' . esc_attr( $post->ID ) . '"><i class="fa fa-eye"></i><span class="tooltip pa cw fs__12 ts__03">' . esc_html__( 'See Details', 'gecko' ) . '</span></a>';
    
            // Wishlist
            echo jas_gecko_wc_wishlist_button();
        }
    }
    add_action( 'woocommerce_after_shop_loop_item', 'jas_gecko_child_wc_add_buton' );

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 15 posts - 91 through 105 (of 133 total)

You must be logged in to reply to this topic.