Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | order_management-2893996-4.patch | 4.07 KB | swickham |
#2 | statue.PNG | 14.89 KB | acromel |
Comments
Comment #2
acromel CreditAttribution: acromel at Acro Commerce commentedComment #3
swickham CreditAttribution: swickham at Acro Commerce commentedComment #4
swickham CreditAttribution: swickham at Acro Commerce commentedReally 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.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThis is a duplicate of #2833249: Allow providing a custom order item price. Please see the suggested implementation there, and let's discuss.