By hanskuiters on
We have a new challange. A customer likes to sell pipes on their site. Pipes have various diameters, colors and lengths. Diameters and colors are no problem but the lengths are. People need to be able to order various pipe lengths. This should be every possible length from 1 cm up to 6 meters. The cart would look like:
4x pipe 550 cm
3x pipe 375 cm
Any idea how to produce this function? Is it possible to extend the product with a user generated variable?
Any help or suggestion is more then welcom.
Comments
If you're already using
If you're already using e-commerce, I believe there is a subproduct system that folks have successfully deployed for various apparel sites I've seen. If you're still fleshing out the site idea, Ubercart has a product attributes system akin to osCommerce that lets you assign attributes to products and enable options for those attributes on a per product basis that can modify the item's price, weight, and/or model number (SKU).
----------------------
Current Drupal project: http://www.ubercart.org
I am using e-commerce, great
I am using e-commerce, great module!. With subproducts one can only make specific productvariations, like different colors or predefined sizes. A buyer who wants a pipe in a sertain length, needs to fill in that length when he adds the pipe to the cart. The pipe goes per millimeter, I can't make 6000 subproducts to fill up 6 meter.
make the switch, if its not too late,...
to ubercart.
you won't regret it.
not for one nanosecond.
I don't say no to Ubercart,
I don't say no to Ubercart, but it is only alpha...
I'll set up an ubercart-site for testing purposes.
I tested it and it does very
I tested it and it does very much like what I need. But being only in alpha, it might not be smart to use it in production yet.
Another challenge: people can order pipes in various lengths, but the price must go per meter. I like to calculate the price adjustments based on the amount of meters per pipe. e.g if one orders 1 pipe 3490 mm, he needs to pay for 4000 mm.
check out how coupon.module works
I think you could adapt the coupon modules gc_form work to meet your needs. You'll have to modify it quite a bit of course. Then in the pipe_productapi you can use 'adjust price' to calculate the cost with your logic. You could also use coupon.module nodeapi (modified of course) to allow them to type in the exact length they want.