Tagged: , , ,

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

    Hi,

    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?

    #59168

    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.

    #59169

    Hi,

    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{
    display:none;
    }

    #59170

    Thanks.

    #59171

    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.

    #59172

    Would like to know also.

    #59173

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

    Like:

    # 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
    ob_start();
    $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>";
    }

    #59174

    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>";

    with:

    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.

    #59175

    Dude

    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

    #59176

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

    #59177

    Thanks! Works perfect!

    #59178

    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 :)

    #59179

    Thanks awesome support,

    it does work great, I have not seen any issues

    #59180

    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.