I need help regarding the WooCommerce plugin. I want to achieve something like this but I don’t know how to do it
I want to have two attributes which are Color and Color Special Order. The customer can choose the color, or they can make a custom order color.
If they choose Color, they can’t choose Color Special Order. If they choose Color Special Order, they can’t choose Color. In conclusion, only one attribute can be selected.
Do you have any idea how to achieve this? I have tried to find plugins but none of them can achieve this. I have also bought WooCommerce Product Add-Ons but still can’t achieve this.
Thank you in advance.
You can have a variable product with the colors "red", "green", "yellow" and "custom", so the user can only choose one.
Now, you only need a field popping up when the user chooses "custom". For this, you can use a plugin (e.g. this one: https://pluginrepublic.com/custom-fields-for-woocommerce-variations/), maybe WooCommerce Product Add-Ons can add a field to a variation, too, not sure about that.
Related
I have a Woocommerce website in which we sell printed t-shirts, hoodies and sweatshirts. We have two product attributes; Size and Color. Currently, we're using the built-in attributes options like this (Our site is in Persian so I used a translator for you, it looks different because of that but we're using the defaults of Woocommerce):
https://i.stack.imgur.com/wqMgt.jpg
Now the problem is that if we want to make a specific size of a specific t-shirt unavailable, we have to either change the variations in products one by one (It's impossible because we have thousands of products with at least 70 variations) or use a plugin to bulk select and edit variations which we do. But it's still very slow and inefficient. As we add more products, it gets harder and slower to change a variation's status.
So what we need is a way to add global conditional logic that let us define which size of which color is available for t-shirts at any given time without needing to change anything inside the product editor. I've tried plugins like Yith Woocommerce Product Add-ons but they don't solve our problem. As you can see from the image, they let you set a single conditional logic for a whole field, they don't provide a solution for adding conditional logic to each option in a field.
Yith Product Add-ons limitation
Can you help me find a solution to this problem? In short, I need a plugin or solution that lets me set conditional logic for my attributes from the admin panel for t-shirt size and color without needing to set them in product pages.
Any Wordpress specialists here?
In fact that I couldn't find any plugin... I've got a question. How can I add a custom color to specific user role? For example I need to add red color for administrator role, and green color for translator role. I want to display it on front of course (index page, comments etc... everywhere where user name appears).
There's quite a lot of different parts to this question. Have you tried anything?
I'm unaware of a way to add a field to the user role but you could add it to specific users. As a starting point, I would add a custom meta field users where you could enter a hex value for a colour. You could use a tool such as CMB2 for this, which even provides a colour picker field.
From this point you could then access the colour specific to the user using get_user_meta() and apply this to certain elements.
I am working on some fashion website with Woo-commerce and wordpress. I want to change the product Like (Same product in Red, Same product in Blue) while user clicks color variant, How can I do it. Thank you
You can do this by setting your product type to variable product and add color attribute there from Add attributes to use for variations.
After adding color variation you can add multiple products there for an individual color option with different properties. You can do it from the variation tab.
For more information, you can see this tutorial.
Follow this tutorial step by step. This is the WooCommerece default functionality so You don't need to add any code or plugin for that.
Hope this will work for you.
Thanks.
I have products on my site with two configurable attributes: color & size. Right now, with default magento settings/coding the second attribute is hidden until the first is selected.
Example 1: Breaker Rashguard
I would like to show all options for both attributes without any selection being made, or by having a default selection for color on each product (by default, first option in list). I've seen this done on Gap's website:
Example 2: Heathered Oxford Shirt
I am using Amasty's Color Swatches Pro extension to replace the drop down selectors with color swatches. From what they can tell me, their extension does not rule this option and has no effect on any changes made to core code.
Can someone explain how to show my products like example 2?
There are differences between attribute and super attribute.
Attribute - You create the custom product options.
Super Attribute - The system automatically creates when if use one cofigurado product
In your case is super attribute that is enabled if the former is chosen, i believe that by css you will not get a solution, will have to analyze the source code.
When the first option is selected, it enables the second option if it has stock with those attributes.
Maybe if you do not use stock quantity with the configured products should display without disabling.
I am using WooCommerce in my project and would like to display variations in a similar style like http://www.e-rudy.com/en/products/detail/SN220724R1. They have a tab called "other colors". Is it possible to do that in WooCommerce?
Yes, it is possible, but you will have to add a custom template for that to be incorporated in the product tabs. In that template you should pull all the variations information corresponding to the main product.
If you don't do it as parent->variations products, you can still link them in the backend and show those in the template. In short, it's doable but you or someone else will have to code that part. It might also be possible to do it with wp-types views, but I have never used it so I can't comment.
Hope that helps to get you started.
Like this https://woocamp.com/product/classic-wordpress-shirt/ ?
When you click on the additional sizes, nothing visually happens. But the size is registered as a variation. Now, when you select a different color, the image actually changes and the image switches as well!
I did that using WooCommerce Variations and Swatches