Comments (4)
I'm working on multi currency support. It will require an extra method on the API, "get_order_currency". I hope to have a general working solution in the next few weeks.
from django-shop.
I would be interested to know how you plan on implementing this.
I have given it a stab in https://github.com/chrisglass/django-shop-multiplecurrencies . While not elegant nor very practical, it has the advantage of not needing anything changed in the core API or models. I chose this approach because I wanted to keep backwards-compatibility as much as possible.
If you don't mind, it would be nice if you could publish a branch on github (even if clearly marked as "work in progress"), just so that we can see where you are going with this (and possibly help you out, too)
from django-shop.
Also, "get_order_currency" seemsto assume there is only one currency per Order ;)
from django-shop.
I am keeping as much as possible as a separate app, with a few change to core. So far all have been backwards compatible :)
I have taken a look at your app. The difficulty with muiti currency is that the currency is attached to the request for the cart-items and products. This is not available in get_price. I intend to push my development branch to github, hopefully some time this week. It won't be anywhere near a complete solution.
I can see how you could have OrderPayment, OrderItem objects in different currencies. But I think it would not be a unreasonable restriction to limit them and the Order to one currency. Cart items on the other hand change base on the request.
from django-shop.
Related Issues (20)
- Overridden AdminSite
- Supporting filter_backends option for ProductRetrieveView
- OperationalError at / no such table: cms_urlconfrevision HOT 1
- "Can not add/subtract money in different currencies." HOT 4
- Decoupling Django Shop from Django CMS HOT 11
- Is there a way to checkout without billing or shipping addresses? HOT 1
- Bug with endless scrolling when there are has offset HOT 6
- Missing phonenumber option in link plugin
- Cannot install: No module named weakref
- Clear Cart functionality (aka delete all items in Cart at once)
- pipenv run ./manage.py initialize_shop_demo [ERROR] HOT 2
- Django 3.2 HOT 2
- filterChanged() not working
- Is project still active? HOT 2
- An admin for model "User" has to be registered to be referenced by FolderAdmin.autocomplete_fields HOT 2
- Multi-Tenancy Doc is not finished
- error while installation HOT 1
- Install error while parsing `--sequential` requirements HOT 2
- Problem with css variables HOT 2
- Django-shop elasticsearch bug "Unexpected queryset model" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-shop.