Problem/Motivation

As an admin user, when adding a new order using the admin interface, I am forced to add a unit price for a new Product Variation. This is an issue because I am made to override the unit price already set in the product variation.

Proposed resolution

As a user, I should be able to add a product variation, and it should auto-populate the default unit price based on what's already set. I should have the option of editing that unit price if I wanted to.

statueinca

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

acromel created an issue. See original summary.

acromel’s picture

Issue summary: View changes
FileSize
14.89 KB
swickham’s picture

Assigned: Unassigned » swickham
swickham’s picture

Status: Active » Needs review
FileSize
4.07 KB

Really struggling to find a nice solution for this one. Since the autocomplete options are handled with jQuery's UI adding unintended functionality here feels "hackish" no matter how I go about doing things.

It all feels like a lot to go through to get the unit price field filled in. Going to ask around and see if anyone has some more clever methods of accomplishing this that I've completely missed on.

Here's a patch with a partway solution where at least the product's price is now shown with its label when selected from the list.

bojanz’s picture

Status: Needs review » Closed (duplicate)

This is a duplicate of #2833249: Allow providing a custom order item price. Please see the suggested implementation there, and let's discuss.