Skip to content

Instantly share code, notes, and snippets.

@eedeep
Created October 23, 2013 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eedeep/7112974 to your computer and use it in GitHub Desktop.
Save eedeep/7112974 to your computer and use it in GitHub Desktop.
CHECKOUT_STEPS = [{"template": "billing_shipping", "url": "details",
"title": _("Details")}]
CHECKOUT_STEP_FIRST = CHECKOUT_STEP_PAYMENT = CHECKOUT_STEP_LAST = 1
if settings.SHOP_CHECKOUT_STEPS_SPLIT:
CHECKOUT_STEPS[0].update({"url": "billing-shipping",
"title": _("Address")})
if settings.SHOP_PAYMENT_STEP_ENABLED:
CHECKOUT_STEPS.append({"template": "payment", "url": "payment",
"title": _("Payment")})
CHECKOUT_STEP_PAYMENT = CHECKOUT_STEP_LAST = 2
if settings.SHOP_CHECKOUT_STEPS_CONFIRMATION:
CHECKOUT_STEPS.append({"template": "confirmation", "url": "confirmation",
"title": _("Confirmation")})
CHECKOUT_STEP_LAST += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment