Active
Project:
Ubercart Product Actions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2013 at 20:49 UTC
Updated:
5 Jun 2013 at 16:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
SeanA commentedThis sounds like a reasonable feature-- not Token support, but the idea of using one of the price values as a base for setting one of the other price values.
I don't think Token support would be useful to accomplish this. It should be pretty easy to add an extra option field to the 'action selection' form, for choosing one of the price values to use as a base value.
Comment #2
jlockhartYeah you're right Token would be overkill, selecting one of the other prices makes more sense.
So running with that, and pie in the sky thoughts, what do you think about this.
Modify the action so that there is only one: Update Ubercart Price action that looks like this.
That way the user could select the price they want to change, the base price to use (defaults to sell price, and maybe jquery the base to match the modify price when it changes), and how they want to change it.
Additionally, for Ubercart stores with wholesale or discounted pricing I've been using the Ubercart Price per Role module, which provides additional prices based on allowed roles. It would be cool, and probably not too difficult, to check if that module is installed and provide those price fields in the drop down as well. This would make it incredibly useful for managing an Ubercart storefront pricing system. i.e. like this.
What do you think? I'll pull the module down and start looking at how it works and try to help work on this.
Comment #3
SeanA commentedCombining the price adjustments into a single action makes sense, however, what about existing sites? This would spring a change on them, and it also makes the price change form more complicated. So I'm thinking it might be better to create a new action "Update a price based on another price value" using this new form.
Supporting Price-per-role is a good idea too. That should probably be tackled separately, when that module gets Views support. I believe there is some progress on Views integration for UC Price Per Role, but it hasn't landed yet. See #646724: Views integration (Ubercart Price Per Role). I haven't looked at the latest patch there.