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

pcambra’s picture

Assigned: Unassigned » pcambra
Category: support » task
Status: Active » Needs work

No, 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!

cjscullyca’s picture

That sounds like it would work!

xibun’s picture

Hi, 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.

pcambra’s picture

Very 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

pcambra’s picture

I'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.

pcambra’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Needs work » Fixed

Hi

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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.