[mezzanine-users] Cartridge Feature Request: Shopping Cart For Loggedin Users

2014-07-23 Thread subodh . malgonde


Hi,

I had posted this request on GitHub but Stephen suggested that I post this 
in the mailing list. So here it goes:

As things stand currently in Cartridge, the cart is stored in the session. 
There is no functionality for associating a cart with a user. When the 
session ends the cart is lost. Ideally we would like to have the following 
functionality (this is already offered by platforms like Django-Oscar):
1) For anonymous users cart is stored in the session or cookies
2) When a user is logged in, the cart is stored in the database. So when a 
user logs in using different devices he would be able to see the items he 
had added to the cart previously
3) When an anonymous user logs in, the cart stored in the session is merged 
with the cart stored in the database.

Are there any plans to incorporate this functionality? This is a very 
important functionality for e-commerce websites.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] ProfileNotConfigured at /shop/checkout/

2014-07-23 Thread Duc Dang
Hi everyone,

I am new to Mezzanine and Cartridge.

I am able to start shop demo application with Cartridge and Mezzanine 
installed into my virtual environment. Things are working fine until I:
+ Remove Cartridge
+ Download latest Cartridge from github

With above change, I plan to to modify Product class to add an optional 
discount value for each item in shopping cart. But before adding any 
modification, I see a strange error when trying to check out:
==
ProfileNotConfigured at /shop/checkout/ 

No exception message supplied

 Request Method: GET  Request URL: http://192.168.1.72:8000/shop/checkout/  
Django 
Version: 1.6.5  Exception Type: ProfileNotConfigured  Exception Location: 
/home/dhdang/.virtualenvs/CALICARGO/local/lib/python2.7/site-packages/mezzanine/accounts/__init__.py
 
in get_profile_model, line 28  Python Executable: 
/home/dhdang/.virtualenvs/CALICARGO/bin/python  Python Version: 2.7.3  Python 
Path: 

[u'/home/dhdang/WORK/WEBDEV/NEW_CALICARGO',
 '/home/dhdang/WORK/WEBDEV/NEW_CALICARGO/CaliCargoWebSite',
 '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7',
 '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/plat-linux2',
 '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-tk',
 '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-old',
 '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/dhdang/.virtualenvs/CALICARGO/local/lib/python2.7/site-packages']

 Server time: Wed, 23 Jul 2014 03:46:34 -0700
==

Do you have any idea about the error that I am seeing and comment on my 
approach?

Thanks and regards,
Duc Dang.

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] ProfileNotConfigured at /shop/checkout/

2014-07-23 Thread Stephen McDonald
Hi there,

Just pushed a fix:

https://github.com/stephenmcd/cartridge/commit/88543f28ad3f41098b6a1fde97ea625569c0020f


On Wed, Jul 23, 2014 at 9:04 PM, Duc Dang duchoaid...@gmail.com wrote:

 Hi everyone,

 I am new to Mezzanine and Cartridge.

 I am able to start shop demo application with Cartridge and Mezzanine
 installed into my virtual environment. Things are working fine until I:
 + Remove Cartridge
 + Download latest Cartridge from github

 With above change, I plan to to modify Product class to add an optional
 discount value for each item in shopping cart. But before adding any
 modification, I see a strange error when trying to check out:

 ==
 ProfileNotConfigured at /shop/checkout/

 No exception message supplied

  Request Method: GET  Request URL: http://192.168.1.72:8000/shop/checkout/  
 Django
 Version: 1.6.5  Exception Type: ProfileNotConfigured  Exception Location: 
 /home/dhdang/.virtualenvs/CALICARGO/local/lib/python2.7/site-packages/mezzanine/accounts/__init__.py
 in get_profile_model, line 28  Python Executable:
 /home/dhdang/.virtualenvs/CALICARGO/bin/python  Python Version: 2.7.3  Python
 Path:

 [u'/home/dhdang/WORK/WEBDEV/NEW_CALICARGO',
  '/home/dhdang/WORK/WEBDEV/NEW_CALICARGO/CaliCargoWebSite',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/plat-linux2',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-tk',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-old',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-dynload',
  '/usr/lib/python2.7',
  '/usr/lib/python2.7/plat-linux2',
  '/usr/lib/python2.7/lib-tk',
  '/home/dhdang/.virtualenvs/CALICARGO/local/lib/python2.7/site-packages']

  Server time: Wed, 23 Jul 2014 03:46:34 -0700
 ==

 Do you have any idea about the error that I am seeing and comment on my
 approach?

 Thanks and regards,
 Duc Dang.

 --
 You received this message because you are subscribed to the Google Groups
 Mezzanine Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to mezzanine-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] ProfileNotConfigured at /shop/checkout/

2014-07-23 Thread Duc Dang
Thanks a lot, Steve.

Your patch works great. You save my date.

Regards,
Duc Dang.

On Wednesday, July 23, 2014 4:28:18 AM UTC-7, Stephen McDonald wrote:

 Hi there,

 Just pushed a fix:


 https://github.com/stephenmcd/cartridge/commit/88543f28ad3f41098b6a1fde97ea625569c0020f


 On Wed, Jul 23, 2014 at 9:04 PM, Duc Dang ducho...@gmail.com 
 javascript: wrote:

 Hi everyone,

 I am new to Mezzanine and Cartridge.

 I am able to start shop demo application with Cartridge and Mezzanine 
 installed into my virtual environment. Things are working fine until I:
 + Remove Cartridge
 + Download latest Cartridge from github

 With above change, I plan to to modify Product class to add an optional 
 discount value for each item in shopping cart. But before adding any 
 modification, I see a strange error when trying to check out:

 ==
 ProfileNotConfigured at /shop/checkout/ 

 No exception message supplied

  Request Method: GET  Request URL: 
 http://192.168.1.72:8000/shop/checkout/  Django Version: 1.6.5  Exception 
 Type: ProfileNotConfigured  Exception Location: 
 /home/dhdang/.virtualenvs/CALICARGO/local/lib/python2.7/site-packages/mezzanine/accounts/__init__.py
  
 in get_profile_model, line 28  Python Executable: 
 /home/dhdang/.virtualenvs/CALICARGO/bin/python  Python Version: 2.7.3  
 Python 
 Path: 

 [u'/home/dhdang/WORK/WEBDEV/NEW_CALICARGO',
  '/home/dhdang/WORK/WEBDEV/NEW_CALICARGO/CaliCargoWebSite',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/plat-linux2',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-tk',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-old',
  '/home/dhdang/.virtualenvs/CALICARGO/lib/python2.7/lib-dynload',
  '/usr/lib/python2.7',
  '/usr/lib/python2.7/plat-linux2',
  '/usr/lib/python2.7/lib-tk',
  '/home/dhdang/.virtualenvs/CALICARGO/local/lib/python2.7/site-packages']

  Server time: Wed, 23 Jul 2014 03:46:34 -0700
 ==

 Do you have any idea about the error that I am seeing and comment on my 
 approach?

 Thanks and regards,
 Duc Dang.

 -- 
 You received this message because you are subscribed to the Google Groups 
 Mezzanine Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to mezzanine-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Stephen McDonald
 http://jupo.org 


-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: modeltranslations - round 2

2014-07-23 Thread Eduardo Rivas
Hi Paul. It seems like you sorted out the issue you were linking too. Are 
there any others?

I finally found some time to come back to this, and noticed the front-end 
language selector is gone. The problem is in the condition for rendering the 
template 
https://github.com/Kniyl/mezzanine/blob/master/mezzanine/core/templates/includes/language_selector.html#L3,
 
as settings.USE_MODELTRANSLATION won't be available in the template context 
unless explicitly added to TEMPLATE_ACCESSIBLE_SETTINGS, thus, it always 
returns False and the template is never rendered. Relevant page 
http://mezzanine.jupo.org/docs/configuration.html#template-accessible-settings
 
in the official docs.

While we are at this, I'm unsure how contributions to forks work. It seems 
I cannot make pull requests to Mathias' fork. Maybe because it has never 
been merged into Steve's repo (the upstream repo)? Anyways, I've made the 
necessary edits here 
https://github.com/jerivas/mezzanine/commit/5a4fa67dbba7a4aed493535c28fc991b0f1a3d61,
 
guess you'll have to manually copy it to your repo, Mathias. I'm not sure 
if core.defaults is the best place to put this, let me know what you guys 
think.

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: modeltranslations - round 2

2014-07-23 Thread Eduardo Rivas
Yeah, I've got the pull request ready, but the dropdown on which you select 
the repo you want to compare your changes with won't list Mathias' fork of 
Mezzanine.

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.