Closed (fixed)
Project:
Ubercart
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 May 2011 at 18:19 UTC
Updated:
4 Jun 2011 at 19:21 UTC
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
Comment #1
tr commentedYou 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.