Hi Joe,

I know very well how you feel. I compiled my first open source project from
source in 1994, went "full time" with software development in 2008, have
been *de facto* CTO of a tiny startup for about three years, yet still feel
like a dilettante most days. And every day I recognize how much more there
is to learn.

In my (very old) project, I copied
https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/views.py#L208-L341
wholesale, then tortured it to suit my needs and added a url pattern to hit
it, which is exactly the path you took. I also created a custom OrderForm
which subclassed FormsetForm and DiscountForm, which was critical because I
was adding HTML5 placeholders before Mezzanine had those baked in.

Regarding Paypal,
https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/payment/paypal.py#L86-L105
requires the billing data.

-ken

On Thu, Apr 7, 2016 at 9:29 AM, Joseph Mohan <[email protected]> wrote:

> I've been trying to go at it from urls.py, aiming to pass the
> checkout_step to a view, something like:
>
>     url("^shop/cart/$", "cartridge.shop.views.checkout_steps", name =
> "checkout_steps", kwargs=dict(step='confirmation')),
>
> but failing miserably!
>
> I understand that i could subclass OrderForm and hide/remove fields but it
> would still add an extra step/page.
>
> I am definitely struggling to truly understand the flow of cartridge, (but
> learning everyday, absolutely love mezzanine-cartridge) but am punching
> above my weight a little (self taught coder of about 2-3 years)
>
> Thanks for your quick reply, Joe
>
> On Thursday, 7 April 2016 14:00:24 UTC+1, Kenneth Bolton wrote:
>>
>> What have you tried so far?
>>
>> What you want to do is not difficult. Write views, forms, urls, and
>> templates following the examples provided in the source of Mezzanine &
>> Cartridge. Reading and understanding the Cartridge source is critical; once
>> you grok the flow, most features are fairly trivial to implement.
>>
>> -ken
>>
>> On Thu, Apr 7, 2016 at 8:38 AM, Joseph Mohan <[email protected]> wrote:
>>
>>> I need to be able to pretty much completely remove the shipping/billing
>>> form. So the user would click the product, got to product page, "buy", show
>>> checkout, and then skip straight to payment (which is paypal)
>>>
>>> The reason for this is the user has to sign in to paypal separately, and
>>> none of the data from the billing/shipping is ever used.
>>>
>>> Please 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 [email protected].
>>> 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to