Home › Forums › WoodMart support forum › Swatches are not visible
Swatches are not visible
- This topic has 18 replies, 2 voices, and was last updated 2 years, 2 months ago by
Luke Nielsen.
-
AuthorPosts
-
December 14, 2022 at 2:21 pm #428779
daanParticipantHi there,
In In Products > Attributes, we colour-coded all attributes. These are not yet displayed correctly on the front-end.
Do you have any idea where this is due to? At the moment, we are not using a caching plugin yet.See attachment for more info.
Thanks in advance!
-
This topic was modified 2 years, 2 months ago by
daan.
Attachments:
You must be logged in to view attached files.December 14, 2022 at 3:44 pm #428814
Luke NielsenKeymasterHello,
In this case, is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?
I await your response.
Kind Regards
December 14, 2022 at 3:48 pm #428815
daanParticipantSee extra information.
December 14, 2022 at 4:23 pm #428832
Luke NielsenKeymasterHello,
Please navigate to Dashboard -> Settings -> General -> define the address as
https
then clear the cache and check the issue again.Kind Regards
December 14, 2022 at 5:22 pm #428853
daanParticipantHi Luke,
We did what you asked, but nothing changed. Even after clearing the Kinsta cache.
Do you have another idea?
December 14, 2022 at 5:27 pm #428858
Luke NielsenKeymasterHello,
On my side, I see the color swatches: https://prnt.sc/zN2lfJRRRHL5
Please send me a screenshot or a video of the appearance from your side, please.
Kind Regards
December 14, 2022 at 5:32 pm #428861December 14, 2022 at 5:49 pm #428871
Luke NielsenKeymasterHello,
Please confirm the permission for the plugin’s deactivation, switching to the parent theme. As soon as we complete the testing we will enable all back.
Looking forward to collaborating with you.
Kind Regards
December 14, 2022 at 6:01 pm #428874
daanParticipantHi Luke, you have our permission.
December 14, 2022 at 7:06 pm #428893
daanParticipantHi Luke,
The issue seems to occur in the child theme. When we remove the code below, the swatches are working just fine.
A child theme is a must for future changes, but maybe this message helps your investigation.Kind regards.
/*
Theme Name: Woodmart Child
Description: Woodmart Child Theme
Author: XTemos
Author URI: http://xtemos.com
Template: woodmart
Version: 1.0.0
Text Domain: woodmart
*/December 15, 2022 at 12:53 pm #429046
Luke NielsenKeymasterHello,
I have checked the issue on the parent theme and there the swatches work well, thus the issue is related to the third-party code that is in the child theme. So I suggest you remove all your custom code from there and check the issue again.
Kind Regards
December 15, 2022 at 12:59 pm #429052
daanParticipantHi Luke,
There is no code in our style.css stylesheet. No code at all. If we reinstall an empty woodmart-child file, the error occurs again.
Do you have any clue?
Kind Regards
Attachments:
You must be logged in to view attached files.December 15, 2022 at 1:05 pm #429055
Luke NielsenKeymasterYep, check this screenshot – https://prnt.sc/ij7I0abxMIOS
Kind Regards
December 15, 2022 at 1:32 pm #429069
daanParticipantHi Luke,
On the shop we have products with more than 500 variations. Woocommerce seems to start using ajax code to load your selected variation. We used this code to “Fix for too many Variations”, which is described here: https://techprimeweb.com/modify-the-ajax-variation-threshold/.
I’m not an expert on .php. but this code is used to fix this: https://gist.github.com/claudiosanches/6f91ad228c2176b986b2.
Is there a way to make this code work within the child theme?
December 15, 2022 at 4:23 pm #429118
Luke NielsenKeymasterHello,
Sorry but this code is not related to the theme and is provided by a third-party developer and we cannot edit or change that code because such customization is not included in our support.
You can get acquainted with Envato Support Policy here:
https://themeforest.net/page/item_support_policy
I sincerely appreciate your understanding in this matter. Please feel free to reach out to me if you have any further questions.
Kind Regards
December 15, 2022 at 4:24 pm #429119
daanParticipantHi Luke,
Thanks. I understand.
Is there another way to make this work with so much variations?
Kind regards.
December 15, 2022 at 4:53 pm #429136
Luke NielsenKeymasterHello,
Sorry, I cannot tell you exactly because the variation functionality comes from WooCommerce, so will be better to contact their support team for further solutions.
Kind Regards
December 15, 2022 at 5:12 pm #429150
daanParticipantHi Luke,
This line of code seems to be the problem.
When we remove this line of code the swatches are working. This line of code is part of the Woodmart Child Theme correct?
Kind regards.
Attachments:
You must be logged in to view attached files.December 16, 2022 at 11:34 am #429309
Luke NielsenKeymasterHello,
This line of code using for enabling all code that is situated below it, or rather in your case, your custom code. Thus if you remove our line of code, your custom stops working.
Don’t hesitate to reach out if you have any more questions or concerns.
Kind Regards
-
This topic was modified 2 years, 2 months ago by
-
AuthorPosts
- You must be logged in to create new topics. Login / Register