This shouldn't be an editable setting exposed in the admin actually, it's a
bug that it appears there (since the site won't potentially pick up its
value at the right time, as you've discovered) which I'll fix shortly.

In the mean-time, you can override it by defining
the SHOP_PAYMENT_STEP_ENABLED setting in your settings project and setting
it to False in Python - this will certainly achieve what you want.


On Tue, May 13, 2014 at 8:38 PM, Emilio Garcia <[email protected]> wrote:

> Hi all
>
> I'm new to this group and also very new to mezzanine and django, so I beg
> your pardon if my question is a bit confusing or I am not very precise.
>
> I'm configuring a small site with a shop powered by cartridge and I'm
> trying to skip the payment step when proceeding to checkout. In the admin I
> change the corresponding setting so that the payment step is skipped. I
> look in the database settings table and I see that
> the SHOP_PAYMENT_STEP_ENABLED value is set to 'false'. But when I test it
> on my site the step asking for the credit card details still appears. I've
> managed to skip it by manually editing the checkout.py file and commenting
> out the following lines:
>
> if settings.SHOP_PAYMENT_STEP_ENABLED:
>          CHECKOUT_STEPS.append({"template": "payment", "url": "payment",
>                                  "title": _("Payment")})
>          CHECKOUT_STEP_PAYMENT = CHECKOUT_STEP_LAST = 2
>
> This way the payment step is skipped during the checkout process, but I
> reckon that this is a bit undesirable since I will have once again the same
> problem when I update cartridge modules. Do you have any ideas why this
> could be happening to me? Why is mezzanine ignoring the
> SHOP_PAYMENT_STEP_ENABLED  setting? I am testing this in my ubuntu machine
> using the built-in server that starts with *manage.py runserver *and
> postgresql as database.
>
> Thank you very much for your help!
>
> Emilio
>
> --
> 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.
>



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

Reply via email to