Giter VIP home page Giter VIP logo

cartridge-downloads's People

Contributors

ryneeverett avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cartridge-downloads's Issues

SHOP_CHECKOUT_FORM_CLASS setting is deprecated

From cartridge:

        warn("The SHOP_CHECKOUT_FORM_CLASS setting is deprecated - please "
             "define your own urlpattern for the checkout_steps view, "
             "passing in your own form_class argument.")

Promotional Downloads

It seems like a common pattern to provide a free download when a user fills out a form, such as a whitepaper.

A start would be tacking on a "Promotional Downloads" inline to mezzanine.forms.admin.FormAdmin, adding a handler in the spirit of order.handler, and providing a link to the download index in the spirit of templates/shop/complete.html.

Travis is Flaky

For no apparent reason, the tests sometimes finish without error but the process fails to exit until the job times out.

Download Only Option Index Lookup Performance

In is_download_only we're figuring out the option_index on a lot of requests now when it doesn't really change. We should either calculate it at init time or make it a cached function.

Views folder needs __init__.py

Hey, thanks for your work here, this is exactly what I need! There were some issues with view importing until I added an __init__.py into the views folder, just a heads up. Looking forward to using this. I'd be glad to help contribute once the project I'm launching cartridge-downloads with gets deployed.

Readme typo

README.md says to add a SHOP_OPTION_TYPE_CHOICE called 'Download' in order to get download only type functionality, but utils.py looks for a type choice called 'Downloads'. Perhaps allow both to catch potential typos, or fix in the Readme.

I don't mind making a branch, implementing these, and making a pull request once I get my shop running.

Support Alternative Django-DownloadView Views

Part of my motivation for choosing django-downloadview over django-sendfile was the multiple options for file storage. (I now believe django-downloadview is better documented and maintained.)

However, by the time I finished the initial alpha release, I realized I'd completely coupled everything to the Download model's file field, so it wont be as simple as swapping out the view class. However, I think it can still be done by making Download an abstract base class, making a subclass for each downloadview view, and choosing them via a config option.

Set shipping to zero for download products.

Perhaps this should be optional? The use case for not doing this is if the download product accompanies a real product. For instance, the customer buys a cd and gets to download the content immediately. In fact, perhaps I've already screwed up this use case by setting the order to "processed" for download products. Perhaps these could both be configured by adding a OneToOneField to each download product with a single boolean digital.

Contradictory INSTALLED_APPS Order

In order for download products to work, we must be before cartridge.shop in order to override the shop/complete.html template.

In order form downloads to work, we must be after mezzanine.forms because page processors are executed in reverse order.

Use downloads_index as an include.

It should still be accessible as a standalone view when linked from the email confirmation, but it should be an include in the existing confirmation template immediately after the transaction:

  • /pages/form.html (in the request.GET.sent block)
  • /shop/complete.html (get rid of the link and probably put it at the bottom below the invoice, etc.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.