DotNetNuke 购物车

发布于 2024-12-09 19:36:24 字数 650 浏览 0 评论 0原文

使用 DotNetNuke 的人是否有使用购物车下载内容的经验?

有一位客户使用 CatalooK 作为购物车。他们销售一系列车型的用户手册(一辆车有多种不同语言的用户手册),但做了一些测试,这是我们迄今为止发现的:

  • 如果我们拥有所有可下载的手册,那么处于“所有用户”角色的用户将拥有任何人都可以访问所有可下载内容
  • 当用户注册(从登录页面或通过从购物车购买产品)时,系统会自动为其创建一个用户帐户,并分配“注册用户”角色。这解决了所有用户访问内容的问题 - 只需将可下载项目的权限更改为仅显示“注册用户”即可。
  • 但是,任何人都可以在网站上注册并自动分配“注册用户”角色,因此无需付费即可访问手册。
  • 更进一步,需要手动将用户帐户添加到名为“下载”的新角色,该角色将是“下载”角色中唯一有权访问手册的用户。可下载手册
  • 这里的问题是,如果用户购买 1 个可下载项目并将他们添加到“下载”角色,他们还将获得所有其他可下载手册的访问权限 - 因为他们处于相同的角色
  • 所以我想可行解决方案是为每个车型创建一个新角色,以允许每个车型角色中的人员访问下载内容,这也意味着手动将购买的每个组的角色添加到该用户的帐户中。

任何人都有任何经验或替代方案以使其更加自动化和安全吗?

除非您购买了产品,否则基本上没有人可以访问下载。

Does anyone with DotNetNuke have experience with downloadable content with a shopping cart?

There is a client using CatalooK as their shopping cart. They sell user manuals for a range of car models (one car has multiple user manuals in different languages) but did some test and this is we found so far:

  • If we have all the downloadable manuals users in the ‘All Users’ role will have access to all the downloadable content by anyone
  • When a user registers (either from the Login page, or through purchasing a product from the cart), a user account is automatically created for them and are assigned the role as ‘Registered Users’. This solves the problem of having all users access to the content – can just change the permission for the downloadable items to only display for 'Registered User' only
  • However, anyone can register themselves on the website and automatically be assigned a ‘Registered Users’ role, therefore getting access to the manuals without having paid for them
  • A step further would be to require the manual adding of user accounts to a new role called ‘Downloads’ which would be the only users within the 'Downloads’ role to have access to the downloadable manuals
  • Problem here is, if a user purchases 1 downloadable item and they are added to the ‘Downloads’ role, they will also be given access to all of the other downloadable manuals – as they are in the same role
  • So I guess the workable solution would be to create a new role for every car model to allow people in each car model role access to the downloads – which would also mean manually adding the role of every group purchased to that user’s accounts.

Anyone have any experience or alternatives to this to make it more automated and secure?

Basically no body has access to the downloads unless you have purchased the products.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

已下线请稍等 2024-12-16 19:36:24

购买某些购物车后,会向您发送一封电子邮件,其中包含可下载的唯一链接,以便他们可以通过这种方式访问​​它。在您的情况下,您还希望他们在购买文档后能够随时在网站上查看文档,这是有道理的。

Catalook 有一个“您的订单”模块,该模块会显示您购买的文档或电子商品吗?这可能是一个选择。

但最坏的情况是,我想您可以为每个产品实现 1 个角色。听起来工作量很大!或者,进行一些自定义:]编码。

根据您的情况,我最常使用的购物车 DNNspot (我的) - 它与 Catalook 类似。您需要为每个产品创建一个角色。或者使用订单模块显示您之前的订单,该订单将链接到您购买的文档。

你的 SQL 有多好?您可以使用核心 DNN“报告模块”,如果您分析数据库和订单表 - 使用一点 SQL,您可以设置自定义报告,也许可以解决这个问题。

Upon purchasing some shopping carts send you an email with a unique link to the downloadable so they can access it that way. In your situation you also want them to be able to see the documents on the site at anytime after purchasing them, which makes sense.

Catalook has a 'Your Orders' module, does that show you the document or electronic item you purchased? That might be an option.

But worst case, I guess you can implement your 1 role per product. Sounds like a lot of work though! Or, do some custom :]coding.

Based on your situation the cart I use the most DNNspot (mine) - it would be similar to Catalook. Where you would need to create a role per product. Or use the orders module to show your previous orders which would link to your document you bought.

How good is your SQL? You could use the core DNN 'reports module' If you analyze the database and orders table - with a little bit of SQL you could setup a custom Report and maybe solve this.

失去的东西太少 2024-12-16 19:36:24

这是非常有趣且具有挑战性的。默认情况下,目录存储模块可能不支持此功能。如果您希望实现一个新的简单模块,可以使用一些简单的解决方案。

  1. 使用个性化:您可以使用 dnn 的个性化提供程序来存储用户产品。最初是空的,当用户购买产品时,您可以添加逗号分隔的产品 ID 列表来巧妙地​​维护它。检查该值以验证下载

  2. 使用自定义用户配置文件属性并以与上面 [1] 相同的方式使用它

建议的电子邮件选项当您希望允许用户仅通过电子邮件链接手动下载时,@Ryan 是不错的选择。但同样,您仍然需要验证是否允许用户下载该产品,您可以通过上述建议来实现。

如果您需要更多帮助,请告诉我,我在处理此类扩展的目录特定小模块方面拥有丰富的经验。

快乐编码

This is very interesting an challenging. probably, this is not supported by catalook store module by default. If you are looking to implement a new simple module, there are some simple solutions to this.

  1. Using personalization: you can use dnn's personalization provider to store user products. initially empty, and as user purchases the products, you can add comma separated list of productid to maintain it smartly. check that values back to validate downloads

  2. Using custom user profile property and use it in same way as [1] above

Email option suggested by @Ryan is good option when you want to allow users to download manually only via email links. But again, you will still need to validate if a user is allowed to download that product or not that you can achieve via the above suggestions.

Let me know if you need more help with this, I have good experience to deal with catalook specific small modules for such extensions.

Happy coding

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文