That sounds right.

On Sat, Jul 12, 2014 at 4:07 AM, Josh Cartmell <joshcar...@gmail.com> wrote:

> Hey Tristan, I think you would still use the cartridge checkout view but
> override the kwargs to specify your own form class, something like (this is
> off the top of my head so may not be exactly right):
>
> url("^shop/checkout/$", "cartridge.shop.views.checkout_steps", name =
> "checkout_steps", kwargs=dict(form_class=my.form.class))
>
> I've never done this before so if someone else who knows for sure could
> confirm or show the correct way that would be great!
>
>
> On Fri, Jul 11, 2014 at 1:07 PM, Tristan Barry <tris...@thebarry.net>
> wrote:
>
>> Good afternoon! I am working on a project where we would like to use
>> Cartridge for an online store. Out of the box it looks great; but I'd like
>> to modify the checkout form. Reading through the documentation it sounded
>> like I could sub-class the OrderForm class in 'cartridge.shops.forms'. When
>> going through these steps I saw this message:
>>
>> "The SHOP_CHECKOUT_FORM_CLASS setting is deprecated - please define your
>> own urlpattern for the checkout_steps view, passing in your own form_class
>> argument."
>>
>> But I'm running into problems right off the start. Does this mean I can
>> just write my own URL pattern for *only* the checkout form? Something like
>> this?
>>
>> url("^shop/checkout/$", "myproject.views.checkout_steps", name =
>> "checkout_steps")
>> ?
>>
>> Or do I need to remove the cartridge urls pattern:
>>   url(r"^shop/", include("cartridge.shop.urls")),
>> and replace it with a modified version of 'cartridge.shop.urls'? This
>> doesn't seem very DRY?
>>
>> Can anyone offer any hints on how to get started?  Should the OrderForm
>> class still be sub-classed to assist with making this all 'work'? Any help??
>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.

Reply via email to