Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1280829

    SMALLJIM
    Participant

    Hello I have Blurry Category Products Images (i.e. this link: https://automationlasso-store.com/product-category/by-brand/)
    I’ve noted that X resize and use the thumbnails for show the product list, exist a way for use any better resolution than 250×275?

    I have lost the options of woocommerce images sizes, I’ve reading that this normal using X because it override and control this sizes. Can you confirm it too, please?

    Thanks!

    #1281051

    Rue Nel
    Moderator

    Hi There,

    Thanks for writing in!

    To resolve the blurry images, you will need to control the image dimensions of the WooCommere product images. To do that, please check out this thread: https://community.theme.co/forums/topic/product-images-woocommerce/#post-224057

    Hope this helps.

    #1281058

    SMALLJIM
    Participant

    Hello, Thanks for reply, already tested (before of open this thread) but this code not works, I’m putting it in my child theme, functions.php. Please take a look to my functions.php, P.S. I’ve erased the cache too.

    `<?php

    // =============================================================================
    // FUNCTIONS.PHP
    // —————————————————————————–
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================

    // =============================================================================
    // TABLE OF CONTENTS
    // —————————————————————————–
    // 01. Enqueue Parent Stylesheet
    // 02. Additional Functions
    // =============================================================================

    // Enqueue Parent Stylesheet
    // =============================================================================

    add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );

    // Additional Functions
    // =============================================================================

    add_action( ‘woocommerce_checkout_process’, ‘wc_minimum_order_amount’ );
    add_action( ‘woocommerce_before_cart’ , ‘wc_minimum_order_amount’ );

    function wc_minimum_order_amount() {
    // Set this variable to specify a minimum order value
    $minimum = 250;

    if ( WC()->cart->total < $minimum ) {

    if( is_cart() ) {

    wc_print_notice(
    sprintf( ‘You must have an order with a minimum of %s to place your order, your current order total is %s.’ ,
    wc_price( $minimum ),
    wc_price( WC()->cart->total )
    ), ‘error’
    );

    } else {

    wc_add_notice(
    sprintf( ‘You must have an order with a minimum of %s to place your order, your current order total is %s.’ ,
    wc_price( $minimum ),
    wc_price( WC()->cart->total )
    ), ‘error’
    );

    }
    }

    // Do Not Remove Woocommerce Plugin Settings
    // =============================================================================
    function x_woocommerce_donot_remove_plugin_setting(){
    if ( ! is_admin() ) {
    return;
    }
    remove_filter( ‘woocommerce_product_settings’, ‘x_woocommerce_remove_plugin_settings’, 10 );
    }
    add_action(‘init’, ‘x_woocommerce_donot_remove_plugin_setting’);

    }

    #1281059

    SMALLJIM
    Participant

    I’ve putted the code in the top of the functions.php, Now I can see the resize image options, let me try with this.
    Thanks so much

    #1281088

    Rue Nel
    Moderator

    Hello Again,

    Thanks for updating us in! Please do not forget to regenerate the thumbnails so that the current uploaded images will follow the image dimensions you have set the WooCommerce settings as well.

    Please let us know how it goes.