Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #197632

    I previously edited config.php in woocommerce-config folder by searching for

    echo get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ );
    echo $link;
    echo “ID).”‘>”.__(‘Show Details’,’avia_framework’).”“;
    if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;

    and replacing it with

    echo “ID).”‘>”.get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ ).”“;
    #echo get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ );
    echo $link;
    #echo “ID).”‘>”.__(‘Show Details’,’avia_framework’).”“;
    #if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;

    but this no longer works.

    I searched for and tried this http://www.kriesi.at/support/topic/add-to-cart-show-details/ but it did not work.

    I also found this http://www.kriesi.at/support/topic/how-to-hide-add-to-card-and-show-details/, adapted it for the theme specific overlay buttons, and that did not work.

    Assistance would be much appreciated as this change greatly improves the usability of the shop page.

    #197655

    Hi Yadoz!

    Please try adding following code to Quick CSS in Propulsion theme options under Styling tab

    #top .thumbnail_container .button { display: none!important; }

    !important will force it. Please flush browser cache and settings if you are using cache plugin and refresh your page a few times.

    Best regards,
    Yigit

    #197684

    Hi,

    That removes the overlay buttons, but I wish to make the image link to the single product page which requires edits to the woocommerce-config/config.php so far as I know.

    Sorry if that wasn’t clear & thank you for the rapid response.

    #198048

    Hi!

    Did you originally use what I posted here: http://www.kriesi.at/support/topic/propulsion-product-image-click-for-details/?replies=2#post-82667

    That should still be valid.

    Best regards,
    Devin

    #198257

    Hello,

    Yes, I did try that, 5-6 times now to eliminate user error on my part.

    The function in config-woocommerce/config.php now looks like:

    {
    //circumvent the missing post and product parameter in the loop_shop template
    global $post;
    $product = get_product( $post->ID );
    //$rating = $product->get_rating_html(); //rating is removed for now since the current implementation requires wordpress to do 2 queries for each post which is not that cool on overview pages
    ob_start();
    if($product->product_type != ‘external’)
    {
    woocommerce_template_loop_add_to_cart($post, $product);
    }
    $link = ob_get_clean();
    $extraClass = empty($link) ? “single_button” : “” ;

    echo “<div class=’thumbnail_container’>”;
    echo “<div class=’thumbnail_container_inner’>”;
    echo “ID).”‘>”.get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ ).”“;
    echo $link;
    echo “ID).”‘>”.__(‘Show Details’,’avia_framework’).”“;
    if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;

    echo “</div>”;
    echo “</div>”;
    }

    I tried disabling all plugins except Woocommerce & BBPress, no luck. I tried also disabling all custom css except the part to hide the overlay buttons which were not hidden without the other CSS in effect.

    #198266

    I fixed it by editing config-woocommerce/config.php through the WordPress interface instead of via FTP. The changes done via FTP were not present. This happened once before and I thought I’d lost my mind – is there an explanation for this?

    Thanks!

    #198368

    figured that out, my host restored my installation using an outdated version of the theme.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Hide Shop page Select Options & Show Details overlay’ is closed to new replies.