Home › Forums › Basel support forum › Color Swatches as Variation Pics Issue
Color Swatches as Variation Pics Issue
- This topic has 10 replies, 2 voices, and was last updated 8 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
September 1, 2016 at 5:46 pm #3416
ccgreensParticipantHey,
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
September 1, 2016 at 9:11 pm #3422
Artem TemosKeymasterHello,
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
September 1, 2016 at 9:54 pm #3424
ccgreensParticipantThanks 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,
CollinSeptember 2, 2016 at 4:49 am #3428
Artem TemosKeymasterIn 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
September 2, 2016 at 5:10 am #3433
ccgreensParticipantInfo below, let me know if you need anything else. Thanks
-collin
September 2, 2016 at 5:13 am #3434
Artem TemosKeymasterAdmin access to your web-site will be also useful, so please provide it too.
Thank you
September 2, 2016 at 5:20 am #3435
Artem TemosKeymasterYour site uses some caching mechanism so you need to disable it or give us access to log in.
September 2, 2016 at 6:09 am #3436
ccgreensParticipantI’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
September 2, 2016 at 4:22 pm #3446
Artem TemosKeymasterThank 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
September 2, 2016 at 8:32 pm #3469
ccgreensParticipantThanks, I’ll go regular swatch route. That was driving me crazy
September 3, 2016 at 11:18 am #3479
Artem TemosKeymasterAs you wish. Feel free to contact us if you will have any additional questions.
Regards
-
AuthorPosts
Tagged: swatches product variations
The topic ‘Color Swatches as Variation Pics Issue’ is closed to new replies.
- You must be logged in to create new topics. Login / Register