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?
Product grid- disable show details and add to cart,click image go to details
14 posts from 5 voices-
Posted 1 year ago #
-
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.
Posted 1 year ago # -
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; }Posted 1 year ago # -
Thanks.
Posted 1 year ago # -
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.
Posted 1 year ago # -
Would like to know also.
Posted 1 year ago # -
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>"; }Posted 1 year ago # -
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.
Posted 1 year ago # -
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
Posted 1 year ago # -
Thanks, it seems to work just fine, additional adjustments?
Posted 1 year ago # -
Thanks! Works perfect!
Posted 1 year ago # -
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 :)
Posted 1 year ago # -
Thanks awesome support,
it does work great, I have not seen any issuesPosted 1 year ago # -
Glad that I could help you.
Posted 1 year ago #
Reply
You must log in to post.














