Hello, I had the same need and here is what I did. I have a local app called "custom" where goes all my - surprise !- custom stuff. In custom/fields.py and custom/form/order.py I use the following code : https://gist.github.com/lucmilland/9047978 . Then I just have to set SHOP_CHECKOUT_FORM_CLASS = 'custom.forms.order.NewOrderForm' et it's good to go :)
Hope this help, Luc Le lundi 17 février 2014 à 01:37 -0800, Jacob a écrit : > Hello > > If I wanted to modify a field in Cartridge.model.Order then how would I > accomplish that? > > Specifically, I would like to modify the country and state fields to be > choice fields instead. > > I read something about monkey patching but I'm not sure how to go about > this. > > OR > > Is there a way to modify the checkout form to make country and state fields > selectable? > > some guidance is much appreciated > Thank you! > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
