lesmith Posted March 4, 2008 Share Posted March 4, 2008 Hello. I am a newb so be gentle . I have added a download and have ticked the options [clients only] & [product download] So this now becomes a product which I can sell ie a template. When I run a dummy purchase without completing the transaction, ie a Bank Transfer. I can still in my client area with the product being pending able to download it. This is obviously bad. Is there no setting which will not let me manually release the download or at least will not allow until the Payment status is active. . Hopefully you can advise . ta in advance 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted March 4, 2008 WHMCS Developer Share Posted March 4, 2008 Hi, You could try editing the downloads template to have an if statement. eg (not exact more example) {if !($orderstatus eq "pending")} show download {else} download pending {/if} 0 Quote Link to comment Share on other sites More sharing options...
lesmith Posted March 4, 2008 Author Share Posted March 4, 2008 Ok Andrew I can do that no problem. seems a little silly to let someone download without paying. ta 0 Quote Link to comment Share on other sites More sharing options...
lesmith Posted March 4, 2008 Author Share Posted March 4, 2008 I have done the quick fix and if anyone else wants the code please see below. Edit the clientareaproductdetails.tpl. Look half way down to the code below. {if $downloads} // All Download Code Here {/if} then I added my bit ie. {if $downloads} {if $status neq "Active"} {* do not show download until service is active *} {else} // Download code {/if} {/if} 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 4, 2008 WHMCS CEO Share Posted March 4, 2008 This doesn't fix any problem. While the customer can see the files they would get access to when the status becomes active, they cannot actually download them. If they attempt to while it's not active, they get an error such as "Access Denied - You must purchase the associated product before you can download this" Matt 0 Quote Link to comment Share on other sites More sharing options...
dr2web Posted March 10, 2008 Share Posted March 10, 2008 I am new at this as well, so please pardon my ignorance. I am not sure if I have everything setup correctly. But the only way that I have found to be able to get the customers access to the download is to uncheck the box that basically enables it with a product... Here is how I set it up. Under products/services I have it listed as other, and then I have a category for downloads. I have the download listed as a product, and then I go in to other and associate the download with the purchase... Is that correct? Because when I do that and the client pays, it still does not show them the download. The only way that I have found to do it is to uncheck the box for it not to be associated to a purchase... Now all of the downloads show up for everyone. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.