clasil Posted November 10, 2015 Share Posted November 10, 2015 HI Guys, How could i get a direct link to customer product download page. So basically customer will click on this link and will go directly to his download page and see all his files. Thanks cs 0 Quote Link to comment Share on other sites More sharing options...
clasil Posted November 11, 2015 Author Share Posted November 11, 2015 Hi guys, Maybe the other solution will be to create a new page with the user download page code and then call that page directly? i dont know.. any help will be very welcome guys Cs 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 11, 2015 Share Posted November 11, 2015 Cs, do you need to include it in emails or what exactly? 0 Quote Link to comment Share on other sites More sharing options...
clasil Posted November 11, 2015 Author Share Posted November 11, 2015 Hi sentq, Basically when user login to our whmcs we want to add a link for easy access to the download page.. See at the moment you have to go to the product page and the you have to click on the download tab and then you see the downloads files.. we want a direct link to the download file page I hope that is more clear Thanks for the help Cs 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 11, 2015 Share Posted November 11, 2015 Basically when user login to our whmcs we want to add a link for easy access to the download page.. where do you want to add the link? navbar, sidebar or somewhere else? See at the moment you have to go to the product page and the you have to click on the download tab and then you see the downloads files.. we want a direct link to the download file page I don't have any product downloads on my dev site (nor on the WHMCS demo site), so when you follow the above path to the download tab, what's the URL in the browser (the part after your domain) ? there would be a way to use hooks to do this, but hopefully just using the URL will be simpler! 0 Quote Link to comment Share on other sites More sharing options...
clasil Posted November 11, 2015 Author Share Posted November 11, 2015 where do you want to add the link? navbar, sidebar or somewhere else? hi brian the link will be in the navbar from a custom template, no problem with that .. the issue is the url see below I don't have any product downloads on my dev site (nor on the WHMCS demo site), so when you follow the above path to the download tab, what's the URL in the browser (the part after your domain) ? there would be a way to use hooks to do this, but hopefully just using the URL will be simpler! here is the link /clientarea/clientarea.php?action=productdetails&id=5 Thanks brian! Cs 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 11, 2015 Share Posted November 11, 2015 Hi Cs, I can see one immediate problem that you're going to run into... in the client area, the downloads page is product specific - so will only show the downloads available for the selected product, not downloads for all products... so if a client has more than one product with downloads, they'd need to view each separately... so adding a generic link in the navbar wouldn't work (unless you could guarantee that your clients had only one product with downloads). I think your second suggestion of creating a dedicated page for downloads would be easier to implement - so add a link to the navbar in the usual way (hook), and then for your new downloads page, you'll need a second hook that will query the database (or use the classes) to get the downloads available for that client and pass the array back to the page... I would imagine you would need to reference a number of different tables to get all the required info for your page. 0 Quote Link to comment Share on other sites More sharing options...
clasil Posted November 11, 2015 Author Share Posted November 11, 2015 Hi Brian! I see what you mean... Probably by utilizing the Get products API http://docs.whmcs.com/API:Get_Products . but we have to create a specific page and get that linked to WHMCS. to be honest am bit lost in this one... any help will be appreciated. Thanks CS 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.