>
> Thanks for the great suggestion and helpful example!

You're welcome.

Do you have any suggestion regarding adding extra step into the checkout
> process? Like when the user clicks on the product, select the quantity and
> sizes, then there is a "Next" button to let the user continue adding more
> customization to the selected product.


Here's a couple ideas that come to mind.

   1. *Override the checkout_steps view just like you are the product view.*
   I dislike this approach because it's a lengthy, complex view you'll have to
   maintain and maintain compatibility with cartridge.
   2. *Use a custom product model and add the necessary fields to the
   product.* This functionality hasn't been merged in yet, but I'm pretty
   sure it will be. See https://github.com/stephenmcd/cartridge/pull/293.
   I'd be a little hesitant to put this into production in this development
   state, but if you can wait a few weeks or months it will be a much more
   maintainable solution in the long run.


On Thu, Jun 16, 2016 at 5:50 PM, Tran <nhantran...@gmail.com> wrote:

> Thanks for the great suggestion and helpful example!
>
> Do you have any suggestion regarding adding extra step into the checkout
> process? Like when the user clicks on the product, select the quantity and
> sizes, then there is a "Next" button to let the user continue adding more
> customization to the selected product.
>
> On Wednesday, June 15, 2016 at 6:14:00 AM UTC-6, Ryne Everett wrote:
>
>> I don't think there is any reason to monkey patch a view when you can
>> just override it in your urls.py by putting the urlpattern you want to
>> override above the cartridge urls. You can see an example of how I override
>> the product view in cartridge-downloads:
>> https://github.com/ryneeverett/cartridge-downloads#urlspy.
>>
>> On Tue, Jun 14, 2016 at 8:11 PM, Tran <nhant...@gmail.com> wrote:
>>
>>> I am trying to monkey patch the def product() in cartridge.shop.views by
>>> recreating the function in another app, but it doesn't work.
>>>
>>> in my app_name/page_processor.py, I did
>>>
>>> import cartridge
>>>
>>> def modified_product():
>>>   ....stuff...
>>>
>>> cartridge.shop.views.product = modified_product
>>>
>>> Do you think I did the right way? I am not sure if I imported cartridge
>>> correctly or the shop.views doesn't allow monkey patch
>>>
>>> --
>>> 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.
>

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