Tagged: , , ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
  • #7753


    my client does not like the add to cart and show details effect in the product grid. He has older customer who he thinks find its appearing on hover and moving confusing. He would like to remove them all together and just have clicking the image take you to the single product page.

    can that be done?


    Would love to know this too as one of my products has a custom product add on choice. They need to view the full product to see the choices and make one before adding to cart. Thanks.



    I got as far as this which hides the variation and add to cart hover buttons so you only have the more details button left. goes in custom.css.

    I would still really like to know how to add the link to the image instead which will be a PHP edit

    .thumbnail_container div.thumbnail_container_inner a.product_type_variable, .thumbnail_container div.thumbnail_container_inner a.product_type_simple{




    Hi this is unresolved after 2 weeks, can you point me to the right php file to disable the buttons, or to add the product link to the product image in grid view.


    Would like to know also.


    Sorry to bump, but i understand that you need to change something at woocommerce-config/config.php


    # creates the post image for each post
    function avia_woocommerce_thumbnail()
    //circumvent the missing post and product parameter in the loop_shop template
    global $post;
    $_product = &new woocommerce_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
    $link = ob_get_clean();
    $extraClass = empty($link) ? "single_button" : "" ;

    echo "<div class='thumbnail_container'>";
    echo "<div class='thumbnail_container_inner'>";
    echo get_the_post_thumbnail( get_the_ID(), 'shop_catalog' );
    echo $link;
    echo "<a>ID)."'>Info & köp</a>";

    if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";

    echo "</div>";
    echo "</div>";


    You can try to replace:

    echo get_the_post_thumbnail( get_the_ID(), 'shop_catalog' );
    echo $link;
    echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>".__('Show Details','avia_framework')."</a>";


    echo "<a class='' href='".get_permalink($post->ID)."'>".get_the_post_thumbnail( get_the_ID(), 'shop_catalog' )."</a>";

    However this may break the design and requires some additional adjustments.



    Thank you! I used your source code. :-)

    Customers want more convenience, I use Fireworks to do a diagram, see. http://www.diigo.com/item/image/24k6s/k87a

    Click the red zone, linked to the product detail page.

    Click “Add to cart”, or Add to Cart.

    Thank you


    Thanks, it seems to work just fine, additional adjustments?


    Thanks! Works perfect!


    I wrote “However this may break the design and requires some additional adjustments. ” because I didn’t reproduce the change myself and I was not sure if some additional css changes may be required. If everything works that’s great :)


    Thanks awesome support,

    it does work great, I have not seen any issues


    Glad that I could help you.

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

The topic ‘Product grid- disable show details and add to cart,click image go to details’ is closed to new replies.