New Landing How can we help? Themeforest Theme Support Neighborhood WPML issue – Store Image Size

Viewing 15 posts - 1 through 15 (of 31 total)
  • #83651
    paololee
    Member
    Post count: 149

    Hello Guys,
    i am opening a new topic because i have another issue with WPML and NHD!

    #83652
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #83655
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84423
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @paololee – your previous post is private, don’t worry.

    This can only be something to do with the WooCommerce/WPML link – the image size is reporting as 1px x 1px on the translated shop. Is there anywhere to set the image size for the translation, like you do as standard with WooCommerce > Settings > Products?

    Did WPML support get back to you?

    – Ed

    #84426
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84433
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    In the WooCommerce Multi-lingual plugin, is there anywhere to set the size for the products there?

    Try editing /woocommerce/content-product.php line 111 from:

    $image_html = wp_get_attachment_image( get_post_thumbnail_id(), 'shop_catalog' );

    to

    $image_html = wp_get_attachment_image( get_post_thumbnail_id(), array('540', '720') );			
    

    and also line 134:

    echo '<div class="product-image">'.wp_get_attachment_image( $attachment_id, array('540', '720') ).'</div>';

    – Ed

    #84434
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84437
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84442
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84443
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84757
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You are checking in /neighborhood/woocommerce/content-product.php right?

    – Ed

    #84893
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84906
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Can you paste your code contents from the /neighborhood/woocommerce/content-product.php to here please: http://pastie.org and share the link so that I can see what you’ve done?

    – Ed

    #84907
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
    #84908
    paololee
    Member
    Post count: 149
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 31 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register