Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Require Login For Digital Products Rate Topic   - - - - -

 
  • shanower
  • Member
  • Trial users
  • Join Date: 27-Jul 19
  • 20 posts

Posted 29 July 2019 - 03:12 PM #1

I run a digital marketplace and I am planning to move to CS Cart, but one thing that is making me rethink about this move is that any user can share a link from a product that they bought.

 

In other ecommerce plataforms we have an option to require that the user trying to download a file to login and if the user is not the same that bought the product he will not be allowed to download. In CS Cart this seems not to be possible.

 

Require that the user login is a way to protect the digital files from unauthorized download.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20934 posts

Posted 31 July 2019 - 05:30 AM #2

It is possible. Looks like you mixed up attachments with downloadable products

 

Please check the following articles:

 

https://docs.cs-cart...tach_files.html

 

https://docs.cs-cart...wnloadable.html


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • shanower
  • Member
  • Trial users
  • Join Date: 27-Jul 19
  • 20 posts

Posted 02 July 2020 - 02:10 AM #3

Hi!

 

I apologize, I had not seen your message :)

 

I checked both links and maybe I explained it wrong.

 

When a customer buy a downloadable product, he receive a link where he can download the file. The issue is that any user with this link can download the file even those who didn't buy it. This doesnt make too much sense.

 

The most similar way of trying to prevent this is to put a expiration time on the link, but it is still a bad method, as this makes unfeasible marketplaces where the customer can download the file several times like due to updates.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20934 posts

Posted 02 July 2020 - 05:36 AM #4

But how can customer who did not buy a product find download URL ?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • shanower
  • Member
  • Trial users
  • Join Date: 27-Jul 19
  • 20 posts

Posted 02 July 2020 - 01:06 PM #5

But how can customer who did not buy a product find download URL ?

 

One user that bought the product can share his link to other users.

 

Okay, nothing prevent the client upload the bought file in a directory, but one thing is when the customer does this outside your site, another is when your own site already allows it.

 

This is a strange thing from CS Cart, all the other tools I worked with at least had a setting to force users to log in to download the file. As this is my first time with CS Cart, I am not sure if this can be easily customized.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20934 posts

Posted 02 July 2020 - 01:07 PM #6

One user that bought the product can share his link to other users.

 

In this case he can download the file and share it with others. Isn't it?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • shanower
  • Member
  • Trial users
  • Join Date: 27-Jul 19
  • 20 posts

Posted 02 July 2020 - 05:16 PM #7

In this case he can download the file and share it with others. Isn't it?

 

Yes, as I said nothing prevent the client to upload the bought file in a free open directory to everyone download, but one thing is when they do this is another website, other is when your own website can be used by this. I think the authors of the themeforest would not be happy if anyone could download the files directly from the site, even though there are a lot of sites where you can download the themes :)



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20934 posts

Posted 03 July 2020 - 05:45 AM #8

The easiest way to make authorization required is to open the following file

 

app/controllers/frontend/orders.php

 

and replace

if (empty($ekey_info)) {

with

if (empty($ekey_info) || empty($auth['user_id'])) {

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • shanower
  • Member
  • Trial users
  • Join Date: 27-Jul 19
  • 20 posts

Posted 03 July 2020 - 03:00 PM #9

Thanks! I will test later.

 

Is there any way I can make a donation for help?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20934 posts

Posted 06 July 2020 - 05:51 AM #10

Thanks! I will test later.

 

Is there any way I can make a donation for help?

 

It's not necessary. Thanks


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)