Ubercart Custom Price Module Can Be Used for Non-Price Adjustments Too

This post is:
  • Techy

By Matt Winters - Posted on 07 July 2010

This is just a really brief post about the Ubercart Custom Price module (http://drupal.org/project/uc_custom_price). As the name suggests, it was primarily intended for custom adjustments to the price of a product. This is can be used in many different ways, whether its using CCK textfield values, Ubercart product attribute values, or in other ways. For example, one could count the number of letters in a textfield and then alter the price or use the value of an product attribute.

But something interesting that is not obvious is that you can use the Ubercart Custom Price module to make alterations to things other than the price of the product. For example, instead of using $item->price you can use $item->qty changing the quantity of products added to the cart. So you can use attributes, CCK fields, and etc. to change things like the quantity - it's not just for price calculations.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.
Sign up for our newsletter for periodic information on Drupal, Ubercart, SEO, business marketing, and more. Please enter your email address below. You can unsubscribe at any time and we never share your email address.
If you are searching for an answer to a particular question and do not find the answer you need on this page, please feel free to Contact Us With a Question or Suggestion for a post.
Matthew Winters with Web New Castle

Web New Castle is led by Matthew Winters, an online community professional by background and now specializing in Drupal. See more about Matt Winters.

Drupal Theme Development Assistance - support through email, phone, code - $125