Restrict Product Variables Selection Woocommerce - php

This relates to WooCommerce Product Variations.
A client has only one product (a cushion), it has one attribute (fabric type) with many variations - over 50 fabric type swatches. They would like to display the fabric variations sorted into groups to make them easier for customers to choose from (example: floral fabrics, baby fabrics, block colour fabrics).
Does anyone know if there is a way to do this?

Related

Woocommerce - way to give price to attribute?

So I am making a large Woocommerce shop for a customer, now they sell motorcycles and people can change all kinds of aspects about their vehicle (color, seats, saddle bags (optional), etc.).
Now creating variations from all these attributes (180 variations) is alot of work if I have to price each and every single variation (yes I know I can set a price for every variable at once), but isn't there a way for shopkeepers to give a price to their attributes so that when a variation is created with a certain attribute the product takes the standard price and adds the attribute prices?
There is no native way of settings an price on attributes. The only way to do so is installing an extra addon: https://wordpress.org/plugins/markup-by-attribute-for-woocommerce/

Want to add a checkbox to product page on woocommerce/measurement calculator plugin

I want to add a checkbox to products in certain categories in my online shop, but when the checkbox is ticked it will need to add 'x' amount to the total of the product.
To complicate things further, the product is total is calculated by (area x product price) after the user has inputted their required Length and Width, the checkbox will need to use the area value and then multiply the area by 2.5 and then add that sub-total to the grand total of the product. It's an add-on to the product. If you catch my drift?
Here's a link to a sample product page. The products are carpets, so when you to tick the checkbox, the carpets will have a stain protection applied and will be charged for.
Is there any snippet of code that could help me here?
So it was a relatively easy solution. It was just a case of turning the product into a variable product and using attributes to make a "yes or no" drop-down box, with one of the options having an increased price. This makes the price change before the area is calculated, unlike the 'product add-ons' plugin, which adds on after.
I can't believe it took me two weeks to find the answer to this.

Magento: Add multiple configurations from configurable product at once to cart

I have have a configurable product created with "color" configurable attribute. Also, this product has some custom options (like "size")
I need to add multiple configurations of product to cart from product view. The purchaser can add up to 5 products at once. One example:
In the product "T-shirt" page, customer sets this order
1 unit of Red size L
1 unit of Blue size S
3 units of Blue size XL
I've been looking for "Magento add multiple products to cart" and I found some topics, but all related to category page (products list). I do not expect anyone write a step by step on how to do, but if somebody can give me a link that talks about the subject it will help me.
Thanks in advance.

Magento - How to create 1 Product that will essentially link to 2 others?

My questions is basically I have 2 products that can be sold separately and together.
What I want to do is take these 2 individual items, create a new product in Magento for it with a new image that will show both of them together for a combined price. When this particular item is sold then it will reduce the qty from each of the individual sku's that were created. Is this possible?
As an example,
SKU 1 - Wii Remote - $30
SKU 2 - Wii Nunchuk - $15
SKU 3 - Wii Remote + Nunhcuk - $45
So when sku 3 is sold it will reduce the qty of sku 1 and 2.
Thank you
Maybe a "bundle" could help you?
http://www.magentocommerce.com/knowledge-base/entry/creating-a-bundled-product
I don't know for sure, because I have never used Magento. I just Googled your problem.
A bundle product will do if your rules are within these:
Points to Remember
A Bundle is a “build your own” product type
Bundle Items can be Simple or Virtual products, but without Custom Variants and Options
The Price View of a Bundle can be set to display a price range or “As Low as”
The SKU and Weight of a Bundle product can be set to either “Fixed” or “Dynamic”
Items can have either a preset or user-defined quantity
Items can be shipped together or separately
Bundle product data cannot be imported into your catalog.
Means : bundle product cannot have a configurable product within.
so if your SKU1 and SKU2 are not configurable or rather just simple or virtual then you can create a bundle product and sell the way you have stated.
I don't necessarily agree with the way magento wants us to sell our "Bundles"
It lets users decide which products they want to combine, it's really similar to a "Grouped product".
To me a bundle is predetermined by the store owner, If A is Bought together with B & C, then the customer saves X amount of money... It's not up to the customer to decide what's part of the bundle.
SO I ended up creating the Bundle, adding all the products I want in the bundle as a "Multiple Select", ticked them all as "Default",
and I'm hiding the options with CSS, only showing the price and the add to cart button (Every product has it's own class in ): body.product-name #product-options-wrapper { display: none }
So of course if you have thousands of bundles then this won't work for you.
I'm really happy with this solution because 1. It updates the inventory & 2. All of the SKUs are displayed on the invoice! (For me they are also lot numbers)

Grouped Product with Fixed Sub-item Quantities

I'm working on a Magento site that has a number of simple products. There's also a "holiday package" which combines several simple products into one, at a discounted price:
6 of Item A
2 of Item B
2 of Item C
2 of Item D
The "grouped" product type is pretty close to what I need - it allows each item to keep track of it's own stock, and when it comes time to ship and estimate packages, it tries to pack the containers using the weight/volume of each individual item. (This shipping aspect is very important, as we need to pack the boxes as efficiently as possible - using a simple product with an estimated size for all items may not work).
However, we do not want the customer to be able to choose the quantity of each item. The customer should instead be asked to choose how many holiday packages they would like.
Is a grouped product the best approach? Is there a better way to handle this?
In Magento 1.5.1, the best solution should be the bundle product. There, you can define a price, a quantity for each item in the backend. You can block the user to change the quantity for these items, not for the bundle product (you could too if you want but it's not your need here).
We do like that for some of our product. Check the screenshot to see an example of configuration

Categories