Home › Forums › Basel support forum › Swatches bug?
Swatches bug?
- This topic has 12 replies, 2 voices, and was last updated 8 years, 6 months ago by Artem Temos.
-
AuthorPosts
-
April 21, 2016 at 1:13 pm #767
meParticipantHi,
Scenario:
Swatches_
Woocommerce – Attributes – Name: Color
Attributes – Color include: White, Gray, SilverProducts_
Product Data (Variable Product) – Name: Poster
Attributes – Select Color, value all – White, Gray, Silver
Checkbox – Visible on the product page, Used for variations
Variation – Any ColorTheme settings_
Shop – Attribute swatches – pa_colorResult:
– Or Display last swatch color – Siver
– Or Don’t display swatches on shop pagePHP-Notice
Trying to get property of non-object 2 wp-content/themes/basel/inc/classes/Swatches.php:
line – 91, 92, 93—
If on tab Variation – disable Any Color, and add all colors: White, Gray, Silver, then swatches will display on shop page.April 21, 2016 at 1:20 pm #769
Artem TemosKeymasterHello,
Thank you for your message.
Please provide us your web-site link and admin access so we could take a closer look to your problem. When we try to reproduce it on our development site we don’t see this.
Kind Regards,
XtemosApril 21, 2016 at 7:54 pm #779
meParticipantOk, test site ready.
April 21, 2016 at 7:56 pm #781
Artem TemosKeymasterPlease check login details, we can’t login.
April 21, 2016 at 8:01 pm #782
Artem TemosKeymasterAnd swatches on the shop page may be shown only if you add each attribute term as an separate variation. So attribute that you choose in Theme Settings -> Shop -> Attribute Swatches have to be presented in product variations to display them on the shop grid.
Regards
XtemosApril 21, 2016 at 8:03 pm #783
meParticipantOk, i regenerated data without special symbols.
April 21, 2016 at 8:07 pm #785
Artem TemosKeymasterOkay thanks. Please check your product now. So it is required to add each term as a separate variation to show them on the shop page.
April 21, 2016 at 8:24 pm #786
meParticipantI realized that its only works if there is separate variations )) It’s necessary to add in the FAQ, what doesnt work with variation – any [variation].
April 21, 2016 at 8:28 pm #787
Artem TemosKeymasterOkay, will try to explain in more details in our theme documentation.
Don’t worry about PHP notices, they are absolutely harmless, and we will fix them in the next update.
About special symbol in the product name, could you try to use ‘x’ character instead of special char? It will solve the problem. Other way you need to edit our js/functions.js file and remove the following line from there
.replace(/&/g, '&')
. To see the changes you need to disable including minified JS in Theme Settings -> Performance.April 21, 2016 at 9:27 pm #789
meParticipantAbout special symbol in the product name, could you try to use ‘x’ character instead of special char?
Default WordPress converts symbol x between numbers to special symbol × =)
Converting x to × in wp_texturize() converts too much. Strings like 4×4
Resolve – comment from line 278 in /wp-includes/formatting.php
// 9×9 (times), but never 0x9999
…April 22, 2016 at 6:34 am #790
Artem TemosKeymasterSo you have solved this? 🙂
April 22, 2016 at 7:04 am #794
meParticipantYes, commenting in the file /wp-includes/formatting.php =) another solution i haven’t found so far.
April 22, 2016 at 12:08 pm #796
Artem TemosKeymasterOkay, great 🙂
-
AuthorPosts
Tagged: any atributtes, bug, swatches
The topic ‘Swatches bug?’ is closed to new replies.
- You must be logged in to create new topics. Login / Register