Home › Forums › Basel support forum › Single product swatches images
Single product swatches images
- This topic has 12 replies, 2 voices, and was last updated 7 years ago by
Artem Temos.
-
AuthorPosts
-
February 14, 2018 at 1:57 am #39595
Gerald88ParticipantHello, I am trying to configure the images of the variations with the options of swatches images in the products.
On the store or catalog page it looks good but on the main page of the product they do not appear. I have been looking at the forums where you indicate that they have to have a default color, I have set them a default color but it does not work either.
February 14, 2018 at 7:55 am #39648
Artem TemosKeymasterHello,
We are glad to know that you considered using Basel for your web-site. I hope you will be happy with it.
Be sure that you have specified and enabled these two options https://gyazo.com/d6652bc16ddcb8f01bf23e7e2626ed96
If it still doesn’t work, please, provide us your admin and FTP access so we can check what is wrong there.Kind Regards
XtemosFebruary 14, 2018 at 9:20 am #39747
Gerald88ParticipantYes, I have it configured that way. But it does not work.
February 14, 2018 at 9:23 am #39749
Artem TemosKeymasterSorry, but we can’t connect your FTP.
February 14, 2018 at 9:27 am #39751
Gerald88ParticipantI’ve already put it on again.
February 14, 2018 at 10:10 am #39755
Artem TemosKeymasterPlease, send us your current host, username and password so we can connect the FTP.
February 14, 2018 at 10:19 am #39759
Gerald88ParticipantMi ftp host is:
February 14, 2018 at 11:05 am #39778
Artem TemosKeymasterThere is some kind of cache on your server and we can’t edit any files. The changes are simply not visible on frontend. Try to edit
inc/classes/Swatches.php
file for example.February 14, 2018 at 11:11 am #39780
Gerald88ParticipantI have already deactivated the server opcache, you can work without problems. If something comes up, do not hesitate to tell me.
February 14, 2018 at 12:33 pm #39800
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 if you will not use any kind of cache.
Regards
February 14, 2018 at 12:48 pm #39808
Gerald88ParticipantI have added the line as you indicated, but the images still do not appear.
February 14, 2018 at 12:54 pm #39812
Gerald88Participantnow yes, it is already corrected.
Can you make those images a little bigger?
February 14, 2018 at 12:56 pm #39813
Artem TemosKeymasterYou can change “Attribute swatch size” to large in Dashboard -> Products -> Attributes.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register