X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   My fast lane checkout (checkout visual steps) (https://forum.x-cart.com/showthread.php?t=20718)

Lionel 03-25-2006 04:19 AM

My fast lane checkout (checkout visual steps)
 
This will add visual steps to your checkout

I used it with cartmods easy check-out mod but will work without it as per post below.

Create a tpl named fastlane.tpl in customer/main

I placed in home.tpl right under

Quote:

{if $main eq "checkout"}
{include file="customer/main/fastlane.tpl"}{/if}

for the cart image, I simply flipped cart_full.gif and named the new one cart_full_r.gif


contents of fastlane.tpl
Code:

{if $mode eq checkout || $comode eq "" }
{if $smarty.get.paymentid eq ""  }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="{if $anonymous eq "Y"}25%{else}33%{/if}" valign="top"><div align="right">[img]{$ImagesDir}/cart_full_r.gif[/img]</div></td>
    {if $anonymous eq "Y"}<td width="25%"></td>{/if}
 <td width="{if $anonymous eq "Y"}25%{else}33%{/if}" valign="top">
 <td width="{if $anonymous eq "Y"}25%{else}33%{/if}" valign="top">
  </tr>
  <tr>
    <td height="20" valign="top" bgcolor="#009933" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  {if $anonymous eq "Y"}<td style="border-top:1px solid #000000;border-bottom:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>{/if}
    <td style="border-top:1px solid #000000;border-bottom:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
    <td style="border-right:1px solid #000000;border-top:1px solid #000000;border-bottom:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  </tr>
  <tr><td align="right">Your cart contents</td>
    {if $anonymous eq "Y"}<td align="center" height="10" valign="top">Login or register</td>{/if}
<td align="center">{if $anonymous ne "Y"}{/if}{$lng.lbl_payment_method}{if $anonymous ne "Y"}{/if}</td>
    <td align="center">Verify and finalize</td>
  </tr>
</table>
{/if}
{/if}


{if $anonymous eq "Y"}

{if $comode eq 1 and $smarty.get.paymentid eq ""}

<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="{if $anonymous eq "Y"}25%{else}33%{/if}" valign="top"></td>
    {if $anonymous eq "Y"}<td width="25%"><div align="right">[img]{$ImagesDir}/cart_full_r.gif[/img]</div></td>{/if}
 <td width="{if $anonymous eq "Y"}25%{else}33%{/if}" valign="top">
 <td width="{if $anonymous eq "Y"}25%{else}33%{/if}" valign="top">
  </tr>
  <tr>
    <td height="20" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  {if $anonymous eq "Y"}<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>{/if}
    <td style="border-top:1px solid #000000;border-bottom:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
    <td style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  </tr>
  <tr><td align="center">Your cart contents</td>
    {if $anonymous eq "Y"}<td align="right" height="10" valign="top">Login or register</td>{/if}
<td align="center">{$lng.lbl_payment_method}</td>
    <td align="center">Verify and finalize</td>
  </tr>
</table>

{/if}
{/if}


{if $comode eq 1 and $smarty.get.paymentid eq "" and $login ne ""}
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="33%" valign="top"></td>
    <td width="33%" valign="top"><div align="right">[img]{$ImagesDir}/cart_full_r.gif[/img]</div></td>
 <td width="33%" valign="top"></td>
  </tr>
  <tr>
    <td height="20" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  {if $anonymous eq "Y"}<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>{/if}
    <td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
    <td style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  </tr>
  <tr><td align="center">Your cart contents</td>
    {if $anonymous eq "Y"}<td height="10" valign="top"> </td>{/if}
<td align="right">{$lng.lbl_payment_method}</td>
    <td align="center">Verify and finalize</td>
  </tr>
</table>

{/if}

{if $payment_data.payment_method ne ""}

<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="33%" valign="top"></td>
    <td width="33%" valign="top"></td>
 <td width="33%" valign="top"><div align="right">[img]{$ImagesDir}/cart_full_r.gif[/img]</div></td>
  </tr>
  <tr>
    <td height="20" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
 
    <td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
    <td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;">[img]{$ImagesDir}/px.gif[/img]</td>
  </tr>
  <tr><td align="center">Your cart contents</td>
 
<td align="center">{$lng.lbl_payment_method}</td>
    <td align="right">Verify and finalize</td>
  </tr>
</table>

{/if}




ShishaPipeUK 03-25-2006 09:06 AM

Looks good Lionel, I was not too sure what it was at first or even if it would work with out Cartmods easy checkout mod.

So to help everyone, you can see a picture of it below, and it works on 4.0.18 and you dont need the cartmods easy checkout mod.

It looks nice, well done.

Dont forget the image for shopcart/skin1/images/cart_full_r.gif - Right click this image and save it. http://www.shisha.co.uk/shopcart/skin1/images/cart_full_r.gif

Also the above code goes into /shopcart/skin1/customer/main/fastlane.tpl

http://www.shisha.co.uk/images/shopcartcheckout.jpg

Lionel 03-25-2006 01:49 PM

Thanks for posting pictures.

Asiaplay 03-30-2006 11:21 AM

Thanks - this one is cool... and was wanting to do this!!!
 
Thanks to you both for a great mod & clear pics... really like this.
The way you have done looks really nice as well!!!

It is a feature I think makes the checkout process totally clear (and one of the few immediate things I liked in V4.1.0 - which is unfortunately a long way off being stable). At last a checkout for X-Cart that is cool as well as functional.. well done guys.

Als I have been meaning to try doing it (but so much else to do first).
So happy to see this mode here - I will try it shortly.

Thanks again - really appreciated - Asiaplay...

PhilJ 04-01-2006 06:55 AM

removed, sigh

Lionel 04-01-2006 07:05 AM

that has nothing to do with my mod.

chris 04-02-2006 08:53 PM

have installed your mod but can it show at top as well
 
Hi Lionel,
I have installed your mod but can you tell me how to make it show at the top of the page as well as at the bottom as I think this would be even more helpful.

For those that are interested the mod can be seen working at www.heatbands.com which is running on v 4.017

girlsbits 05-06-2006 03:39 AM

Re: have installed your mod but can it show at top as well
 
Quote:

Originally Posted by chris
Hi Lionel,
I have installed your mod but can you tell me how to make it show at the top of the page as well as at the bottom as I think this would be even more helpful.



I have pasted the code twice to get it to appear at the top and bottom of the checkout process.

Just copy and paste this whole section:-

CODE:


{if $main eq "catalog" and $current_category.category eq ""}{else}{include file="location.tpl"}{/if}
{if $main eq "checkout"}
{include file="customer/main/fastlane.tpl"}{/if}
{include file="dialog_message.tpl"}
{include file="customer/home_main.tpl"}

{if $main eq "checkout"}
{include file="customer/main/fastlane.tpl"}{/if}

END CODE

oldtimesoap 05-23-2006 11:12 AM

Thanks!
 
This was my first mod.
Let me say thank you.

Grant 05-30-2006 02:16 PM

Big props for this mod :)

I've made a few changes and instead of the cart & bar image i'm using a graphical & text step display and it has made my checkout look so much tastier!

Check it out for yourselves at www.wyzeshop.com

girlsbits 05-30-2006 02:27 PM

Quote:

Originally Posted by Grant
Big props for this mod :)

I've made a few changes and instead of the cart & bar image i'm using a graphical & text step display and it has made my checkout look so much tastier!

Check it out for yourselves at www.wyzeshop.com


Holy Schmoly!!! Tastier Schmastier indeed!!! Such attention to detail - it looks fab and I love it!!! Good luck to you.

Grant 05-30-2006 03:19 PM

Quote:

Originally Posted by girlsbits
Quote:

Originally Posted by Grant
Big props for this mod :)

I've made a few changes and instead of the cart & bar image i'm using a graphical & text step display and it has made my checkout look so much tastier!

Check it out for yourselves at www.wyzeshop.com


Holy Schmoly!!! Tastier Schmastier indeed!!! Such attention to detail - it looks fab and I love it!!! Good luck to you.


Haha thanks Girlsbits (which I have to say is either a very innocent or very cheeky name).

I'm still miles off having this store anywhere finished, still lots of stuff to do but it's coming on nicely :)

hues 09-06-2006 06:03 AM

Re: My fast lane checkout (checkout visual steps)
 
Thanks for a nice mod.
I used it on my website but I am facing a problem. The images dont show up with the progress bar.
On the page where the code should show the cart image, it shows
[img]/skin1/images/cart_full_r.gif[/img] instead of the image.

Why it is not picking up the image, while I have saved it in the skin1/images/ directory?

MichelleT 09-07-2006 05:54 PM

Re: My fast lane checkout (checkout visual steps)
 
I had the same problem that hues had. To fix the cart image, I had to change the [img] tags in fastlane.tpl to <IMG src=" and the [/img] tags to ">.

However, I have a different problem. In step one, the progress bar doesn't show at all. In step 2, the progress bar only shows up as step 1: "your cart contents." Step 3, however, works fine - the progress bar is a full 3 steps. Does anyone know how to fix this? Thanks in advance.

hues 09-07-2006 07:52 PM

Re: My fast lane checkout (checkout visual steps)
 
Thank you MichelleT, Now the image is showing.
I also have the same problem which you have mentioned.
when the progress bar should show step 1 it does not appear.
When it should show step 2 it shows step 1. The progress bar never shows step two.

Anyone knows how to fix? Thanks

holddigga 09-25-2006 10:30 AM

Re: My fast lane checkout (checkout visual steps)
 
Lionel, thanks for a great mod! For some odd reason, it didn't work too well with my test site ( v.4.0.18 )

I have made some changes to the Fastlane mod in order for it to work on v4.0.18.

I have it working on my test website( v.3.4.6 ) ( about to go live with 4.0.18 ) My live site does not have fastlane, as its old and needs updating..

I added the following code to customer/home.tpl, right after the line that says:

Code:

{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}

I added this:
Code:

{include file="customer/main/fastlane.tpl"}
<br><br>


Then, I added this into fastlane.tpl:

Code:

{if $checkout_step eq "1" and $anonymous eq "Y" }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
            <td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
        <td width="33%" valign="top"></td>
        <td width="33%" valign="top"></td>
  </tr>
  <tr>
            <td height="20" valign="top" bgcolor="#009933" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>{if $anonymous eq "Y"}<td style="border-top:1px solid #000000;border-bottom:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>{/if}
            <td style="border-top:1px solid #000000;border-bottom:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
            <td style="border-right:1px solid #000000;border-top:1px solid #000000;border-bottom:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
  </tr
  <tr>
        <td align="center">Login or register</td>
        <td align="center">{$lng.lbl_payment_method}</td>
            <td align="center">Verify and finalize</td>
  </tr>
</table>
{/if}


{if $checkout_step eq "2" and $smarty.get.paymentid eq "" || $checkout_step eq "1" and $anonymous eq ""  }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
            <td width="33%" valign="top"></td>
            <td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
        <td width="33%" valign="top"></td>
  </tr>
  <tr>
            <td height="20" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>{if $anonymous eq "Y"}<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>{/if}
            <td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
            <td style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
  </tr>
  <tr>
        <td align="center">Login or register</td>
        <td align="center">{$lng.lbl_payment_method}</td>
            <td align="center">Verify and finalize</td>
  </tr>
</table>
{/if}

{if $checkout_step eq "2" and $smarty.get.paymentid ne "" and $login ne "" || $checkout_step eq "3" }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
            <td width="33%" valign="top"></td>
            <td width="33%" valign="top"></td>
        <td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
  </tr>
  <tr>
    <td height="20" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
    <td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
    <td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"><img src="{$ImagesDir}/px.gif"></td>
  </tr>
  <tr>
        <td align="center">Login or register</td>
        <td align="center">{$lng.lbl_payment_method}</td>
            <td align="center">Verify and finalize</td>
  </tr>
</table>
{/if}


Lionel, I hope you don't mind me changing the code to get it to work..

MichelleT 09-25-2006 12:15 PM

Re: My fast lane checkout (checkout visual steps)
 
Thanks so much, holddigga, works perfect for me now.

ranger82nd 09-26-2006 10:17 AM

Re: My fast lane checkout (checkout visual steps)
 
Could someone clarify what px.gif is for me?
In IE it shows the X and I don't have the image in my default images directory.

holddigga 09-26-2006 10:23 AM

Re: My fast lane checkout (checkout visual steps)
 
I am not sure.. What I did was copy null.gif into that images folder, and rename it as px.gif.. I'd love to hear what Lionel used it for!

hues 09-26-2006 07:51 PM

Re: My fast lane checkout (checkout visual steps)
 
I just removed all reference to px.gif and also reduced the height of the <td> to 10 pixels. It works perfect.

mcitde 09-28-2006 06:08 AM

Re: My fast lane checkout (checkout visual steps)
 
I just noticed that you are missing some </td> And these <td width="33%" valign="top"></td> should be like this--> <td width="33%" valign="top">&nbsp;</td> otherwise the browser will ignore them.
Quote:

Originally Posted by holddigga
<tr>
<td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
<td width="33%" valign="top"> <-- missing end tag
<td width="33%" valign="top"> <-- missing end tag
</tr>
<tr>


holddigga 09-28-2006 07:22 AM

Re: My fast lane checkout (checkout visual steps)
 
so noted, and fixed! Thanks!

Terrybraley 05-22-2007 08:15 AM

Re: My fast lane checkout (checkout visual steps)
 
I'm getting this error with this mod
Warning: Smarty error: unable to read resource: "customer/main/fastlane.tpl" in /home/content/r/o/a/roadrash/html/novelties/Smarty-2.6.9/Smarty.class.php on line 1088

whsu716 05-23-2007 05:35 AM

Re: My fast lane checkout (checkout visual steps)
 
If you created the file outside of the x-cart admin area (ie Dreamweaver), then you'll need to CHMOD the permission I believe.

Scrapbooker 05-24-2007 08:48 PM

Re: My fast lane checkout (checkout visual steps)
 
Thanks to Holddigga and esp Lionel for this. My site has it showing while going through the checkout but not in the cart. When I try to amend the code to be added to home.tpl it jumbles up the whole screen and adds stuff twice. Not sure how to correct this...?

Thanks

Terrybraley 05-25-2007 04:51 AM

Re: My fast lane checkout (checkout visual steps)
 
You were correct whsu716, Thanks :)

Terrybraley 05-25-2007 05:22 AM

Re: My fast lane checkout (checkout visual steps)
 
For some reason, my Borders dont show: I have a white BG

{if $checkout_step eq "1" and $anonymous eq "Y" }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
<td width="33%" valign="top">&nbsp;</td>
<td width="33%" valign="top">&nbsp;</td>
</tr>
<tr>
<td height="10" valign="top" bgcolor="#009933" style="border-right:1px solid #000000;border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;"></td>{if $anonymous eq "Y"}<td style="border-top:1px solid #000000;border-bottom:1px solid #000000;"></td>{/if}
<td style="border-top:1px solid #000000;border-bottom:1px solid #000000;"></td>
<td style="border-right:1px solid #000000;border-top:1px solid #000000;border-bottom:1px solid #000000;"></td>
</tr
<tr>
<td align="center">Login or register</td>
<td align="center">{$lng.lbl_payment_method}</td>
<td align="center">Verify and finalize</td>
</tr>
</table>
{/if}


{if $checkout_step eq "2" and $smarty.get.paymentid eq "" || $checkout_step eq "1" and $anonymous eq "" }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" valign="top">&nbsp;</td>
<td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
<td width="33%" valign="top"></td>
</tr>
<tr>
<td height="10" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;"></td>{if $anonymous eq "Y"}<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"></td>{/if}
<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"></td>
<td style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"></td>
</tr>
<tr>
<td align="center">Login or register</td>
<td align="center">{$lng.lbl_payment_method}</td>
<td align="center">Verify and finalize</td>
</tr>
</table>
{/if}

{if $checkout_step eq "2" and $smarty.get.paymentid ne "" and $login ne "" || $checkout_step eq "3" }
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" valign="top">&nbsp;</td>
<td width="33%" valign="top">&nbsp;</td>
<td width="33%" valign="top"><div align="right"><img src="{$ImagesDir}/cart_full_r.gif"></div></td>
</tr>
<tr>
<td height="10" valign="top" bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-left:1px solid #000000;"></td>
<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;"></td>
<td bgcolor="#009933" style="border-bottom:1px solid #000000;border-top:1px solid #000000;border-right:1px solid #000000;"></td>
</tr>
<tr>
<td align="center">Login or register</td>
<td align="center">{$lng.lbl_payment_method}</td>
<td align="center">Verify and finalize</td>
</tr>
</table>
{/if}


All times are GMT -8. The time now is 04:05 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.