Home Forums Square Disabling hard crop in woocommerce setting not possible

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #807
    Freefly
    Participant

    Hello,

    I have the problem, that product images are always cropped to an 1:1 ratio. Disabling the hard crop setting in woocommerce is not possible. After saving the new setting and refreshing the page the hard cropping is enabled again.

    In another post it was explained that “the setting in the woocommerce for the image crop won’t work because we have overlapped the setting with our code.” (reply #318)

    Is there a way to change this setting as I need to have the product images displayed in their original picture ratio. I really like your Square theme and would appreciate a solution that works with the theme.

    Thank you.

    Freefly

    #816
    Hash
    Keymaster

    Hi,

    You need to modify the code in order for the settings to work. You need to remove some code from inc/woo-functions.php file

    Remove the code
    add_action( ‘init’, ‘sq_update_woo_thumbnail’);
    in the line number 96

    Check this file for reference.

    Once you remove the code, the settings for the woocommerce cropping will work. But please make sure your use proper image size else it may break the design.

    #820
    Freefly
    Participant

    Great. Removing the code just did the trick. Thank you very much. Really appreciate the quick support.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.