Closed (fixed)
Project:
Ubercart Terms of Service
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Mar 2010 at 21:42 UTC
Updated:
23 May 2010 at 15:50 UTC
Is there a way to control the ToS display based on the product service being purchased? For example if someone purchases a book or video there's no ToS but if someone purchases a membership there is a ToS?
Comments
Comment #1
pcambraNo, currently does not support this, but it is a great idea indeed.
I guess I can include a setting that controls in which product classes will the pane displayed and then check the cart/checkout if there is some of these types. Would this fit for you?
Thanks!
Comment #2
cjscullyca commentedThat sounds like it would work!
Comment #3
xibun commentedHi, I will not need this function.. but reading this issue it makes me think "Conditional action" - let it do the logic... saves you code and makes it more generic... see http://drupal.org/project/uc_conditional_payment for a good example.
Comment #4
pcambraVery interesting xibun, I'm not sure if there is already a conditional action for a order that includes one or more items for one product class, but definitely I will take a look to this option.
Thanks
Comment #5
pcambraI'm doing an update on this, I will try the approach of conditional actions, I found a conditional action that filters by product class in cart module (uc_cart_condition_product_class) but it does not allow to select more than one product class, I will replicate this one in the module and start from there.
Comment #6
pcambraHi
You can configure Conditional Actions in order to choose when the pane is displayed, by default you can filter by content type / product class, but I think it is extensible by CA.
Please test it from -dev release it will be refreshed soon, meanwhile you can checkout it from CVS.
Thanks for reporting!