Text indication of progress in shopping process - Question
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"} 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 |
Try this (not tested):
Code:
{elseif $smarty.get.paymentid ne "" and $smarty.get.mode eq "checkout"} |
Zaja,
Many thanks - works a treat. All I had to do in addition was change the order of a couple of the statements. For any folk who are interested, here's the code i'm using to determine where the customer is in the selling process. Guess you could also use images rather than text: Add this to the top of /customer/home_main.tpl : Code:
{* JB - Hack to display progress - start *} |
Quick update on this:
1. Create a tpl for each 'step' in the process 2. Create progress_bar.tpl (substituting the include with your correct path). Code:
{if $main eq "catalog"}{include file="customer/main/progress_bar_step0.tpl"} 3. Call progress_bar.tpl from your customer/home.tpl using something like this: Code:
{if $main eq "catalog" and $current_category.category eq ""}<td></td> Cheers, |
Many, many, many thanks for this, this mod works perfectly!
Thanks Dan |
No problem! - glad to see other folk using it. I think 4.1.0 has a more integrated version of a progress bar, so that might be worth keeping an eye on, too.
Cheers, |
All times are GMT -8. The time now is 05:22 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.