Price by multiple attributes in Commerce I need to dynamically alter a price based on the value of two attributes in Commerce. I'm quite new to commerce so not exactly sure how to achieve this. Using rope as an example, the price needs to vary based on both the length of the rope and it's diameter. I know I could create a line item for each length if that was the only variant, however due to both length and diameter being variable this becomes more of a challenge.

Anyone have any ideas?
It will probably have to be done with custom Rules.  If the price is calculated predictably via different measurements/attributes, you can use the Rules Event of Calculating Sell Price of Product.  Conditions could vary, but a custom Action or Action set is probably going to be needed to calculate the price, and then set the price to the calculated value.

Maybe check out this link for an example of dynamically changing product prices.

http://www.drupalwoo.com/content/blog/drupal-commerce-and-rules-changing-product-price-dynamically