I'm trying to implement a kind of 'poor man's ezCheckout'(!) in my XC install. This just consists of a text description of where you are in the shopping process (nowhere near as flexible or as thorough as Jon's mod, but i'm keen to learn a bit more about XC's inner workings..)
I've added the following to the top of my /customer/home_main.tpl (haven't created any new lang items yet, cos i'm lazy..)
Code:
{if $main eq "catalog"}
<P class="mainheading">Shop (step 1 of 7)</P>
{elseif $main eq "product"}
<P class="mainheading">Shop (step 1 of 7)</P>
{elseif $main eq "ezupsell"}
<P class="mainheading">Recommendations (step 2 of 7)</P>
{elseif $main eq "cart"}
<P class="mainheading">Checkout (step 3 of 7)</P>
{elseif $main eq "anonymous_checkout"}
<P class="mainheading">Your details (step 4 of 7)</P>
{elseif $main eq "checkout"}
<P class="mainheading">Payment method (step 5 of 7)</P>
{elseif $payment_data.payment_method ne ""}
<P class="mainheading">Payment details (step 6 of 7)</P>
{elseif $main eq "order_message"}
<P class="mainheading">Your order is confirmed (step 7 of 7)</P>
{/if}
And...(amazingly), - this all works fine, until you get to 'Step 6' (which is the 'enter payment details' page.) This page has the $main of 'checkout' which is effectively the same as my previous 'step'
QUESTION: What would my {elseif} statement need to look like in order for me to identify that the customer is on the 'Payment details' page (the one that calls /customer/main/payment_cc.tpl)
Hope that makes sense.....
Cheers,
JB