Home Forums Basel support forum Color Swatches as Variation Pics Issue

Color Swatches as Variation Pics Issue

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #3416

    ccgreens
    Participant

    Hey,

    Thank you for an amazing product, very user friendly for a beginner like me. Gave you a 5 star on themeforest.

    I am using variation pics for the color swatches on all my products, and on my homepage and category pages they show up fine, but on the single product page some of them show up and function fine and some don’t. I’ve read through the forums and checked all my settings and I can’t figure it out. As near as I can tell it works fine on my products that don’t have a lot of variations, but doesn’t work on my products that have 40 or more variations. Also was wondering if it is possible to make the swatches twice as big.

    Thanks for taking the time and your excellent customer support.

    -collin

    #3422

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for using our theme and rate it with 5 stars 🙂

    Firstly, we would like to ask you to update the theme to the latest version where we have fixed a few bugs with variations function. And one more thing to check is an option in Theme Settings -> Shop -> Attributes swatches -> “Use images from product variations”. Try to turn it on.

    And here is a code snippet that you can place into Custom CSS area in Theme Settings to increase sizes for swatches images on the shop page

    
    .swatches-on-grid .swatch-on-grid {
        width: 30px;
        height: 30px;
    }
    

    Regards

    #3424

    ccgreens
    Participant

    Thanks for the code that worked, but it didn’t change the swatches in my single product pages. I updated to latest version and that helped the functionality of the variations, but I still have some single product pages with the pictures as the color swatches and some without. And I have “Use images from product variations” on. In the private content I left two links so you can see what I’m talking about.

    Thanks,
    Collin

    #3428

    Artem Temos
    Keymaster

    In this case we would like to ask you provide us your FTP access so we could check your files and see why it works wrong.

    Thank you

    #3433

    ccgreens
    Participant

    Info below, let me know if you need anything else. Thanks

    -collin

    #3434

    Artem Temos
    Keymaster

    Admin access to your web-site will be also useful, so please provide it too.

    Thank you

    #3435

    Artem Temos
    Keymaster

    Your site uses some caching mechanism so you need to disable it or give us access to log in.

    #3436

    ccgreens
    Participant

    I’m using wp super cache, I deactivated it and still having same issue. I gave you access to my site below, let me know.

    -collin

    #3446

    Artem Temos
    Keymaster

    Thank you.

    We have found the root of this problem. WooCommerce system doesn’t provide frontend with all variations if their number is bigger than 40. And because of that images for some variations are not available in the template file. You can fix it by adding the following line to the file basel/woocommerce/single-products/add-to-cart/variable-swatches.php between lines #38 and #39

    $available_variations = $product->get_available_variations();

    But it may be bad for the single product page performance.

    Regards

    #3469

    ccgreens
    Participant

    Thanks, I’ll go regular swatch route. That was driving me crazy

    #3479

    Artem Temos
    Keymaster

    As you wish. Feel free to contact us if you will have any additional questions.

    Regards

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Color Swatches as Variation Pics Issue’ is closed to new replies.