Skip to content

It is a open source cart developed using Python language to manage cart in e-commerce applications. It includes Product option support, Multi discount support, Multi tax support(specific to product as well as general taxes), Multi currency support, tax exclude and Include total, shipping method and charge.

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

veeshi/shoppingcart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

================================================================================
shoppingCart
================================================================================
shoppingCart is a open source cart developed using Python language to manage cart in E-Commerce applications.

Majour Feature(s):
===========

1. Product options support.
2. Multi discount support.
3. Multi tax support(specific to product as well as general taxes).
4. Multi currency support.
5. Tax Exclude and Include total.
6. Shipping method and charge.
    
Important(s):
========

    1. Tax dictionary should be like this :
    --------------------------------------------------
        * {'amount': 10.00, 'type': 'percentage'} OR
        * {'amount': 10.00, 'type': 'fixed'}
    
    2. Option dictionary or list of Option Value should be like this :
    -------------------------------------------------------------------------------------
    
        2.1 To pass dictionary in attribute `options` of `add_item` method of `Cart` object should be like this :
        --------------------------------------------------------------------------------------------------------------------------------------------
            * {1: {2: {'price': 10.00}}} OR        
            * {'color': {'red': {'price': 10.00}}} OR
            * {option_object: {option_value_object:{'price': 10.00}}} OR
            * {option_object: option_value_object}
            
        2.2 To pass list in attribute `option_values` of `add_item`, `update_item` and `remove_item` methods of `Cart` object should be like this :
        -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
            * [2] OR
            * ['red'] OR
            * [option_value_object]
    
    3. if cart item is object then it should have `id` field(Unique KeyField) like this:
    -----------------------------------------------------------------------------------------------------------
    For Example:
            class Product(object):
                def __init__(self):
                    self.id = None
            product = Product()
            
            from shoppingCart import Cart
            cart = Cart()
            cart.add_item(product=product, price=10.00, quantity=1)
            
Reference(s):
========
    
    1. Currancy Conversation:
    ------------------------------------
    Used http://www.webservicex.net to know currancy value.
    For Example:
        http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=EUR&ToCurrency=USD

About

It is a open source cart developed using Python language to manage cart in e-commerce applications. It includes Product option support, Multi discount support, Multi tax support(specific to product as well as general taxes), Multi currency support, tax exclude and Include total, shipping method and charge.

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%