Woocommerce hide variation dropdown with only 1 option - css

I have some products with a specific attribute which most of the times has a single option.
If that is the case, i'd like to hide the option picker (drop-down) on my product page.
The attribute is called package size and it is set to one by default for all products. But it is confusing for the customer too see the option picker if there is only one option available.
I'd like to remove it for products with only one package size option.
Any ideas ?
Greetings

Related

Woocommerce: Autoselect Variation based on Attribute Filtering

I already managed to pre-select the first on-stock variation as soon as you load the single product page. Now I wanted to take a step further, I wanted to make woocommerce pre-select a variation selected through filtering on Archive pages and Shop page if a choice has been made obviously. Like: On shop page I filter Size M and after I select the product that has Size M avaiable, make it already selected and not the first one that could be like an XS. For instance I'm using the Stock Woocommerce Filtering Widgets with Attributes.
Is it possible?
Thank you so much!

Woocommerce show product combination without selecting all combinations

I'm developing an e-commerce using Wordpress and I'm having a problem with product variations. I have about 40 photographic works
and each of them has different options:
print support
frame color
dimension
Currently only if a user selects all the choices the image is updated and a price is displayed based on the choices.
I would like a user to see the updated image and price even by selecting one or two of the options.
Is it possible to create a product variation by setting only one or two variations?
Here is a sample product that I would like to change already from the first or second choice of the user. (at the moment the image and the price are updated only by setting all three variations).
product link -> https://www.italiansummer.it/product/addaura/
Thanks in advance for any help
Try using the gravatar form plugin.

Woocommerce: Customizing the availability of a category

I have many products nested within parent categories in WooCommerce.
I want to be able to apply a custom field where I can specify a time availability for categories as a admin feature only in Back end.
Theory:
Back end - On each parent category I will have this custom field where I can type or choose a time frame: for example 11:00-17:00.
Front end:
During this time frame, users will be able to browse all the products within that category.
Outside of this time frame all the products within that category will stay visible (but inactive) and they will be displayed greyed out or with a 'closed' banner (something like that).
Where can I start with this?
THE BEGINNING
You can start adding 2 plugins to add a custom time picker on product categories admin pages:
Advanced custom fields (ACF) plugin
Date & Time Picker for Advanced Custom Fields or also Date and Time Picker Field
This is just he beginning (and I can't confirm that is the best way). So In ACF you create a group and you name it:
Then you set the location (It's going to be a "taxonomy term" for "Product categories"):
Then In options you can chose it like a Metabox on the side (on backend):
After you add a new field and name it. You chose the field type and time only option:
[
Then now you are going to compile all the other options to fit your needs. Then you can save and add, if you need a 2nd field…
Now if you go to the WooCommerce Products Menu, under categories submenu, you will get this:
Now you can read a little the ACF documentation and also the wooThemes/woocommerce dev. documentation too.
You can customize WooCommerce overriding the templates and use hook filter and actions.
You will find in here on Stack OverFlow and over internet a lot of code, examples and tutorials, to begin and try to achieve your project. When needed you will post questions to get helped, with the code you are using telling what is working and what not…

Show All Configurable Product Attributes without Selection

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.

woocommerce: how to add new fields to variations form and show them on frontend

using last versions of wordpress, woocommerce and cheope (theme).
the question: how to
add some extra fields in variations form (text and image field types)
show them on frontend so that their values change accordingly on changing of attributes-select values.
e.g.: the site sells candles and uses variable products, for each kind of candle has several dimensions (with specific different prices), each of which has different duration.
The duration is an important element that I want the user to be informed about.
The same to show the available colors all together.
Unluckily in the standard variation form there is no field where I can insert these or other features.
some help please?
updated 07-August-2013
I succeeded in adding to variations form a new field displayed on back-end, as you can see here, by inserting the code you can find here (please see the comments too) in the function.php file of the theme.
Now, what I’m not able to do is get this field to display with each proper value on front-end (please take a look to the last comment in the above linked page).
Any tip or trick?
thanks
1)Add product attribute and check checkbox Used for variations and Visible on the product page
2)go to variations and add new and fill all fields price and stock must add on them
Your producr display variations and their data

Resources