So I have been working on getting some more dynamic features for my WooCommerce store setup, one of them being ingredient attributes (we make soap). What I have been trying to do is allow for the global attribute to be sorted per product. For example, one product the ingredients may be Olive Oil, Coconut oil etc. and another would be Coconut Oil, Olive Oil etc. (see screenshot).
I have been trying to research how I could set the order per product, but have come up short. Is there a way to do this programmatically? I would even take a solution that would would set the order by category for example, Category A > Olive Oil, Coconut Oil, Category B > Coconut Oil, Olive Oil.
Thank you so much in advanced.
Related
I've created a new field (field_testtype) with the following options:
Apple
Banana
Orange
Coffee
Milk
I now want to seperate these terms into two groups:
Food
Drinks
So whenever someone picks "Food" he will see entries with Apple, Banana or Orange. I tried the following, but unfortunately this won't show any results at all.
It looks like I've found the answer: There's nothing wrong with the settings above, grouped filters simply won't work in Drupal due to a bug. The following helped me to fix it:
https://www.drupal.org/project/drupal/issues/1810148
I'm trying to list products as following.
Men: Contains all the products related to men.
Women: Contains all the products related to women.
Brand: Contains all the brands, which leads to products both men and
women.
As you can see this isnt a clear hierarchy. I'm thinking about way how we can do this?
You Need to create three product category to separate all these product. You need to do .....
1. Go to Products -> Categories. Then you need to add three categories like Men Women and Brand.
2. After that, When you add product or edit your product, you just need to check the category of the product.
I would like to create a grocery store to sell meat and vegetables using the WooCommerce plugin.
My client wants that the visitors would be able to buy products by units (e.g 5 tomatoes) or by weight (e.g 1.5 KG of tomatoes).
It should be applied for all the products or most of them.
I am using the extension Measurement Price Calculator and it works fine cause I achieve to have a "weight" field where customers can enter an amount and it is converted into money.
But I can't find a way to have both options at the same time, weight field and unit field!
It’s possible to do it with the WooCommerce?
How can I achieve that?
Thank you!
Is there a way to assign unique categories to individual product variations? For example a site that sells baby bibs, in pink or blue. You'd have one product (the bib) with two variations (colours). You might also have two categories, Boy Bibs and Girl Bibs.
Could the pink bib variation be assigned to the Girl Bibs category, whilst the blue bib variation is assigned to the Boy Bibs category? The only difference between the two bibs is the colour so it makes sense to have them setup as product variations.
Previously the client handled this in OpenCart by duplicating products to assign them to their respective category which seemed the wrong way to do it.
EDIT:
I suppose this scenario is a bit like 'six of one, half a dozen of the other' - neither way is wrong or right and the answer might come down to how the client wants to handle orders that are generated
In my opinion that is not possible as the product (the main product) is bound to one or multiple categories, variations are linked to the main product. So either do as with OpenCart - duplicate the product remove the unneeded variations.
I'm having an issue with the Drupal 7 -Any- option in an exposed filter. I have a list of about 8 taxonomy terms and I want my users to be able to filter between 6 of them. The other 2 terms are used in another place on the website, but all 8 are part of the same vocabulary.
My taxonomy terms are (for example):
Eggs
Ham
Cheese
Bacon
Sausage
Juice
Fruit
Toast
In my exposed filter I have 6 of those terms selected as available options to filter between. Right now the filter looks like this:
-Any-
Eggs
Ham
Cheese
Bacon
Sausage
Juice
The problem is that when you select -Any- it includes the Toast and Fruit terms. I would like -Any- to only be any of the 6 terms I selected in the View.
One workaround is to check the Required box to require that a selection is made. This turns off the -Any- option, but I'd like to keep it so the default selection displays all 6 items when you get to the page.
How do I limit -Any- to only include my selections for the exposed filter?
You could also add another filter for the same taxonomy vocabulary. Do not expose it, set the operator to "Is none of" and select the terms you do not want searched (Fruit,Toast).
So that way, even when your users choose "any" from the exposed filter, the unexposed filter will remove any of the unwanted terms.
Use hook_views_query_alter and add another where clause to restrict it to the list.