[mezzanine-users] Re: Built-in way to require billing/shipping address?

2014-02-21 Thread Josh B
Hey Geoffrey, all of the fields are already required. Are you looking to 
turn them off from being required or?

On Sunday, February 9, 2014 2:23:23 PM UTC-7, Geoffrey Sechter wrote:

 Does Cartridge ship with a setting to make billing and/or shipping address 
 fields required?

 If not, would there be openness to including that feature in a future 
 release?


-- 
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/groups/opt_out.


Re: [mezzanine-users] Admin navigation

2014-02-22 Thread Josh B
Stephen, what is your stance on modifying the admin/base.html?

On Saturday, February 22, 2014 7:30:30 PM UTC-7, Josh B wrote:

 I don't have a ton of time, but I will take a look and fix a couple of 
 things.

 On Saturday, February 22, 2014 12:35:26 AM UTC-7, Stephen McDonald wrote:

 I've just pushed up an initial version of this and am desperately seeking 
 assistance in finishing it:


 https://github.com/stephenmcd/mezzanine/commit/6fcba4b31e4a9f21275cd22774d8ac24d3342668

 The main problem at the moment is that messages invalid login, you've 
 saved foo, etc are completely borked. This is the showstopper.

 Lastly and of less importance, there's no interactivity - hover states, 
 active nav, nothing - the entire thing is static. Would be nice to have 
 some basic aspects around that working. Further to this, we could have some 
 more ux around it where only the currently viewed section (eg Content, 
 Blog, Site, etc) is open, and the other sections open when clicked on - 
 only one should be open at any time perhaps? We could also use some toggle 
 buttons, for showing/hiding the menu (default should be open, perhaps only 
 if the screen is wide), and separately, toggling the sections being 
 collapsed or expanded.

 There's a lot of work to be done here and I don't really have the 
 front-end skill nor the time available right now to see it through.

 Who can help out?






 On Tue, Feb 18, 2014 at 10:14 AM, Stephen McDonald st...@jupo.orgwrote:



 On Tue, Feb 18, 2014 at 5:10 AM, Josh Cartmell joshc...@gmail.comwrote:

 Hey Steve, that looks pretty cool!  I agree with Luc that it would be 
 nice to make it collapse able.  It also might be nice if the menu scrolled 
 independently from the rest of the page.

 Last question, what happens on smaller screens?


 Not sure, just experimenting at this stage. 

 Kinda hitting the limits of my front-end capabilities, so I might get a 
 basic version working and if others are able to improve on it it'd be great.
  



 On Mon, Feb 17, 2014 at 12:23 AM, Luc Milland l...@hekenet.com wrote:

 Hello,
 I think it's great, since most of the people have wide screens 
 nowadays.
 Maybe it would be cool if submenus were toggleable, since the list can
 become very long when using custom and third party apps.

 Luc

 Le lundi 17 février 2014 à 12:01 +1100, Stephen McDonald a écrit :
  Playing around with restyling the nav menu in the admin:
 
  http://cl.ly/image/3519242k1m0K
 
  The nav menu contains the admin classes grouped by app - previously 
 it was
  implemented as light grey drop-down menus across the top of the 
 screen.
  You'll see I've moved everything to the left-hand side, with all 
 items
  permanently visible.
 
  What do you think?
 
 
  --
  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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Stephen McDonald
 http://jupo.org 




 -- 
 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/groups/opt_out.


[mezzanine-users] Re: how to customize the shipping fee

2014-02-23 Thread Josh B
You will need to create a custom Shipping 
Handler. http://cartridge.jupo.org/integration.html#billing-shipping
Depending on how many different shipping fees you have you might also have 
to add an additional field 
(http://mezzanine.jupo.org/docs/model-customization.html#field-injection) 
to each product to specify how much the fee is for that product. Then in 
the handler look up each products shipping fee and add them all together. 

Josh


On Sunday, February 23, 2014 3:01:58 PM UTC-7, lu zou wrote:

  a quite easy question ,but donot know how to figure it out ,Can 
 someone please tell me how to customize the shipping fee which means 
 different shipping fee for different products  ,instead of the flat 
 shipping fee which is the same for all the products ,thanks a lot :)


-- 
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/groups/opt_out.


Re: [mezzanine-users] Admin navigation

2014-02-23 Thread Josh B
My bad, forgot to fix the error message once logged in. Give me a minute.

On Sunday, February 23, 2014 10:14:29 PM UTC-7, Stephen McDonald wrote:

 Thanks a lot Josh!

 Not sure if it's intended bit it still looks a bit off on my end: 
 http://cl.ly/image/1q2H0E1Y1w0w

 My browser is Chrome 34.0.1847.3




 On Mon, Feb 24, 2014 at 4:10 PM, Josh B 
 josh.ba...@wearetopsecret.comjavascript:
  wrote:

 I just opened a Pull Request for the messages issue. Haven't had a chance 
 to look into the collapsing navigation. Let me know if you have time to 
 take care of that Josh. If not I might have some time tomorrow.


 On Sunday, February 23, 2014 4:05:51 PM UTC-7, Stephen McDonald wrote:

 Sounds like a great idea, wanna kick it off?


 On Mon, Feb 24, 2014 at 9:08 AM, Josh Cartmell joshc...@gmail.comwrote:

 I'd like to try to help as well, would there be any way to put a static 
 version up on jsfiddle or codepen so that we could easily play with the js 
 and iterate?


 On Sat, Feb 22, 2014 at 6:44 PM, Stephen McDonald st...@jupo.orgwrote:

  Don't really have one - is there any reason not to modify it? If 
 not, go for it.


 On Sun, Feb 23, 2014 at 1:42 PM, Josh B josh.ba...@wearetopsecret.com
  wrote:

 Stephen, what is your stance on modifying the admin/base.html?


 On Saturday, February 22, 2014 7:30:30 PM UTC-7, Josh B wrote:

 I don't have a ton of time, but I will take a look and fix a couple 
 of things.

 On Saturday, February 22, 2014 12:35:26 AM UTC-7, Stephen McDonald 
 wrote:

 I've just pushed up an initial version of this and am desperately 
 seeking assistance in finishing it:

 https://github.com/stephenmcd/mezzanine/commit/6fcba4b31e4a9
 f21275cd22774d8ac24d3342668

 The main problem at the moment is that messages invalid login, 
 you've saved foo, etc are completely borked. This is the showstopper.

 Lastly and of less importance, there's no interactivity - hover 
 states, active nav, nothing - the entire thing is static. Would be 
 nice to 
 have some basic aspects around that working. Further to this, we could 
 have 
 some more ux around it where only the currently viewed section (eg 
 Content, 
 Blog, Site, etc) is open, and the other sections open when clicked on 
 - 
 only one should be open at any time perhaps? We could also use some 
 toggle 
 buttons, for showing/hiding the menu (default should be open, perhaps 
 only 
 if the screen is wide), and separately, toggling the sections being 
 collapsed or expanded.

 There's a lot of work to be done here and I don't really have the 
 front-end skill nor the time available right now to see it through.

 Who can help out?






 On Tue, Feb 18, 2014 at 10:14 AM, Stephen McDonald 
 st...@jupo.orgwrote:



 On Tue, Feb 18, 2014 at 5:10 AM, Josh Cartmell joshc...@gmail.com
  wrote:

 Hey Steve, that looks pretty cool!  I agree with Luc that it 
 would be nice to make it collapse able.  It also might be nice if 
 the menu 
 scrolled independently from the rest of the page.

 Last question, what happens on smaller screens?


 Not sure, just experimenting at this stage. 

 Kinda hitting the limits of my front-end capabilities, so I might 
 get a basic version working and if others are able to improve on it 
 it'd be 
 great.
  



 On Mon, Feb 17, 2014 at 12:23 AM, Luc Milland 
 l...@hekenet.comwrote:

 Hello,
 I think it's great, since most of the people have wide screens 
 nowadays.
 Maybe it would be cool if submenus were toggleable, since the 
 list can
 become very long when using custom and third party apps.

 Luc

 Le lundi 17 février 2014 à 12:01 +1100, Stephen McDonald a écrit 
 :
  Playing around with restyling the nav menu in the admin:
 
  http://cl.ly/image/3519242k1m0K
 
  The nav menu contains the admin classes grouped by app - 
 previously it was
  implemented as light grey drop-down menus across the top of 
 the screen.
  You'll see I've moved everything to the left-hand side, with 
 all items
  permanently visible.
 
  What do you think?
 
 
  --
  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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out
 .


  -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Stephen McDonald
 http://jupo.org 




 -- 
 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-use...@googlegroups.com.
 For more options, visit https

Re: [mezzanine-users] Admin navigation

2014-02-23 Thread Josh B
Did you want it to butt up to the top or?

On Sunday, February 23, 2014 10:19:31 PM UTC-7, Stephen McDonald wrote:

 Ahhh I'm sorry, I just cleared my cache and it mostly looks right:

 http://cl.ly/image/1s2j3B121Q3U




 On Mon, Feb 24, 2014 at 4:17 PM, Josh B 
 josh.ba...@wearetopsecret.comjavascript:
  wrote:

 My bad, forgot to fix the error message once logged in. Give me a minute.


 On Sunday, February 23, 2014 10:14:29 PM UTC-7, Stephen McDonald wrote:

 Thanks a lot Josh!

 Not sure if it's intended bit it still looks a bit off on my end: 
 http://cl.ly/image/1q2H0E1Y1w0w

 My browser is Chrome 34.0.1847.3




 On Mon, Feb 24, 2014 at 4:10 PM, Josh B 
 josh.ba...@wearetopsecret.comwrote:

 I just opened a Pull Request for the messages issue. Haven't had a 
 chance to look into the collapsing navigation. Let me know if you have 
 time 
 to take care of that Josh. If not I might have some time tomorrow.


 On Sunday, February 23, 2014 4:05:51 PM UTC-7, Stephen McDonald wrote:

 Sounds like a great idea, wanna kick it off?


 On Mon, Feb 24, 2014 at 9:08 AM, Josh Cartmell joshc...@gmail.comwrote:

 I'd like to try to help as well, would there be any way to put a 
 static version up on jsfiddle or codepen so that we could easily play 
 with 
 the js and iterate?


 On Sat, Feb 22, 2014 at 6:44 PM, Stephen McDonald st...@jupo.orgwrote:

  Don't really have one - is there any reason not to modify it? If 
 not, go for it.


 On Sun, Feb 23, 2014 at 1:42 PM, Josh B josh.ba...@
 wearetopsecret.com wrote:

 Stephen, what is your stance on modifying the admin/base.html?


 On Saturday, February 22, 2014 7:30:30 PM UTC-7, Josh B wrote:

 I don't have a ton of time, but I will take a look and fix a 
 couple of things.

 On Saturday, February 22, 2014 12:35:26 AM UTC-7, Stephen McDonald 
 wrote:

 I've just pushed up an initial version of this and am desperately 
 seeking assistance in finishing it:

 https://github.com/stephenmcd/mezzanine/commit/6fcba4b31e4a9
 f21275cd22774d8ac24d3342668

 The main problem at the moment is that messages invalid login, 
 you've saved foo, etc are completely borked. This is the 
 showstopper.

 Lastly and of less importance, there's no interactivity - hover 
 states, active nav, nothing - the entire thing is static. Would be 
 nice to 
 have some basic aspects around that working. Further to this, we 
 could have 
 some more ux around it where only the currently viewed section (eg 
 Content, 
 Blog, Site, etc) is open, and the other sections open when clicked 
 on - 
 only one should be open at any time perhaps? We could also use some 
 toggle 
 buttons, for showing/hiding the menu (default should be open, 
 perhaps only 
 if the screen is wide), and separately, toggling the sections being 
 collapsed or expanded.

 There's a lot of work to be done here and I don't really have the 
 front-end skill nor the time available right now to see it through.

 Who can help out?






 On Tue, Feb 18, 2014 at 10:14 AM, Stephen McDonald 
 st...@jupo.org wrote:



 On Tue, Feb 18, 2014 at 5:10 AM, Josh Cartmell 
 joshc...@gmail.com wrote:

 Hey Steve, that looks pretty cool!  I agree with Luc that it 
 would be nice to make it collapse able.  It also might be nice if 
 the menu 
 scrolled independently from the rest of the page.

 Last question, what happens on smaller screens?


 Not sure, just experimenting at this stage. 

 Kinda hitting the limits of my front-end capabilities, so I 
 might get a basic version working and if others are able to improve 
 on it 
 it'd be great.
  



 On Mon, Feb 17, 2014 at 12:23 AM, Luc Milland l...@hekenet.com
  wrote:

 Hello,
 I think it's great, since most of the people have wide screens 
 nowadays.
 Maybe it would be cool if submenus were toggleable, since the 
 list can
 become very long when using custom and third party apps.

 Luc

 Le lundi 17 février 2014 à 12:01 +1100, Stephen McDonald a 
 écrit :
  Playing around with restyling the nav menu in the admin:
 
  http://cl.ly/image/3519242k1m0K
 
  The nav menu contains the admin classes grouped by app - 
 previously it was
  implemented as light grey drop-down menus across the top of 
 the screen.
  You'll see I've moved everything to the left-hand side, with 
 all items
  permanently visible.
 
  What do you think?
 
 
  --
  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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/grou
 ps/opt_out.


  -- 
 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.
 For more options, visit https://groups.google.com/grou
 ps/opt_out.




 -- 
 Stephen McDonald
 http://jupo.org

Re: [mezzanine-users] Admin navigation

2014-02-23 Thread Josh B
Sounds good, besides the collapsible menu is there other things you want to 
do to the admin?

On Sunday, February 23, 2014 10:22:37 PM UTC-7, Stephen McDonald wrote:

 Yep but I've just fixed that locally and will push in a sec so don't sweat 
 it.

 Thanks again, really exciting to give the admin a dress up!


 On Mon, Feb 24, 2014 at 4:21 PM, Josh B 
 josh.ba...@wearetopsecret.comjavascript:
  wrote:

 Did you want it to butt up to the top or?


 On Sunday, February 23, 2014 10:19:31 PM UTC-7, Stephen McDonald wrote:

 Ahhh I'm sorry, I just cleared my cache and it mostly looks right:

 http://cl.ly/image/1s2j3B121Q3U




 On Mon, Feb 24, 2014 at 4:17 PM, Josh B 
 josh.ba...@wearetopsecret.comwrote:

 My bad, forgot to fix the error message once logged in. Give me a 
 minute.


 On Sunday, February 23, 2014 10:14:29 PM UTC-7, Stephen McDonald wrote:

 Thanks a lot Josh!

 Not sure if it's intended bit it still looks a bit off on my end: 
 http://cl.ly/image/1q2H0E1Y1w0w

 My browser is Chrome 34.0.1847.3




 On Mon, Feb 24, 2014 at 4:10 PM, Josh B josh.ba...@wearetopsecret.com
  wrote:

 I just opened a Pull Request for the messages issue. Haven't had a 
 chance to look into the collapsing navigation. Let me know if you have 
 time 
 to take care of that Josh. If not I might have some time tomorrow.


 On Sunday, February 23, 2014 4:05:51 PM UTC-7, Stephen McDonald wrote:

 Sounds like a great idea, wanna kick it off?


 On Mon, Feb 24, 2014 at 9:08 AM, Josh Cartmell 
 joshc...@gmail.comwrote:

 I'd like to try to help as well, would there be any way to put a 
 static version up on jsfiddle or codepen so that we could easily play 
 with 
 the js and iterate?


 On Sat, Feb 22, 2014 at 6:44 PM, Stephen McDonald 
 st...@jupo.orgwrote:

  Don't really have one - is there any reason not to modify it? If 
 not, go for it.


 On Sun, Feb 23, 2014 at 1:42 PM, Josh B josh.ba...@
 wearetopsecret.com wrote:

 Stephen, what is your stance on modifying the admin/base.html?


 On Saturday, February 22, 2014 7:30:30 PM UTC-7, Josh B wrote:

 I don't have a ton of time, but I will take a look and fix a 
 couple of things.

 On Saturday, February 22, 2014 12:35:26 AM UTC-7, Stephen 
 McDonald wrote:

 I've just pushed up an initial version of this and am 
 desperately seeking assistance in finishing it:

 https://github.com/stephenmcd/mezzanine/commit/6fcba4b31e4a9
 f21275cd22774d8ac24d3342668

 The main problem at the moment is that messages invalid login, 
 you've saved foo, etc are completely borked. This is the 
 showstopper.

 Lastly and of less importance, there's no interactivity - hover 
 states, active nav, nothing - the entire thing is static. Would be 
 nice to 
 have some basic aspects around that working. Further to this, we 
 could have 
 some more ux around it where only the currently viewed section (eg 
 Content, 
 Blog, Site, etc) is open, and the other sections open when clicked 
 on - 
 only one should be open at any time perhaps? We could also use 
 some toggle 
 buttons, for showing/hiding the menu (default should be open, 
 perhaps only 
 if the screen is wide), and separately, toggling the sections 
 being 
 collapsed or expanded.

 There's a lot of work to be done here and I don't really have 
 the front-end skill nor the time available right now to see it 
 through.

 Who can help out?






 On Tue, Feb 18, 2014 at 10:14 AM, Stephen McDonald 
 st...@jupo.org wrote:



 On Tue, Feb 18, 2014 at 5:10 AM, Josh Cartmell 
 joshc...@gmail.com wrote:

 Hey Steve, that looks pretty cool!  I agree with Luc that it 
 would be nice to make it collapse able.  It also might be nice 
 if the menu 
 scrolled independently from the rest of the page.

 Last question, what happens on smaller screens?


 Not sure, just experimenting at this stage. 

 Kinda hitting the limits of my front-end capabilities, so I 
 might get a basic version working and if others are able to 
 improve on it 
 it'd be great.
  



 On Mon, Feb 17, 2014 at 12:23 AM, Luc Milland 
 l...@hekenet.com wrote:

 Hello,
 I think it's great, since most of the people have wide 
 screens nowadays.
 Maybe it would be cool if submenus were toggleable, since 
 the list can
 become very long when using custom and third party apps.

 Luc

 Le lundi 17 février 2014 à 12:01 +1100, Stephen McDonald a 
 écrit :
  Playing around with restyling the nav menu in the admin:
 
  http://cl.ly/image/3519242k1m0K
 
  The nav menu contains the admin classes grouped by app - 
 previously it was
  implemented as light grey drop-down menus across the top 
 of the screen.
  You'll see I've moved everything to the left-hand side, 
 with all items
  permanently visible.
 
  What do you think?
 
 
  --
  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-use...@googlegroups.com

Re: [mezzanine-users] Admin navigation

2014-02-25 Thread Josh B
I haven't been able to jump back on it. So feel free.

On Tuesday, February 25, 2014 2:07:11 PM UTC-7, Josh Cartmell wrote:

 Yeah, although it ended up being a small CSS change it took me quite a bit 
 of messing around to get it looking like that.

 I think putting the selectors in the top bar is a great idea and using the 
 js to do it sounds like a simple enough solution.

 Is anyone working on collapsible nav at this point?  I'll take a stab at 
 it if not.


 On Tue, Feb 25, 2014 at 11:25 AM, Stephen McDonald 
 st...@jupo.orgjavascript:
  wrote:

 Nice, I had a ton of trouble with the full height and scrollbars so glad 
 that's better.

 I think the lang and site selectors should probably go up into the 
 existing top nav on the right-hand side but to the left of the existing 
 buttons.

 Easiest way to do that might be at the top of navigation.js where we are 
 already moving a bunch of elements around using jQuery rather than trying 
 to repurpose the layers of templates between django/grappelli/mezzanine.


 On Wed, Feb 26, 2014 at 5:33 AM, Josh Cartmell 
 joshc...@gmail.comjavascript:
  wrote:

 Ok, I took a look and I did create a codepen so that anyone can look 
 at/edit it really easily.  Here is the pen (you can edit it by clicking the 
 link in the bottom left):
 http://codepen.io/joshcartme/full/wIcxp
 (I hotlinked the css/js files from the dev site, hopefully that's not a 
 big deal Steve).

 So far my only css change is:
 .dropdown-menu{
   overflow: auto;
   height: 100%;
 }
 To make it so there is only a scrollbar if needed and so that the 
 sidebar spans the full page width.  I also moved the language selector 
 dropdown to the top and made it an element in the ul.

 Thoughts?


 On Mon, Feb 24, 2014 at 11:02 PM, Stephen McDonald 
 st...@jupo.orgjavascript:
  wrote:

 Guess not. You can probably just fork and start committing.

 BTW I've pushed up the latest commits to the demo site (
 http://mezzanine.jupo.org/admin/ user/pass: demo/demo), so you can 
 login to its admin and see the current state of the new menu plus other 
 visual tweaks - so if anyone who has a moment to try out their particular 
 browser (eg I've no idea how this renders in IE) and provide any feedback 
 that'd be great!


 On Tue, Feb 25, 2014 at 4:33 AM, Josh Cartmell 
 joshc...@gmail.comjavascript:
  wrote:

 Well, it looks like you guys worked this out in the meantime (I 
 haven't tried it yet myself) so I'm guessing jsfiddle/codepen would be 
 unnecessary at this point?

 Thanks Josh!


 On Sun, Feb 23, 2014 at 9:29 PM, Stephen McDonald 
 st...@jupo.orgjavascript:
  wrote:

 Nothing comes to mind but if you have any ideas where we can easily 
 (eg with a light touch) improve the usability and look of it then 
 definitely bring them up!

 I had my eye on this style of left-hand nav that the wordpress admin 
 uses for quite a while, and recently I saw a comment on reddit or some 
 site 
 describing Mezzanine's admin + grappelli as looking tired and old 
 compared 
 to newer CMSes and I couldn't help but agree. So the left-hand nav is an 
 attempt to improve things there. You might notice I also tried to 
 increase 
 font sizes everywhere, but I tried to do this in a way where I didn't 
 touch 
 anything in grappelli which was only partially successful. I think one 
 of 
 the main usability issues currently is the tiny fonts everywhere.


 On Mon, Feb 24, 2014 at 4:24 PM, Josh B 
 josh.ba...@wearetopsecret.com javascript: wrote:

 Sounds good, besides the collapsible menu is there other things you 
 want to do to the admin?


 On Sunday, February 23, 2014 10:22:37 PM UTC-7, Stephen McDonald 
 wrote:

 Yep but I've just fixed that locally and will push in a sec so 
 don't sweat it.

 Thanks again, really exciting to give the admin a dress up!


 On Mon, Feb 24, 2014 at 4:21 PM, Josh B josh.ba...@
 wearetopsecret.com wrote:

 Did you want it to butt up to the top or?


 On Sunday, February 23, 2014 10:19:31 PM UTC-7, Stephen McDonald 
 wrote:

 Ahhh I'm sorry, I just cleared my cache and it mostly looks right:

 http://cl.ly/image/1s2j3B121Q3U




 On Mon, Feb 24, 2014 at 4:17 PM, Josh B josh.ba...@
 wearetopsecret.com wrote:

 My bad, forgot to fix the error message once logged in. Give me 
 a minute.


 On Sunday, February 23, 2014 10:14:29 PM UTC-7, Stephen McDonald 
 wrote:

 Thanks a lot Josh!

 Not sure if it's intended bit it still looks a bit off on my 
 end: http://cl.ly/image/1q2H0E1Y1w0w

 My browser is Chrome 34.0.1847.3




 On Mon, Feb 24, 2014 at 4:10 PM, Josh B josh.ba...@
 wearetopsecret.com wrote:

 I just opened a Pull Request for the messages issue. Haven't 
 had a chance to look into the collapsing navigation. Let me know 
 if you 
 have time to take care of that Josh. If not I might have some 
 time tomorrow.


 On Sunday, February 23, 2014 4:05:51 PM UTC-7, Stephen 
 McDonald wrote:

 Sounds like a great idea, wanna kick it off?


 On Mon, Feb 24, 2014 at 9:08 AM, Josh Cartmell 
 joshc

Re: [mezzanine-users] Cartridge and Product Option Type Choices

2014-02-25 Thread Josh B
Couple of ideas I have been batting around:

No matter what I think we need to move all product option types to the 
database.

a. Allow a user to create a option group. ie. Shirt options, which would 
include Size and Color (or whatever the user chooses). Each time a new 
product is created you could select what product options you need and then 
essentially copy them to the new instance of the product. You could also 
add product specific colors or sizes.

b. Have product options only live at a product level.

 



On Tuesday, February 25, 2014 12:04:30 AM UTC-7, Stephen McDonald wrote:

 All I can say at this stage is that the current design around how options 
 work certainly has quite a few limitations, most notably the fact that 
 migrations need to occur if the number change, but also including what 
 you've raised here. 

 It could certainly use some re-thinking/re-writing!


 On Tue, Feb 25, 2014 at 7:57 AM, Josh B 
 josh.ba...@wearetopsecret.comjavascript:
  wrote:

 Working on a couple of projects where each product will have a unique set 
 of options. With that I am building a seller admin where a seller can 
 create a product, create options, inventory etc. Then the site admin will 
 approve it and mark it ready for purchase, etc. 

 1. Has anyone come up with a good solution for handling dynamic shop 
 option type choices? 
 2. Is there a reason why they are currently static and set in the 
 settings file? 

 a. Could this be moved to be a dynamic setup? 


 With the handful of Cartridge sites i have built, the current product 
 options become bloated when you have a diverse set of products. Thoughts, 
 opinions?  
  
 -- 
 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/groups/opt_out.




 -- 
 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/groups/opt_out.


[mezzanine-users] Re: Current approaches to multiple Product types in Cartridge

2014-02-26 Thread Josh B
Based on what you described I think subclassing is your best bet. 
Variations currently have some limitations and I don't think would 
accomplish what you are trying to do. 
(https://groups.google.com/forum/#!topic/mezzanine-users/kYzgBKcwSsg)

On Wednesday, February 26, 2014 4:40:19 AM UTC-7, Paul Walsh wrote:

 And, BTW, I don't mind coding something in this direction (for example, 
 subclasses of Product) if it is a common pain-point for other users in 
 Cartridge, but first, I want to see that I understand the current 
 implementation, and how people are using it.

 On Wednesday, 26 February 2014 13:37:00 UTC+2, Paul Walsh wrote:

 Hi,

 I posted something similar a while back:

 https://groups.google.com/forum/#!topic/mezzanine-users/-ltMQLoS8Jo

 But now it is getting to the stage where I'm actually going to rebuild a 
 store and move off Satchmo, starting next week.

 I've reassessed the options in Python land, and I'm mostly happy with 
 Cartridge, except for the issue of different product types.

 I want to check I'm not missing anything here, and hopefully hear from 
 others who have similar stores on Cartridge.

 I have at least 4 product types, let's say they all share 7-8 attributes 
 common to all products, and each have another 5-10 attributes that are 
 unique to each Product type.

 The implementation of product variations/options is a way to go about it, 
 I suppose, but it really seems most suited for variations of one product 
 type, and not for a range of different product types.

 Ultimately, what I'd like to get to is a set of distinct models: Book, 
 Accessory, Poster, TShirt - etc - for the content editor, and also for the 
 visitor - I'm not sure how to achieve that with what I see in Cartridge.





-- 
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/groups/opt_out.


[mezzanine-users] Re: do cartridge have refund function?

2014-03-11 Thread Josh B
It currently doesn't have one so you would need to create it.


On Tuesday, March 11, 2014 5:31:58 AM UTC-6, lu zou wrote:

 currently want to integrate payment gateway ,do cartridge have refund 
 function or I need to write new one?


-- 
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] Migration Issue

2014-06-03 Thread Josh B
All I am trying to create a new model that has a foreignkey to the 
shop.Product model. But for some reason when I try and run the migration I 
get the following error.

ValueError: Cannot successfully create field 'product' for model 
'shippingspecification': The model 'product' from the app 'shop' is not 
available in this migration..

I have tried a couple of things with out success. Anyone have any ideas? 

Here is the migration:


def forwards(self, orm):

# Adding model 'ShippingSpecification'

db.create_table(u'shipping_shippingspecification', (

(u'id', 
self.gf('django.db.models.fields.AutoField')(primary_key=True)),

('product', 
self.gf('django.db.models.fields.related.ForeignKey')(related_name='shipping_product',
 
to=orm['shop.Product'])),

('length', 
self.gf('django.db.models.fields.DecimalField')(default=0.0, max_digits=7, 
decimal_places=2)),

('width', 
self.gf('django.db.models.fields.DecimalField')(default=0.0, max_digits=7, 
decimal_places=2)),

('height', 
self.gf('django.db.models.fields.DecimalField')(default=0.0, max_digits=7, 
decimal_places=2)),

('weight', 
self.gf('django.db.models.fields.DecimalField')(default=0.0, max_digits=7, 
decimal_places=2)),

))

db.send_create_signal(u'shipping', ['ShippingSpecification'])

-- 
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] Migration Issue

2014-06-03 Thread Josh B
Duh. Thanks, I thought the file seemed a little light. Deleted the 
migration and recreated it. Froze correctly this time and ran correctly. 

On Tuesday, June 3, 2014 10:37:47 PM UTC-6, Stephen McDonald wrote:

 You probably want the --freeze option to schemamigration

 http://south.readthedocs.org/en/latest/ormfreezing.html


 On Wed, Jun 4, 2014 at 2:30 PM, Josh B josh.ba...@wearetopsecret.com 
 javascript: wrote:

 All I am trying to create a new model that has a foreignkey to the 
 shop.Product model. But for some reason when I try and run the migration I 
 get the following error.

 ValueError: Cannot successfully create field 'product' for model 
 'shippingspecification': The model 'product' from the app 'shop' is not 
 available in this migration..

 I have tried a couple of things with out success. Anyone have any ideas? 

 Here is the migration:


 def forwards(self, orm):

 # Adding model 'ShippingSpecification'

 db.create_table(u'shipping_shippingspecification', (

 (u'id', self.gf
 ('django.db.models.fields.AutoField')(primary_key=True)),

 ('product', 
 self.gf('django.db.models.fields.related.ForeignKey')(related_name='shipping_product',
  
 to=orm['shop.Product'])),

 ('length', 
 self.gf('django.db.models.fields.DecimalField')(default=0.0, 
 max_digits=7, decimal_places=2)),

 ('width', 
 self.gf('django.db.models.fields.DecimalField')(default=0.0, 
 max_digits=7, decimal_places=2)),

 ('height', 
 self.gf('django.db.models.fields.DecimalField')(default=0.0, 
 max_digits=7, decimal_places=2)),

 ('weight', 
 self.gf('django.db.models.fields.DecimalField')(default=0.0, 
 max_digits=7, decimal_places=2)),

 ))

 db.send_create_signal(u'shipping', ['ShippingSpecification'])

 -- 
 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] M2M With Products

2014-10-28 Thread Josh B
I am trying to tie products to an event, but for some reason I am unable to 
create a M2M with the Products table. 

event_products = models.ManyToManyField(cartridge.shop.models.Product, 
blank=True,
  
verbose_name=_(Products),related_name='event_products',
  )

Tried a few different ways and I get the following

'products' has an m2m relation with model cartridge.shop.models.Product, 
which has either not been installed or is abstract.


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.


Re: [mezzanine-users] M2M With Products

2014-10-28 Thread Josh B
Duh, thanks Stephen. Thought I tried that.

On Tuesday, October 28, 2014 3:38:12 PM UTC-7, Stephen McDonald wrote:

 Should the first arg just be shop.Product ?

 On Wed, Oct 29, 2014 at 9:36 AM, Josh B josh.ba...@wearetopsecret.com 
 javascript: wrote:

 I am trying to tie products to an event, but for some reason I am unable 
 to create a M2M with the Products table. 

 event_products = models.ManyToManyField(cartridge.shop.models.Product, 
 blank=True,
   
 verbose_name=_(Products),related_name='event_products',
   )

 Tried a few different ways and I get the following

 'products' has an m2m relation with model cartridge.shop.models.Product, 
 which has either not been installed or is abstract.


 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-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.


Re: [mezzanine-users] Cartridge creating a product with a user defined price

2014-11-10 Thread Josh B
Nice, you also had to create a corresponding product, right?

On Monday, November 10, 2014 10:12:41 AM UTC-7, Josh Cartmell wrote:

 Hey Josh, that seems like a pretty good way to handle it.  I had once 
 dealt with allowing users to make donations to a site with Cartridge (not 
 purchasing products for the donation, just straight donations) and did this:

 def add_donation_item(cart, price, notes=None):Adds a donation to 
 the cart.  donation is a product variationitem, created = 
 cart.items.get_or_create(sku=(DONATION-%s % price), unit_price=price)if 
 created:item.description = $%s Donation % price
 item.unit_price = priceitem.url = /shop/donate/item.notes = 
 noteselse:item.notes += notesitem.quantity += 1item.save()

 In my case I didn't create a particular Donation objects, but I think 
 doing that makes things nicer/saner and I think it's a good approach.

 On Sun, Nov 9, 2014 at 1:18 AM, Josh B josh.ba...@wearetopsecret.com 
 javascript: wrote:

 I am creating a store that has normal products and it also has donation 
 based products. With the donation products the user defines the price. 

 Here is where I am at so far and want to see if someone else has a better 
 idea.

 I created an add_donation function that loads in the product details and 
 creates a new Donation object where I set the price to the user defined 
 price. This feels a little hacky to me but this might be the easiest way. 
 Thoughts?


 https://gist.github.com/joshbatchelor/dc093ff99b129297d488#file-gistfile1-txt

 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-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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] Cartridge + Auth.net

2014-11-11 Thread Josh B
Not sure if I have something configured wrong but when the expiration date 
is being sent to Auth.net it is prepended with the letter b. From what I 
have been able to track down its happening on this line
cartridge/shop/payment/authorizenet.py
'x_exp_date': (data['card_expiry_month'] + / + 
data['card_expiry_year']),

if I change it to %s/%s % (data['card_expiry_month'],data[
'card_expiry_year']) it works.

Thoughts?

-- 
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] SSL Help

2014-11-14 Thread Josh B
Thanks, Josh.

I have tried with that set or left blank and I get the same thing. I have 
also removed the SSL config parameters and just use default ones and I 
still get the redirect. Looking through all of the Cartridge sites I have 
built this is the issue that has always alluded me.

On Friday, November 14, 2014 8:22:13 AM UTC-7, Josh Cartmell wrote:

 I've had issues with redirects and SSL before if I put in the wrong Force 
 host which is a backend editable setting.

 On Fri, Nov 14, 2014 at 3:19 AM, Josh B josh.ba...@wearetopsecret.com 
 javascript: wrote:

 I must be missing something, but the last few Nginx + Cartridge sites I 
 have launched I have to https the whole the site. If I don't the sections I 
 need SSL on just do a 302 redirect loop.

 Here are my settings:

 SSL_ENABLED = True
 SSL_FORCE_URL_PREFIXES = ('/shop/cart','/shop/checkout','/account',
 '/admin')
 SSL_FORCED_PREFIXES_ONLY = True

 I also enabled the SSL middleware. 

 My Nginx config matches the one provided.

 Thoughts?

 -- 
 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.




-- 
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] SSL Help

2014-11-14 Thread Josh B
Finally tracked down the solution. The request.is_secure(); isn't looking 
for the HTTP_X_FORWARDED_PROTOCOL to test for HTTPS so its always returning 
that its not secure. To fix it I had to add the below to my settings.py 
file.

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
Also I see that line in the deploy local_settings.py.template file. 

On Friday, November 14, 2014 9:08:57 AM UTC-7, Josh B wrote:

 Thanks, Josh.

 I have tried with that set or left blank and I get the same thing. I have 
 also removed the SSL config parameters and just use default ones and I 
 still get the redirect. Looking through all of the Cartridge sites I have 
 built this is the issue that has always alluded me.

 On Friday, November 14, 2014 8:22:13 AM UTC-7, Josh Cartmell wrote:

 I've had issues with redirects and SSL before if I put in the wrong 
 Force host which is a backend editable setting.

 On Fri, Nov 14, 2014 at 3:19 AM, Josh B josh.ba...@wearetopsecret.com 
 wrote:

 I must be missing something, but the last few Nginx + Cartridge sites I 
 have launched I have to https the whole the site. If I don't the sections I 
 need SSL on just do a 302 redirect loop.

 Here are my settings:

 SSL_ENABLED = True
 SSL_FORCE_URL_PREFIXES = ('/shop/cart','/shop/checkout','/account',
 '/admin')
 SSL_FORCED_PREFIXES_ONLY = True

 I also enabled the SSL middleware. 

 My Nginx config matches the one provided.

 Thoughts?

 -- 
 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.
 For more options, visit https://groups.google.com/d/optout.




-- 
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: Cartridge creating a product with a user defined price

2014-11-17 Thread Josh B
This approach has been solid for me and currently using it in a production 
environment. For my use I needed real Donation products as they needed to 
expire or only sell a limited number. If you don't need that functionality 
then you can use what Josh C posted.

Josh

On Monday, November 17, 2014 4:56:44 AM UTC-7, henri wrote:

 Hey Josh,

 I also would like to implement donation driven products.
 Do you still stay with this approach or have you found a better solution?

 Henri 



-- 
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: Cart processors

2014-11-21 Thread Josh B
At first glance this seems like a pretty good approach.

On Sunday, November 16, 2014 9:56:11 PM UTC-7, Alex Hill wrote:

 Hi all,

 Currently discounts, tax and shipping are all dealt with in their own 
 separate handlers, and handled slightly differently from one another. I'd 
 like to unify these into a more flexible system of cart processors, 
 objects which provide methods to modify the entire cart and each line item. 
 Whenever the cart is modified, the line items and cart totals are 
 recalculated by calling each of the cart processors in sequence. Think of 
 it like middleware for shopping carts.

 A new setting would be introduced to define the list of processors that 
 should be run.

 The main point of this is to make it easier to define your own discount 
 systems - cases like free shipping for orders over $50 or buy any two of 
 this group of products and get a third free or registered users get 10% 
 off can't be implemented using the current discount system, and defining 
 your own is pretty messy. If tax and shipping can be implemented under a 
 system like this, it should simplify Cartridge's code in a few places as 
 well.

 django-shop implements this as cart modifiers – check out the API at 
 https://github.com/divio/django-shop/blob/master/shop/cart/cart_modifiers_base.py
 .

 Looking for general feedback, use cases, and any concerns or issues anyone 
 can see with a system like this.

 Cheers,
 Alex


-- 
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: Cartridge creating a product with a user defined price

2014-11-23 Thread Josh B
Create a page_processor for Product 
(http://mezzanine.jupo.org/docs/content-architecture.html#page-processors). 

On Saturday, November 22, 2014 3:42:09 PM UTC-7, henri wrote:

 Hallo Josh,

 Thanks a lot.
 This is a good starting point.

 One more question.
 Where do you put your form?
 It seems to me, that it shut go in shop/product.html, but how to inject it 
 there?

 Henri


 Am Freitag, 21. November 2014 22:35:00 UTC+1 schrieb Josh B:

 Sorry, was traveling and missed your message. What you will need to do is 
 create either a view or a page processor (
 http://mezzanine.jupo.org/docs/content-architecture.html#page-processors) 
 to post your new form to. Code samples below.

 Here is my form:
 form method=post id=add-cart action={{ 
 item.product.get_absolute_url }}
   {% csrf_token %}
   input type=hidden id=product_id name=product_id value={{ 
 item.product.id }} /
   input type=hidden name=quantity id=id_quantity value=1
   input type=text  class=donation id=donation_amount 
 name=donation_amount /
   button type=submit class=button smallDonate Now/button
 /form

 Form processing code:
 from .utils import Donation

 if request.method == POST and form.is_valid():
   product = Product.objects.get(id=request.POST.get(product_id))
   item = Donation(product, 
 float(request.POST.get(donation_amount,0.0)) )
   request.cart.add_item(item, 1)

 Utils
 class Donation(object):
 def __init__(self, product, unit_price, buyers_group):
 product_variation = product.variations.all()
 self.description = product.title
 self.unit_price = unit_price
 self.url = product.get_absolute_url()
 self.sku = product_variation[0].sku
 self.product = product
 self.image = product_variation[0].image
 self.buyers_group = buyers_group

 def price(self):
   return self.unit_price 

 def __unicode__(self):
 return self.description

 On Friday, November 21, 2014 2:20:29 PM UTC-7, henri wrote:

 Hallo,

 I still don't know really how to start.
 Is the implementation similar to what Josh Cartmell describes in his 
 Blog Collecting additional information on a per product basis in 
 Cartridge 
 http://bitofpixels.com/blog/collecting-additional-information-on-a-per-product-basis-in-cartridge/
 ?

 Henri


 Am Dienstag, 18. November 2014 19:22:01 UTC+1 schrieb henri:

 Hallo Josh,

 I also need the Donation option for real products, so I think your 
 approach ist the right for my case.

 I must say, I'm not only new with Mezzanine/Cartrige but also with 
 Django/Python.
 Before I was mainly coding in PHP.

 So I tried to understand your code and find a way to implement it, but 
 I think I'm not able to.
 I think it is somehow connected with shop/views.py but I have no idea 
 how.

 Maybe you can give me some hints,

 Henri



 Am Dienstag, 18. November 2014 00:03:54 UTC+1 schrieb Josh B:

 This approach has been solid for me and currently using it in a 
 production environment. For my use I needed real Donation products as 
 they 
 needed to expire or only sell a limited number. If you don't need that 
 functionality then you can use what Josh C posted.

 Josh

 On Monday, November 17, 2014 4:56:44 AM UTC-7, henri wrote:

 Hey Josh,

 I also would like to implement donation driven products.
 Do you still stay with this approach or have you found a better 
 solution?

 Henri 



-- 
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] Variable product price

2014-12-08 Thread Josh B
Hey Maxim,

To build off of what Josh said. I would create a ProductPricing model that 
spells out the specific rules and pricing for each property. Then when a 
user selects a date reference the pricing structure and utilize the user 
defined pricing to set the product to that price.

On Monday, December 8, 2014 10:38:25 AM UTC-7, Josh Cartmell wrote:

 Hey Maxim, a few ideas:

1. Have a cron job that runs every so often and updates the prices, 
based on the time of year
2. Take a look at 

 https://groups.google.com/forum/#!searchin/mezzanine-users/Cartridge$20creating$20a$20product$20with$20a$20user$20defined$20price/mezzanine-users/eyp0l-gnNt8/fXQsH-RAXzwJ,
  
it's not exactly what you are looking for but deals with having products 
without a predefined price.  The important takeaway is that the cart can 
handle having arbitrary products that don't necessary match up with items 
in the database.  So you could use Cartridge's cart (to some extent) 
without using the way it displays products.


 On Sun, Dec 7, 2014 at 3:44 AM, Maxim msh...@gmail.com javascript: 
 wrote:


 Hello,

 I'm trying to modify cartridge to make it a very simple reservation 
 system. In my project Product's price depend on time of the year( example: 
 june - August - $100, September-December -200, 300 the rest of the year) 
 and number of people( example: maximum 6 people,  any additional person 
 +$50 ). These conditions apply per product basis, products may have 
 different date ranges.

 When Customer  creates reservation, selects his check-in/check-out dates 
 and number of people.


 What would be the best approach to implement this within current 
 cartridge model?

 Any hints much appreciated.

 Regards

 -- 
 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.




-- 
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: Cartridge payment

2015-02-10 Thread Josh B
Hi Wesley,

Its really easy. Take a look 
at https://github.com/stephenmcd/cartridge/tree/master/cartridge/shop/payment 
to see the integrations people have already done. They are good examples if 
you need to write your own.

On Tuesday, February 10, 2015 at 5:44:28 AM UTC-7, Wesley wrote:

 Hi guys,
I have a question about payment.
 Currently, I see that, during payment process, user only enter card 
 number/name .etc that are required on the page.

 So, is it easy to interact with some other payment system, e.g. directly 
 with back system or something like Paypal .etc

 Thanks.
 Wesley


-- 
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] Partitioned media library with a common folder

2015-08-10 Thread Josh B
Hi Eduardo, I have symlinked folders before and it works really well. The only 
issue will be if a user deletes a shared image. 

-- 
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] Media Library Rename file issue

2015-07-08 Thread Josh B
Having a weird issue where I am unable to rename any image using the Media 
Library. Always getting this message (Only letters, numbers, underscores, 
spaces and hyphens are allowed.) Anyone else ever ran into this problem or 
have any ideas?

-- 
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: Stuck on something simple... trying to add a field to blogcategory

2015-09-13 Thread Josh B
Hey J M. You shouldn't need the models.py file. I think you if you add the 
following to your admin.py you will be good to go.

from copy import deepcopy
from django.contrib import admin
from mezzanine.blog.admin import BlogCategoryAdmin
from mezzanine.blog.models import BlogCategory

blog_fieldsets = deepcopy(BlogCategoryAdmin.fieldsets)
blog_fieldsets[0][1]["fields"].extend(["catType"])

class MyBlogCategoryAdmin(BlogCategoryAdmin):
fieldsets = blog_fieldsets

if BlogCategory in admin.site._registry:
  admin.site.unregister(BlogCategory)
admin.site.register(BlogCategory, MyBlogCategoryAdmin)

if BlogCategory in admin.site._registry:
  admin.site.unregister(BlogCategory)


On Sunday, September 13, 2015 at 9:56:13 AM UTC-6, J M wrote:
>
> *Bump*  Anyone?? 
>
> On Friday, September 11, 2015 at 3:16:25 AM UTC-4, J M wrote:
>>
>> I'm trying to to add a new field to blog category called "catType".  The 
>> purpose of this new 1 character field is to use it in templates (eg. if 
>> catType = '-' don't display the category or '+' to highlight the 
>> category).  I need to be able to update it from the category admin page.
>>
>> I've looked for help from a bunch of various guides/instructions eg:
>> http://mezzanine.jupo.org/docs/model-customization.html
>>
>> https://stackoverflow.com/questions/15345067/add-a-field-to-mezzanine-blogpost
>>  
>>
>> https://stackoverflow.com/questions/19935812/mezzanine-field-missing-from-the-form
>>
>> So far I've only got this working:
>>
>> in settings.py:
>> EXTRA_MODEL_FIELDS = (
>> (   "mezzanine.blog.models.BlogCategory.catType",
>> "django.db.models.CharField",
>> ("Category Type",),
>> {"max_length":1, "blank": False, "null": True, "default": True},
>> ),
>> )
>>
>>
>> sudo python manage.py makemigrations
>> python manage.py syncdb
>>
>> the new field  "catType" is there...
>>
>> sqlite> .schema blog_blogcategory
>> CREATE TABLE "blog_blogcategory" ("id" integer NOT NULL PRIMARY KEY 
>> AUTOINCREMENT, "title" varchar(500) NOT NULL, "slug" varchar(2000) NULL, 
>> "site_id" integer NOT NULL REFERENCES "django_site" ("id"), "catType" 
>> varchar(1) NULL);
>> CREATE INDEX "blog_blogcategory_9365d6e7" ON "blog_blogcategory" (
>> "site_id");
>>
>>
>> ===
>> this part isn't working...
>> ===
>>
>> I've created this "admin.py" and put it in my project's directory...
>>
>> from copy import deepcopy
>> from django.contrib import admin
>> from mezzanine.blog.admin import BlogCategoryAdmin
>> from mezzanine.blog.models import BlogCategory
>>
>> blog_fieldsets = deepcopy(BlogCategoryAdmin.fieldsets)
>> blog_fieldsets[0][1]["fields"].extend(["catType"])
>>
>> class MyBlogCategoryAdmin(BlogCategoryAdmin):
>> fieldsets = blog_fieldsets
>>
>> admin.site.unregister(BlogCategory)
>> admin.site.register(BlogCategory, MyBlogCategoryAdmin)
>>
>>
>> I've created this "models.py" and put it in my project's directory...
>>
>> from django.db import models
>> from mezzanine.pages.models import Page
>> print "in models"
>> print "in models"
>> print "in models"
>> class MyPage(Page):
>>   catType = models.TextField(max_length=1, blank=True, null=True)
>>
>>
>> My problem is that I don't really know what the correct steps are.
>>
>> If I add "admin" to apps I get "models aren't loaded yet".  
>>
>> Any assistance would be much appreciated!
>>
>>

-- 
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: Cartridge Admin Questions

2016-05-11 Thread Josh B
Hey Ryne,

1. Most clients I have worked with have existing SKUs for products so this 
makes it easier for those to be tied together.
2. There might be another reason but its also a limitation of Django 
Inlines. Also there is a way to change this functional but can cause other 
issues.
3. This is a tough one as we wouldn't want the Unit Price to be required, 
as I have had clients add products but not want them available for sale. 

On Wednesday, May 11, 2016 at 12:18:36 PM UTC-6, Ryne Everett wrote:
>
> The following observations and screenshots are from a fresh cartridge 0.11 
> project I just made.
>
>1. Why are sku fields editable? Cartridge uses them essentially as 
>foreign key's. Is there any use case for editing a sku from the admin? 
>Seems like a user could really screw things up with no appreciation for 
>what's going on under the hood.
>2. You can't edit ProductVariation's until you initially save the 
>Product:  Is this intentional, a bug, or a limitation of django admin 
>inlines?
>3. Until one adds a "unit price" to a variation, a product is 
>unavailable: But there is no indication that this is a problem in the 
>admin. Is this intentional, a bug, or a limitation of django admin? It 
>seems to me that this is probably unfixable without addressing #2 -- if 
> you 
>have to save the Product before editing the ProductVariation's, then 
>causing the Product validation to fail when a ProductVariation is missing 
> a 
>required field is not an option.
>
>

-- 
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: Mezzanine REST API 0.4.0 Released

2016-05-04 Thread Josh B
Very cool, just installed this and am excited to use it on this new 
project. Do you have plans to add Cartridge support? Trying to decide if I 
fork your project and add products or do a standalone app.

On Wednesday, March 2, 2016 at 11:17:17 AM UTC-7, Geo wrote:
>
> Hi all,
>
> Today I have released *mezzanine-api* 0.4.0, the RESTful web API for 
> Mezzanine, to PyPI and Github. A large number of requests were received 
> asking to support the new Mezzanine 4.1, Django 1.9, and to enable write 
> access to blog posts so that you can post and update blogs from mobile apps 
> etc. You will be pleased to know that these requests have all been 
> addressed in the new release. (However, please note that whilst the write 
> access has passed the core tests, it remains an experimental feature for 
> now.)
>
> Installation: http://gcushen.github.io/mezzanine-api/#installation
> Release notes: http://gcushen.github.io/mezzanine-api/release-notes/
> Support: https://gitter.im/gcushen/mezzanine-api
>
> Thank you to everyone who has provided valuable feedback to help improve 
> the API.
>
> George
>

-- 
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] Freelancers

2017-08-17 Thread Josh B
I have a site where the frontend code is done and its 10% wired up / models 
created. Any freelancers have time or interest in helping to wrap this up 
over the next 7 days??  Currently juggling 3 projects and this is the 
easiest one to freelance out.

-- 
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: Customizing Blog_Post_List

2017-05-10 Thread Josh B
Make sure your template is in the same directory structure as the original 
file. 

[YOUR APP]/templates/blog/blog_post_list.html
[YOUR APP]/templates/blog/blog_post_detail.html

On Wednesday, May 10, 2017 at 9:06:49 AM UTC-6, KD wrote:
>
> Hello all,
> I am trying to create a custom theme for a blog but am having some 
> difficulty.  So far I've:
> created an app 
> installed the app (above all other mezzanine apps)
> created a templates directory within the app which I copied 
> blog_post_list.html into
>
> The problems is that whenever I try to edit the blog_post_list.html file, 
> the changes are not reflected.  
>
> In urls.py I uncommented: url("^$", blog_post_list, name="home").  I 
> believe that the problem is that the blog_post_list function is pointing to 
> the standard template, and not the one within my app that I am trying to 
> customize. 
>
> Can anyone please give me insight to this problem?  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] No Payment step when $0

2017-10-19 Thread Josh B
We have been trying to hide the payment step when the cart has a $0 total. 
Has anyone pulled this off or any suggestions?

-- 
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: No Payment step when $0

2017-10-20 Thread Josh B
If someone comes across this in the future the solution we came up with is 
as follows:
1. If the cart is a $0 cart
2. Hide the payment fields and use javascript to populate them with fake 
data. This way the form will pass validation.
3. Add a check in the payment process step to no process the card if the 
cart is $0


On Thursday, October 19, 2017 at 10:05:46 AM UTC-6, Josh B wrote:
>
> We have been trying to hide the payment step when the cart has a $0 total. 
> Has anyone pulled this off or any suggestions?
>
>

-- 
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.