Make product attribute non clickable - Woocommerce - woocommerce

I have a One Size attribute which is set as default in many of my products and I'd like to turn that attribute non clickable in both archive page and product page, so customers will not get confuse and try to select it (as it already is)

Related

How to set catalog_visibility in basic Woocommerce plugin

we need to set the catalog_visibility field (as named in postman) in woocommerce (basic plugin), but it does not seem to work the way we go about it. In wordpress it is the setting under single product on the right side, just below “published on”.
We use an ERP system to push the products to our woocommerce shop and need to find the correct article attribute (we then connect the ERP field with the woocommerce attribute and magic happens ... normally)
When I check the product with postman, the field we want to set is called catalog_visibility.
We thus created a field in our ERP with the exact values visible/catalog/search/hidden as we see in postman and tried assigning the article attribute catalog_visibility and also _visibility (but I think this one is for the extension plugin also called "Catalog Visibility"). Neither one worked.
Interestingly, we found out, that both of the attributes we tried to use (_visibility and catalog_visibility) are now shown on the shop's product page (as a table) under a tab called “additional information”, with the value we tried to transfer.
In the backend it is pushed in to the product “properties” tab.
So it seem the values are pushed into woocommerce, but not where and how we want them to.
Has anyone any idea, which attribute (the name) we need to use, to set the visibility of the product?
Thanks!

Disabling missing WooCommerce product sizes

I have a WordPress site. I want to underline the sizes that are not available in the warehouse on the product page.
First of all, I changed the type of display from the combobox mode and then added a class with javascript for the non-existent sizes, but it only happens for the first size.
I need to check whether it is available or not according to the ID of each size and disable it if it is not available

Attributes not showing to choose in woocommerce

At my product page, when I go to Product Data, select “Variable product” and then click on “Variations” I get the message, “Before adding variations, add and save some attributes on the Attributes tab.”
enter image description here
So… I went to the Attributes tab, created an attribute titled ‘Colors’, and ‘Size’.
enter image description here
With those saved, I went back to my saved product, went back to “Product Data”, selected “Variable product” and clicked on, “Variations”
But there I again see that message "Before adding variations, add and save some attributes on the Attributes tab.".
After you've added your global attributes (Products › Attributes), you still need to select those attributes from the Attributes tab on the product edit page. You'll then be able to set up variations for a product.
Go to: Products › Add Product (or edit an existing one).
Select the Attributes tab in the Product Data. Use the dropdown menu to choose any of the global attributes that you’ve created.
Select Add to make the attribute type available for variations
Select the terms that you want to use for this product's variations (I've selected Black and White in the screenshot below).
Check Use for variations
Click Save attributes
You can now set up variations within the Variations tab

Insert a full woocommerce product page into another page

No, I just couldn't find this anywhere else. (everything but)
Does anyone know how to (without using an iFrame) insert a full woocommerce single product page within another page (so it appears in it's entirety).
What I'm looking for is a way to create a new page, type some content (for example, a headline) implement some code (shortcode etc) and have the full woocommerce simple product page of my choice appear in its entirety at that point, allowing me to continue to add content thereafter.

What's the best the approach to add an extra attribute field in Drupal Commerce?

I'm using Drupal Commerce and i have a product type called "Painting" this product type does not have an attribute fields, I'm using inline_entity_form module so i can show the product add form within the node add form for my product display content type.
The product in the site is the painting itself, it may come with a frame or without a frame (the user can choose) and the price will change based on the user's choice, how can i add such field without using attributes fields? as attributes fields requires that the site admin to add many products and put them in one product display, i just want to keep it simple to the site admin, to make him add the product in the same way he adds a node.
Thank you.
This sounds like you just need two variations:
Product one, without frame
Product two, with frame
Each variation has it's own price and title.
You can get by without using an attribute field. Drupal Commerce renders a dropdown when there are no attributes and allows user's to pick from the product variation titles. Since you are using Inline Entity Form this should be seamless for the site admin.

Resources