Hi,
I've tried the patch but for some reason it failed, producing errors:
-bash-3.2# patch -p0 < multiplier.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urp uc_attribute/uc_attribute.admin.inc /home/jsmith/Downloads/drupal/ubercart_mod/uc_attribute/uc_attribute.admin.inc
|--- uc_attribute/uc_attribute.admin.inc 2010-07-11 19:33:31.000000000 -0600
|+++ /home/jsmith/Downloads/drupal/ubercart_mod/uc_attribute/uc_attribute.admin.inc 2010-08-17 09:37:28.716809308 -0600
I'm not really sure if this patch solves the entire issue for me, for I need some calculating flexibility enhancements to the ubercart price adjustments through attributes. Subsequently, I've posted the following on the Drupal payed support forum. Perhaps anyone here is interested? My post is here: http://drupal.org/node/1266948
Hope to hear from you!
I'm looking for someone to develop a module to enhance the Ubercart attribute price adjustment options. I'm confident a lot of others would be interested in this, and I'd love for the module to be contributed back here.
The issue is this:
When creating an attribute, one can only specify a price adjustment in the form of an increase to the price of a product. This makes it impossible to calculate costs based on dimensions, for instance. If you sell cloths, then the price should be width * height * sell price. Currently this appears to not really be possible with Ubercart.
An alternative to this is http://drupal.org/project/uc_custom_price in addition with http://drupal.org/project/uc_attribute_tokens.
There are two downsides to that approach. 1 - It works with a new input field on the product node form, where one needs to write blocks of php code. This is not suitable for most end users. 2 - it isn't compatible with http://drupal.org/project/uc_aac (or so I believe). Both of these components are a requirement for me.
To summarize, I'm looking for a module that (perhaps using the concept of uc_attribute_tokens) allows for a calculation to be entered into the attribute option's price adjustment field, and perhaps specifically also adds a width x height attribute. So the input could be provided in the form of a simple formula, like this:
Add attribute --> [name] --> add option [height x width] --> price adjustment (user input)--> (([width] * [height])/100) * [price] - [price]
Or
Add attribute --> [name] --> add option [calculation] --> price adjustment (user input) --> [width] * 0.3 * [price]
etc.
I hope this can be done in some way, I think there are some parts that can be used already. I found a patch in the Ubercart forum to allow for a multiplier adjustment, but the patch produced many errors on my site. However, it may be a valuable starting point: http://www.ubercart.org/forum/ideas_and_suggestions/4582/price_adjustmen...
Also, the attribute tokens (http://drupal.org/project/uc_attribute_tokens) appear to be another useful building block. In addition, the custom price calculations also seems to get very close. What I need however, is the three to come together and provide the much desired funtionality of using attribute price adjustments based on price, other attributes and simple (Excel like) formula inputs.
Looking forward to any replies!
