Hi,

I wondering how to hide add to cart if the user has paid for a file download already.

Kinda confused since I'm just make a custom page and the ubercart forum is a bit hard to find what I am looking for and not sure of the drupal keyword searches to use.

Thanks.

Comments

tr’s picture

Status: Active » Fixed

You can use hook_form_alter(). But you don't really need to do this - if your customer tries to add a file he has already purchased to the cart, he will receive a warning notice or be blocked from adding it to his cart. The exact notice/action depends on whether the purchase allows unlimited downloads or not.

Status: Fixed » Closed (fixed)

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