Product Variation Combinations - woocommerce

We have a site that's selling products with multiple color options: Base Color and Accent Color. When a base color is selected, the accent color is filtered based on the variation combinations that are available. Also, when an accent color is selected the base color is filtered in the same way. This creates an issue that if someone wants to select a new base color that isn't necessarily available with the currently selected accent color, they're stuck. Is there a way to always display all Base colors (1st attribute) and only filter the 2nd attribute based on the 1st and a 3rd based on the 2nd.
product link

Related

What are the color names available for scale_color_manual?

This page shows how to use scale_color_manual in R. It gives red, green, and blue as possible color values.
What values are available?
How do I see what values are available? (Say I've loaded or made a new palette.)
Nothing is special about the color names available in ggplot - they are the same as the color names available in R. You can use colors() to see the the list, with details at ?colors. I generally prefer to search the web for "R colors" because your first hit will almost certainly be a document that shows the colors with the color names.
Say I've loaded or made a new palette.
A palette is an object that contains colors. It can contain named or un-named colors. Palettes do not change the named colors that are available.

Color specification for one group only

I am working on a script for plotting volcano plots for a specific number of groups that the user specifies, i.e. if he wants to have five groups colored, the script modifies the data set accordingly with a new column called color. All the other observations that are there shouldn't be highlighted specifically, but be grey.
Is it possible to only specify the color of one group while letting ggplot2 choose all the colors for the other groups available?
I couldn't solve this using scale_color_manual, since it expects values for all groups!
This image demonstrates my problem, all other features except the groups, i.e. the "Features (all)" group should be grey instead of red, however I want ggplot to color all other groups automatically...
Specifying a custom color palette and sorting the color column solved my problem :)

Woocommerce - Overwrite global variations with individual variables

I've got a product that I've created that has 3 options available for it.
Size of the strap
Colour of the strap
Colour of the face
Now each of these are variations, but at the moment, I've got two variations on the product.
Large size, Any Strap colour, Any Face colour
Small size, Any Strap colour, Any Face colour
This allows me to change the price for the sizes for all variations.
Now the issue is that I've run out of stock of a particular face, I don't want to remove the variation, but I can't seem to add another variation saying:
Small Size, Green Strap colour, Any face colour
and make that out of stock, the first "small, any, any" variation is overwriting this & saying it's in stock.
Is there a way for me to have specific variations out of stock without having to create 170 variations covering all aspects of combinations?
If I run out of blue straps, I'd have to change the stock level of 20 variations!
Drag all global variations at the bottom of your variations, stock will be accounted for with the options, then the price will be set with the last option
The answer to this is so simple, i'm surprised it's not documented anywhere else.
For all those who will no doubt find this to be a problem, you're able to set your variations and order them to take priority by simply dragging them to the top of the list for 1st read, and the bottom of the list for last read.
At the top of your variations, put all the products that are out of stock.
Any Size, Blue Stap, Any Face
Any Size, Red Stap, Any Face
Any Size, Any Stap, Red Face
Check "Manage Stock" and put the stock to 0 for all these.
Now, lower down your list of variations, put in your global variation (The things you want applying to all the variations you're not setting manually)
Large Size, Any Colour, Any Colour
Small Size, Any Colour, Any Colour
Set the prices etc, but don't manage stock on this.
Woocommerce will then use the stock from the first variation, apply that to the product, then set the prices etc for the rest of the variations.

Issue with legend coloring in an RDLC

I'm working on a report using a business object data set. The business object is really simple it has three fields (ColorName, ColorCode, Date). I'm making a bar chart using the year from the Date as the category, ColorName as the series field, and count of ColorName as the "data" (the top area in the designer) field. So the graph will show each year along the bottom with series bars of the colors. In the "Series Properties" I have the fill set to ColorCode and my color code values are HTML color codes including the pound sign. The bar graph is working perfectly. The bars are the correct colors. The legend however is inconsistent. My current graph has 5 colors and only 3 of them are showing the correct color in the legend swatch. Two of them are black but they shouldn't be. If I change the color code for a ColorName then the graph updates correctly but the swatch is still black. I have another graph that is a pie chart which is doing the same thing but the legend works correctly in that one. Anybody have an idea where I can look to resolve this legend color issue?
It looks like if any year had no series values then the legend would not work correctly. And it seems to only happen when you add a series to the report. The solution was to update my query to return counts instead of rows; including 0 counts for series that had no records. This way every series/category group had it's own record in the data set.
I have applied the same case for Rating Score 1 to 5. For each series I needed to color each bar in the Bar Chart according to the following factors (1:Poor, 2:Average, 3:Good, 4:Very Good, 5:Excellent).
Right click on any bar in the chart and select Series Properties.
Select Fill, Set background fill options - Fill Style to Solid.
Enter the below formula in the formula editor:
=IIF(Fields!Rating.Value=1, "Tomato", IIF(Fields!Rating.Value=2, "Orange", IIF(Fields!Rating.Value=3, "#cdf8cd", IIF(Fields!Rating.Value=4, "#7de67d", "Lime"))))
Hope this helps.

Color model name

I'm learning bootstrap from twitter, I want to do some color changes, and I got this color code: #08c
I want to know if it represent #0088cc (and same way for other variations?)
and how is it called so I can find some online color palette.
I thank your help in advance
Yes #08c is equivalent to #0088cc.
Not all colors have names. This one in particular does not.
For a list of all named colors defined in css3 see the spec
From the spec
The format of an RGB value in hexadecimal notation is a ‘#’
immediately followed by either three or six hexadecimal characters.
The three-digit RGB notation (#rgb) is converted into six-digit form
(#rrggbb) by replicating digits, not by adding zeros. For example,
#fb0 expands to #ffbb00. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies
on the color depth of the display.
I use this site
http://www.2createawebsite.com/build/hex-colors.html
to generate color codes for my colors. #08c is not a full representation but it could mean #00008c.

Resources