View Single Post
  #4  
Old 07-06-2005, 01:12 PM
 
jb5ep jb5ep is offline
 

Advanced Member
  
Join Date: Apr 2005
Location: U.K.
Posts: 65
 

Default

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"} {elseif $main eq "product"}{include file="customer/main/progress_bar_step1.tpl"} {elseif $main eq "ezupsell"}{include file="customer/main/progress_bar_step2.tpl"} {elseif $main eq "cart"}{include file="customer/main/progress_bar_step3.tpl"} {elseif $main eq "anonymous_checkout"}{include file="customer/main/progress_bar_step4.tpl"} {elseif $smarty.get.paymentid eq "" and $smarty.get.mode eq "checkout"}{include file="customer/main/progress_bar_step5.tpl"} {elseif $main eq "checkout"}{include file="customer/main/progress_bar_step6.tpl"} {elseif $main eq "order_message"}{include file="customer/main/progress_bar_step7.tpl"} {else} {/if}

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> {else}{include file="customer/main/progress_bar.tpl"}{/if}

Cheers,
__________________
X-Cart 4.0.17
ezUpsell
PHP 4.4.1
MySQL 4.0.25-standard
Apache 1.3.34
Linux
Reply With Quote