Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-basket 0.4.4

    Download button

    No screenshots available
    Downloads: 194  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ivan Gromov | More programs
    GPL v3 / FREE
    July 20th, 2012, 21:57 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-basket description

    A Django shopping cart

    django-basket is a Django app that provides a shopping cart for Django sites.

    Installation:

    1. Add basket to INSTALLED_APPS

    2. Add basket.middleware.BasketMiddleware to MIDDLEWARE_CLASSES

    3. Add basket to urlpatterns in your urls.py:

     urlpatterns += patterns('', (r'^basket/', include('basket.urls')))

    4. Sync your database:

     ./manage.py syncdb

    5. Do not foget to copy or symlink media/basket to your media folder.

    Usage:

    Load basket tags:

    {% load basket_tags %}

    Add panel with summary information to template (probably, you want to include this panel in every page):

    {% include 'basket/panel.html' %}

    In order to basket javascript works, you have to add jQuery and basket.js to all pages with order buttons:

    < script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" >< /script >
    < script type="text/javascript" src="/media/basket/js/basket.js" >


    Finally, at the item page

    {% add_basket_button object %}

    Where object is avaiable to order.

    Available settings

    PRICE_ATTR

     Default: price

     All objects in basket should have this attribute for price calculations. Otherwise price will be 0.0

    BASKET_FORM

     Default: basket.forms.DefaultOrderForm

     This form class used for order confirmation. By default it has required fields: customer name, customer phone, delivery address, convenient time to call and optional textarea for comment. All information stored in order comment in admin interface.

    BASKET_OPTIONS_USE_KEEP

     Default: True

     If set to True, user will see checkboxes near all items at basket page. If checkbox is unchecked, item will be deleted from basket.

    BASKET_OPTIONS_USE_DELETE

     Default: False

     If set to True, user will see delete icons near all items at basket page. When user click on icon, item will be deleted from basket by AJAX request and basket page will be automatically updated.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django shopping | shopping cart | Django basket | Django | shopping | basket

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM