In certain cases customer check out with a {cart_total} <= 0,00. This happens eg. if a customers redeems a coupon code worth, lets say € 20,00 but in his cart there is only an item worth € 10,00 (shipping neclected for ease of understanding).

Whenever this happens I'd like the customer to overjump the page where he would have to decide on which payment method to choose.

This is my basic flow: Cart > Adress > Payment method > Confirmation with purchase Button.

Now, when a customer is on the Adress page and the cart_total <= 0,00 they should be redirected to the Confirmation page directly.

How would I go about this? I have tried using if conditionals in the {exp:cartthrob:save_customer_info_form} tag but it won't work (parsing issue I guess).

Something like this:

     {if {cart_total} > 0,00}
class="validate" secure_action="yes" secure_return="yes"}

Thanks for any ideas! Cheers

  • This is awesome. Thank you for posting your findings.
    – user3596
    Dec 15, 2014 at 19:14

1 Answer 1


Alright folks, I've got this figured out. For the sake of a better answered quota I am answering my own question.

This is how ended up doing it:

{if '{exp:cartthrob:cart_total prefix=""}' > 0}
     {stash:embed name="snippets:adress-form-a" process="start"}
     {stash:embed name="snippets:adress-form-b" process="start"}

In the stash embeds there are two different {exp:cartthrob:save_customer_info_form} with different redirects. Case solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.