Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #218452

    Dear Support

    i’m trying to edit the Product Archive Page Template.

    What i need :

    • Replace the Thumbnail pulled from the featured image of the product with the content of a custom field in the product.
    • I am able to do this when i use a static HTML copy of the Archive content and pull the custom field with my shortcode

    See Example = Article Nr. 1 with the Audioplayer instead of the Thumbnail

    i tried to do it with quick css i.e. .thumbnail_container {display:nzs_page_section_custom_attach, !important}

    Any help would be highly appreciated

    • This topic was modified 10 years, 9 months ago by SonicCube.
    #218455

    Hey SonicCube!

    This kind of customization is beyond what we can assist with through support. Your best route is to look into a freelance developer from somewhere like Codeable or Microlancer.

    Best regards,
    Devin

    #218457
    This reply has been marked as private.
    #218600

    Hey!

    You can edit config-woocommerce > config.php file, find the product image code on line 111:

    function avia_woocommerce_thumbnail($asdf)
    {
    	global $product, $avia_config;
    	$rating = $product->get_rating_html(); //get rating
    
    	$id = get_the_ID();
    	$size = 'shop_catalog';
    
    	echo "<div class='thumbnail_container'>";
    		echo avia_woocommerce_gallery_first_thumbnail( $id , $size);
    		echo get_the_post_thumbnail( $id , $size );
    		if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";
    		if($product->product_type == 'simple') echo "<span class='cart-loading'></span>";
    	echo "</div>";
    }

    Cheers!
    Ismael

    #218682

    Thanks a lot Ismael, really apprechiatte your help :)

    Have a great day.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Product Archive Template’ is closed to new replies.