I have a shop selling furniture.
I make custom made beds.
I have a basic models, for example one of them:
- size = 9000
- lifting mechanism = no
- ... more + 10
- price = 15000 RUB

I need to let the user change these settings (except the price) and the price has changed.
I don't have these in stock - I make them. I don't need the stock balances!

I don't want and don't see the point in creating variations as usual. Because a lot of them. It will lead to terrible support!
I need about the same, which ensured the module commerce_pricing_attributes in 7.

I ask the Board how best to proceed in my case?

Comments

lukasss created an issue. See original summary.

lukasss’s picture

Issue summary: View changes
bojanz’s picture

There's no way to do this out of the box right now.

You can create a product attribute, attach a price field, then add an entityreference field (target: commerce_product_attribute_value) that references that attribute. However, selecting an attribute doesn't reload the form to allow an OrderProcessor to modify the price.
So we need the D8 equivalent of #1541886: Incorporate line item fields in the AJAX price recalculation on the Add to Cart form, or at least a custom widget for the entityreference fields.

bojanz’s picture

Title: Product attributes to increase the price » Allow order item fields to modify the product price on ajax
Version: 8.x-2.0-rc1 » 8.x-2.x-dev
Category: Support request » Feature request
Igor Mancos’s picture

+1 waiting this feature, will be save my life

drugan’s picture

It can be done in a custom module.

Let's say you have 10 attributes on your bed and all of them are optional. Just the bed attribute is required which on the form may have a single or multiple choices. So, one bed plus any attribute chosen by a customer will recalculate the unit (bed) price adding (or subtracting!) to it some additional amount based on attributes' value ID(s).

arturbaranok’s picture

There is a lack of this feature, are there any changes?

babipanghang’s picture

I'm working on a module for this. Maybe you can try it out sometime and let me know if it works for you?
It works for me now, but it's my first module, really pre-alpha. Be careful!

wqmeng’s picture

+1 Any update or plan on this feature?
Thanks

Ginovski’s picture

Going back to #3, how would this be implemented when choosing the attribute in the product view?
How can we display the referenced attribute for the user to choose it?

rossidrup’s picture

i have been looking for something like this now for 2 weeks...nothing comes close...there was a module for that in drupal 7. I used it on my commerce one. But it was discontinued.
I don't know how people are managing to price if they have 10 attributes with different prices where you could use simple formula +x USD per attribute

Patryk Padus’s picture

"I don't know how people are managing to price if they have 10 attributes with different prices where you could use simple formula +x USD per attribute"
I don't know too.
If there is 5 variation and 10 optional attributes (every with 5 values) then how I can show them for client and have different price base on selected values in optional attributes?

Important: need AJAX update product page and not only on product attribute
There is list of custom options that can be used to adjust price from this panel /admin/commerce/config/order-item-types/default (as the topic of this issue)

Releated to this issue on 7.x:
https://www.drupal.org/project/commerce/issues/1541886#comment-12263155
https://www.drupal.org/project/commerce/issues/2407501