"Call for Price"

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

One of my clients has several large-scale items that have complex configurations that he feels would be difficult for the end user to figure out. So he wants to put "Call for Price" instead of an item price..

If you can give me some pointers I can prob implement this just not sure where to start?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: "Call for Price"

My hunch is you can use a few Drupal hooks to add a checkbox on the product form to specify it as being a "Call for price" item. Then you can alter the contents of the node prior to display so the price says that instead of a dollar value. I'm not exactly sure how that would work on the catalog pages, but it's a start. Eye-wink

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: "Call for Price"
Assigned to:Ryan» Lyle

Maybe there should be a hook_product_alter() hook to make it easier for modules to change the product fields. With hook_nodeapi() you have to make sure that your module comes after uc_product, which is really unlikely without changing the module's weight. And that's still a pain to do, even when you know how.

futurist's picture
Offline
Joined: 08/08/2007
Juice: 114
Re: Re: Re: "Call for Price"
Assigned to:Lyle» futurist

Has anyone managed to implement the "call for price" functionality in UC? I also need this for a shop and would be very grateful for some guidance...

selwynpolit's picture
Offline
Joined: 03/27/2009
Juice: 22
so far..
Assigned to:futurist» selwynpolit

Here is what I have so far. It works ok for nodes and teasers but doesn't work any more (since rc3) for the product listing table that ships with ubercart.

http://www.ubercart.org/forum/support/10519/call_pricing_and_add_cart_bu...

Selwyn