Woocommerce - way to give price to attribute? - php

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/

Related

Restrict Product Variables Selection Woocommerce

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?

Woocommerce - Add multiple prices to one product

Im looking for a way to add several prices for a single product in WooCommerce, I'm using version 2.6.11.
For example:
Product: Beer Fest
Prices:
Pre-sale: $10
Same-Day: $30
VIP: $100
Could anyone point me on the right direction?
You can use Variations.
Just declare a Product as "Variable", define an attribute as "Prices" and each value of that attribute is going to be "Pre-sale|Same-Day|VIP".
In Variations just click in "Use Attributes as Variations", That way you can declare a price for each attribute.
Pre-sale : $10
Same-Day : $30
VIP : $100
A quick way of how it will display.(It may vary depending on your theme)
I believe you'll want to make your Beer Fest product a "variable Product". This allows for variations in price, images, etc.
Documentation for WooCommerce Variable Products:
https://docs.woocommerce.com/document/variable-product/

Sylius - How to define product with options that have impact on price?

In Sylius I can create variant of of a product, for instance 3 sizes of a t-shit, each size have different price. This is a nice solution if I have a product with one thing that has an impact on a price.
What about situation, where I have a Tshirt which have many options that have an impact on price, like:
Size
Material
Color
and few more
I cannot create product with variants, of each configuration. It should be for example in a way, that this particular option has an impact on price by adding to it some amount of money or %. This is like Adjustment, I think. But how to use it for products?
----MORE DETAILS--------
I need to define a product with some options that have impact on price, like Adjustments. Then when User adds product to cart, he/she chooses some options. Each of these options changes the product price. So base product has price $20. But when user adds it to cart, change 3 parameters, then the price should be $35. And this product with $35 price should be added to a cart, and then to an order.
You can consider listening to product or variant post create event, then in your listener check what options are set and adjust price according to options.
Maybe You can use custom PriceCalculator which must use CalculatorInterface.
In this class could be implemented all custom logic which depend of product.

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