Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I need UC support a "Call us" for product price. Let me know that this already supported by UC (and how to enable this feature).
Regards.
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedYou might be able to use http://drupal.org/project/uc_free_order. Please remember that Ubercart support is limited to the support forums.
Comment #3
selwynpolit CreditAttribution: selwynpolit commentedI want to make ubercart show "Call for price" if an item is priced $0. How can I make this appear in the taxonomy type listings that come with ubercart?
I found the function theme_uc_product_price($price, $class, $no_label = 0) in uc_product.module which I could hack to fix this, but I know that is not the best way to go. Can someone please advise me how to override this function?
thanks
Selwyn
Comment #4
selwynpolit CreditAttribution: selwynpolit commentedok, so I got this working partially. This function allows me to show "call for pricing" when the node is displayed. This is what I did. I created a module named martin.module, enabled it. Here is the main function
This allows me to set the price to zero for an item and when someone views it as a node, it shows "call for pricing" in both places where a price would normally appear. It also removes the add to cart button so people can't inadvertently try to add the item to their cart. It also adds classes that allow you to style those messages as needed.
I also added a function to the template.php in my sites/all/themes/acquia_marina_martin theme folder. It looks like this:
Note, it is a copy of the theme_uc_product_price() function from ubercart, with some mods...
I hope this benefits someone. I sweated a little blood and got some help from someone on this. Now - does anyone have any suggestions how to remove the add to cart from these lists?
thanks
Selwyn
Comment #5
selwynpolit CreditAttribution: selwynpolit commentedoops - Ubercart rc3 just came out and my fix broke...
Comment #6
rszrama CreditAttribution: rszrama commentedComment #7
rszrama CreditAttribution: rszrama commentedSorry, meant to move this back to closed. Something like this should be accomplished through a custom module. We won't be changing this behavior in core right now.
Comment #8
iantresman CreditAttribution: iantresman commentedModule "UC Price Visibility" seem to do this.