New Landing How can we help? Themeforest Theme Support Neighborhood product and 1st gallery images displayed instead of Product Image Only

Viewing 15 posts - 16 through 30 (of 36 total)
  • #109544
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Open a new support topic, so you can provide us the details with total security in a private reply.

    -Rui

    #109545
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    @jakekeeling1981 no need to create a new ticket, please post your login credentials via private reply

    – Kyle

    #109554
    jakekeeling1981
    Member
    Post count: 44
    This reply has been marked as private.
    #109728
    4boards
    Member
    Post count: 37

    We have content-product.php in public_html/wp-content/themes/neighborhood-child/woocommerce and a new version in public_html/wp-content/themes/neighborhood/woocommerce after update today.

    Please be specific regards what needs copying, e.g. complete file or just some code.

    #109731
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    @4boards will forward to the developer so he can reply you.
    -Rui

    #109821
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    This is the code that has changed:

    Line 54+

    <?php if ($product_overlay_transition) {
    		if ($overlay_transition_type == "slideleft") { ?>
    		<figure class="product-transition-alt">	
    	<?php } else if ($overlay_transition_type == "fade") { ?>
    		<figure class="product-transition-fade">	
    	<?php } else { ?>
    		<figure class="product-transition">					
    	<?php }
    	?>
    	<?php } else { ?>
    	<figure class="no-transition">
    	<?php } ?>
    

    Line 103+

    if ( version_compare( WOOCOMMERCE_VERSION, "2.0.0" ) >= 0 ) {
    				
    					$attachment_ids = $product->get_gallery_attachment_ids();
    					
    					$img_count = 0;
    					
    					if ($attachment_ids) {
    						
    						echo '<div class="product-image">'.$image_html.'</div>';	
    						
    						foreach ( $attachment_ids as $attachment_id ) {
    							
    							if ( sf_get_post_meta( $attachment_id, '_woocommerce_exclude_image', true ) )
    								continue;
    							
    							echo '<div class="product-image second-image">'.wp_get_attachment_image( $attachment_id, 'shop_catalog' ).'</div>';	
    							
    							$img_count++;
    							
    							if ($img_count == 1) break;
    				
    						}
    									
    					} else {
    					
    						echo '<div class="product-image">'.$image_html.'</div>';					
    						echo '<div class="product-image second-image">'.$image_html.'</div>';
    						
    					}
    

    – Ed

    #109822
    Swift Ideas – Ed
    Keymaster
    Post count: 15264
    #110010
    jakekeeling1981
    Member
    Post count: 44

    Ed

    It looks good because my developer added this code to the CSS.

    .product-details img
    {
    display:none !important;
    }

    Kyle said this isn’t a reliable workaround. Can you suggest something better?

    Ed, please read the topic from the start, then we won’t have to go over the same ground to bring you up to speed.

    #110012
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Apologies, I was looking at the wrong site. That works fine 🙂

    – Kyle

    #110274
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @jakekeeling1981

    I did check the topic – just your issue is different it seems.

    The image there is being output by a WooCommerce function which we remove from the action hook – so unless you are adding this back in, or have removed our code, it wouldn’t appear with the default Neighborhoood theme..

    – Ed

    #110316
    4boards
    Member
    Post count: 37

    Here is function.php in the child theme;

    <?php
    add_filter(‘comment_form_default_fields’, ‘unset_url_field’);
    function unset_url_field($fields){
    if(isset($fields[‘url’]))
    unset($fields[‘url’]);
    return $fields;
    }

    add_action(‘after_setup_theme’, ‘remove_admin_bar’);

    function remove_admin_bar() {
    if (!current_user_can(‘administrator’) && !is_admin()) {
    show_admin_bar(false);
    }
    }

    add_filter( ‘woocommerce_price_trim_zeros’, ‘wc_hide_trailing_zeros’, 10, 1 );
    function wc_hide_trailing_zeros( $trim ) {
    // set to false to show trailing zeros
    return true;
    }

    add_filter( ‘wc_product_enable_dimensions_display’, ‘__return_false’ );

    Please advise if this is OK or should additional code be added.

    #110369
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    @4boards – That seems fine to me. Do you have any other template files in your child theme?

    – Ed

    #110417
    4boards
    Member
    Post count: 37

    Here is structure and files in child theme folders;

    public_html/wp-content/themes/neighborhood-child

    Files; functions.php
    Style.css

    public_html/wp-content/themes/neighborhood-child/woocommerce

    Files; content-product.php

    public_html/wp-content/themes/neighborhood-child/woocommerce/cart

    Files; cart-shipping.php
    cart.php

    Copies of the files attached.

    Attachments:
    You must be logged in to view attached files.
    #110419
    4boards
    Member
    Post count: 37

    As PHP upload not allowed, have submitted as .TXT

    Attachments:
    You must be logged in to view attached files.
    #110443
    Swift Ideas – Ed
    Keymaster
    Post count: 15264
Viewing 15 posts - 16 through 30 (of 36 total)

You must be logged in to reply to this topic.