Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Sidebox header linked with [more]?

Sidebox header linked with [more]?

Locked

Views: 6,329

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
23 Jun 2006, 6:23 PM
#1
bi11i avatar

bi11i

Zen Follower

Join Date:
Jun 2005
Location:
Portland, OR
Posts:
157
Plugin Contributions:
0

Sidebox header linked with [more]?

What causes a sidebox header to display a [more] link? My reviews sidebox header does this with a link to the reviews page, however another sidebox (CC_Accept, a customized module) also does this (but links to the 'Reviews' page.)

How does one turn this '[more]' link off?

Thanks...

23 Jun 2006, 9:39 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Sidebox header linked with [more]?

Try
Remove MORE from Sidebox Headers is in
/includes/languages/english.php

//text for sidebox heading links
define('BOX_HEADING_LINKS', '  [more]');

28 Jun 2006, 6:13 PM
#3
bi11i avatar

bi11i

Zen Follower

Join Date:
Jun 2005
Location:
Portland, OR
Posts:
157
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

Well so what triggers this? I'd like to remove this per box, not globally. Also strange that my CC_Accept box's [more] link heads to the reviews page...?

I can see with the info below that the text will be removed, but what about removing the hyperlink itself?

thanks for the help...> misty:

Try
Remove MORE from Sidebox Headers is in
/includes/languages/english.php

//text for sidebox heading links
define('BOX_HEADING_LINKS', '  [more]');

28 Jun 2006, 8:04 PM
#4
jimmy_chen avatar

jimmy_chen

New Zenner

Join Date:
Jun 2006
Location:
New York City, USA
Posts:
3
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

bi11i:

Well so what triggers this? I'd like to remove this per box, not globally.
Edit the includes/modules/sideboxes/cc_accept.php

add this line into the IF block:
$title_link = false;

28 Jun 2006, 8:41 PM
#5
bi11i avatar

bi11i

Zen Follower

Join Date:
Jun 2005
Location:
Portland, OR
Posts:
157
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

thanks! much

9 Jul 2006, 3:44 PM
#6
shelia avatar

shelia

New Zenner

Join Date:
Apr 2006
Posts:
79
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

This > add this line into the IF block:

$title_link = false;didn't work for the shopping cart sidebox. Besides this code is already included in the shopping_cart.php sidebox file.

The text "Shopping Cart [More]" shows up as a link back to the shopping cart. I would like to eliminate the link not the box.

Shelia

9 Jul 2006, 7:18 PM
#7
bi11i avatar

bi11i

Zen Follower

Join Date:
Jun 2005
Location:
Portland, OR
Posts:
157
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

Strange as this worked for me. That line already exists in both, as I noticed:```
if ($show_shopping_cart_box == true) {
require($template->get_template_dir('tpl_shopping_cart.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_shopping_cart.php');
$title = BOX_HEADING_SHOPPING_CART;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = false;
$title_link = FILENAME_SHOPPING_CART;

>
> This didn't work for the shopping cart sidebox. Besides this code is already included in the shopping_cart.php sidebox file.
> 
> The text "Shopping Cart [More]" shows up as a link back to the shopping cart. I would like to eliminate the link not the box. 
> 
> Shelia
6 Aug 2007, 8:36 AM
#8
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

A related question so I thought I would post it here:

In my shopping cart sidebox, the words "now in your cart" appear. I want to get rid of these words, but can not find them anywhere in the related php or language files. Since this is a Template Monster template, I have now learned to assume these words are hardcoded somewhere, but I searched and could not find them anywhere. I even searched my entire zencart hardrive folder for these words, but came up empty.

Would really appreciate some hints as to where to look. I have already looked in the obvious shopping_cart.php and tpl_shopping_cart.php files. Also the main page file. Also in the default left box files. Also looked in the bottom drawer of my desk, just in case they were hiding in there....:no: not there either....

My website in progress is https://www.westec-beauty.com/shop/

Thanks!

6 Aug 2007, 9:06 AM
#9
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

Nevermind! I figured it out....

All this annoying TM stuff is located in a file called tpl_tmfuncs.php inside themes/themeXXXX/common/

I guess I should not complain...at least it was not hardcoded somewhere. But it would have been nice if Template Monster gave some decent documentation with their templates so that I would not have wasted 6 hours trying to find this.

(I wonder why my file search did not pick this up? I thought that this type of google desktop file search would actually search the text inside of every file...I guess it did not do what I thought it would do, since it did not find these annoying words for me).

Anyways, I am happy now...at least until the next thing pops up!

:clap:

9 Aug 2007, 7:00 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Sidebox header linked with [more]?

I'm surprised that the developers tool kit under tools in admin could not find the file.

10 Aug 2007, 12:19 AM
#11
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

I did not know that the tool kit could find things like this. Next time I will give it a try.

Originally I tried to search my harddrive using the Windows XP search function, but it did not find anything. Then the Zencart guru in China (Jack, zen-cart.cn) told me about a free program called xsearch. I had already manually found the file by then, but I tested xsearch anyways, and it worked really well. Found the "offending words" buried inside an obscure file on my harddrive in about 10 seconds.

1 Oct 2007, 7:26 PM
#12
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

bi11i:

Strange as this worked for me. That line already exists in both, as I noticed:```
if ($show_shopping_cart_box == true) {
require($template->get_template_dir('tpl_shopping_cart.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_shopping_cart.php');
$title = BOX_HEADING_SHOPPING_CART;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = false;
$title_link = FILENAME_SHOPPING_CART;


I know this is an old post, but in-case someone else runs into it. Notice that $title_link is set first to boolean false, then to the value of the FILENAME_SHOPPING_CART constant. This second write undoes the boolean false. Just comment out (or delete) the second assignment.

TecBrat.
9 Oct 2007, 4:53 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Sidebox header linked with [more]?

thomasw98:

I guess I should not complain...at least it was not hardcoded somewhere. But it would have been nice if Template Monster gave some decent documentation with their templates so that I would not have wasted 6 hours trying to find this. I just said the same thing to Template Monster's support.. I am helping a friend configure a Template Monster template (I warned her about the issues, but she insisted..) and I have decided that if I run into any issues that I will simply lob them straight over to Template Monster and not spend ANY time attempting to troubleshoot them myself..

To their credit (surprise!) they (Template Monster) are actually being pretty cooperative in resolving the issues I've identified. However, it's apparent to me that Template Monster isn't always learning from their mistakes. I am pretty sure I was not the first person who discovered the problems with this particular template, and I won't be the last who has the SAME issue/questions.. I would think that Template Monster would correct the template when these issues are pointed out to them.. It makes NO SENSE to keep answering/resolving the same problems over and over again..

Once I get everything resolved, I plan to post back all of my results here so that anyone else who buys one of these templates (since they tend to use the same techniques on multiple templates) or who happened to buy the same template my friend bought will have an easier go at it. So in the interest of passing on my own experience, I am happy to share my issues, and the resolution I was provided. (only if it resolved the issue) I hope the forum moderators won't have an issue with me sharing this with the community..

31 Oct 2007, 4:45 AM
#14
fancypants avatar

fancypants

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

Similar line of thought...
Is it possible to remove [more] from only the Shopping Cart header while maintaining the link?

Can we override this bit of code with plain old html text?

$title =  BOX_HEADING_SHOPPING_CART;
31 Oct 2007, 5:11 AM
#15
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Sidebox header linked with [more]?

look around line #74 in includes/languages/english.php

If you're using the override system, be sure and save it to the proper place.

31 Oct 2007, 8:09 PM
#16
fancypants avatar

fancypants

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Re: Sidebox header linked with [more]?

dbltoe:

look around line #74 in includes/languages/english.php

If you're using the override system, be sure and save it to the proper place.
Thanks I saw that.
Trick is I'd like to remove [more] from ONLY the shopping cart header.

I assuming I have to modify something here:
includes/modules/sideboxes/TEMPLATE/shopping_cart.php

Thanks!

1 Nov 2007, 8:32 AM
#17
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Sidebox header linked with [more]?

Would probably take a lot of work as it is now tied to left-placed or right-placed boxes versus a particular box.
If you were to make sure that, for instance, the shopping cart sidebox showed up on the right and no other right-placed sidebox contained a link, you could then change the english.php to add > define('CART_HEADING_LINKS', 'Your Data Here');below the BOX_HEADING_LINKS define. You'd then change > $title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';in the tpl_box_default_right.php to say> $title = '<a href="' . zen_href_link($title_link) . '">' . $title . CART_HEADING_LINKS . '</a>';