X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Removing minicart from home page (https://forum.x-cart.com/showthread.php?t=39946)

jkirkpatrick 05-21-2008 06:52 AM

Removing minicart from home page
 
Hello,

I'm sure this has been answered before, but I couldn't find any information.

I'd like to remove the minicart from my home page.

Is that possible? If so, how would I do it?

Thanks in advance. I REALLY appreciate everyone's willingness to help others on this forum. I hope I learn enough to return the favor some day!

Jennifer

balinor 05-21-2008 07:41 AM

Re: Removing minicart from home page
 
Open up customer/home.tpl and comment out this bit:

{include file="customer/menu_cart.tpl" }

jkirkpatrick 05-21-2008 10:04 AM

Re: Removing minicart from home page
 
Thanks for the quick response.

That removed it from every page. I only wanted to remove it from the home page.

Sorry for not being clear.

Thanks,
Jennifer

balinor 05-21-2008 10:05 AM

Re: Removing minicart from home page
 
Oh sorry, in that case:

{if $main eq "catalog" and $current.category eq ""}
{else}
{include file="customer/menu_cart.tpl" }
{/if}

jkirkpatrick 05-21-2008 06:56 PM

Re: Removing minicart from home page
 
Thanks, this is close.

But it still doesn't show the minicart on the category pages...

Thanks,
Jennifer

balinor 05-21-2008 07:00 PM

Re: Removing minicart from home page
 
Sorry...typing too fast and not paying attention :(

{if $main eq "catalog" and $current_category.category eq ""}
{else}
{include file="customer/menu_cart.tpl" }
{/if}

jkirkpatrick 05-21-2008 07:06 PM

Re: Removing minicart from home page
 
Perfect! Thank you!

Now if I can just figure out why I keep getting a big gap between my header and the main part of the page.

Grrrr.

http://www.bellaphotojewelry.com - any ideas why this is happening on the home page?

Thanks,
Jennifer

Yurij 05-22-2008 12:32 AM

Re: Removing minicart from home page
 
Quote:

Originally Posted by jkirkpatrick
Perfect! Thank you!

Now if I can just figure out why I keep getting a big gap between my header and the main part of the page.

Grrrr.

http://www.bellaphotojewelry.com - any ideas why this is happening on the home page?

Thanks,
Jennifer


You spoil file "skin1/customer/home.tpl"




Part of the code of your page: no tags <tr> <td> after tag <table> and etc.

PHP Code:

...............
<
table width="780" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" border="0">
<
br />

<
br />
 
<
br />
<
br />
<
img src="/skin1/images/spacer.gif" width="150" height="1" alt="" />
</
td>
<
td valign="top" width="100%">
............. 


jkirkpatrick 05-22-2008 02:49 PM

Re: Removing minicart from home page
 
You know what really helped, viewing the code in an HTML editor.

I couldn't see all the line breaks in the X-Cart Editor.

Problem fixed!

Thanks,
Jennifer


All times are GMT -8. The time now is 06:36 PM.

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