Forums / Templates, Stylesheets, Page Layout / Remove [more] from shopping cart header

Remove [more] from shopping cart header

Locked

Views: 1,648

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
3 Nov 2008, 6:30 PM
#1
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Remove [more] from shopping cart header

In my shopping cart sidebox, the header says "Shopping Cart [more]" that links to the active shopping cart. I like the link, but I want to remove the word [more] because it messes up my header design. For the life of me, I can't locate the proper file to do this.

The site is: https://www.kings-kreations.com/zen

TIA!

3 Nov 2008, 6:53 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove [more] from shopping cart header

Use the Developers Toolkit in admin > Tools to search for [more]. This will show you the file and line number where it is defined:

/includes/languages/english.php

Line #74 : define('BOX_HEADING_LINKS', '  [more]');

Edit /includes/languages/your_template/english.php and change this to

define('BOX_HEADING_LINKS', '');

3 Nov 2008, 9:10 PM
#3
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Remove [more] from shopping cart header

Hi Glenn,

Thanks for the info, I'm trying to do the same thing (I'm using an image to replace the sidebox header text).
This mod works but leaves a gap beneath the shopping cart header image.

You can see what I mean if you head over to the store we're working on and add something to the cart so it shows up...

https://www.tradersupplies.co.uk

Any idea of a solution?

Cheers
Dunc

3 Nov 2008, 9:25 PM
#4
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Remove [more] from shopping cart header

Thanks so much, Glenn, that worked perfectly!

3 Nov 2008, 11:11 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove [more] from shopping cart header

Glad to hear it!

Dunk - the Image Titles mod is built to automatically swap an image for the standard text (including the [more]), and it doesn't require editing each sidebox separately.

3 Nov 2008, 11:24 PM
#6
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Remove [more] from shopping cart header

The Image Titles mod? I'm not sure if I'm familiar with this, I just followed the instructions in the below link.

https://www.zen-cart.com/tutorials/index.php?article=135

The white space problem is an odd one, I've applied exactly the same css to the right hand sideboxes as I did to the left but for some reason white space is appearing under the images of the right hand sideboxes :frusty:

3 Nov 2008, 11:33 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove [more] from shopping cart header

I get that space below the Latest Additions and Currency headings, too - not sure if they were like that before I added an item to the cart, but they stayed gapped after I removed it.

The tutorial is the long way around to do the substitution. There is a more elegant way involving putting the whole <img> HTML code in the define statement, but that still doesn't affect the [more].
Image Titles takes all those factors into account (link in my sig).

3 Nov 2008, 11:38 PM
#8
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Remove [more] from shopping cart header

It seems to be the right sidebox heading images. Did you edit the right side ones with a program that perhaps didn't preserve their background transparency?

3 Nov 2008, 11:45 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove [more] from shopping cart header

Your gap problem is caused by putting a background-color in the right sidebox headings:```
h3.rightBoxHeading, h3.rightBoxHeading a {
font-size: 1.1em;
color: #FFFF00;
}

.rightBoxHeading {
margin: 0em;
background-color: #ffffff;
padding: 0px;
}

4 Nov 2008, 1:28 AM
#10
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Remove [more] from shopping cart header

Glen,

Thanks so much, that worked perfectly. I would've spent hours tearing my hair out over it!
Image Titles is a great little mod too, I'll be sure to use it in future.

Thanks again
Dunk