Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Removing minicart from home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-21-2008, 06:52 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default 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
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #2  
Old 05-21-2008, 07:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removing minicart from home page

Open up customer/home.tpl and comment out this bit:

{include file="customer/menu_cart.tpl" }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-21-2008, 10:04 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default 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
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #4  
Old 05-21-2008, 10:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-21-2008, 06:56 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default Re: Removing minicart from home page

Thanks, this is close.

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

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #6  
Old 05-21-2008, 07:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 05-21-2008, 07:06 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default 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
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #8  
Old 05-22-2008, 12:32 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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%">
............. 
Reply With Quote
  #9  
Old 05-22-2008, 02:49 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default 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
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:15 PM.

   

 
X-Cart forums © 2001-2020