Zen Cart Logo
Forums / All Other Contributions/Addons / Renaming Ultimate Cross Sell Titles

Renaming Ultimate Cross Sell Titles

Views: 1,524

Results 1 to 17 of 17
5 Oct 2011, 12:39 AM
#1
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Renaming Ultimate Cross Sell Titles

Hello, I just installed ultimate cross sell and would like to know where I can edit the title of Related Items etc.

For example, right now it is showing this above the product:

BOX_HEADING_RELATED_PRODUCTS_SIDEBOX

I would like to change the title to Related Items

Is there a way of doing so, thank you? :smile:

5 Oct 2011, 1:01 AM
#2
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

My related products are also showing in one single row instead of 3. Anyone knows what could be the problem?

5 Oct 2011, 11:30 AM
#3
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

Been looking around all the forums and no one seems to have an answer for this :frusty:

Why do I feel like I'm talking to myself? :blink:

5 Oct 2011, 12:28 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Renaming Ultimate Cross Sell Titles

Always a good idea to check the FAQ/Tutorials area, too:

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

In this case, that's defined in includes/languages/english/extra_definitions/YOUR_TEMPLATE/related_sidebox_defines.php

My guess would be that you didn't change the YOUR_TEMPLATE folder(s) in the mod to the name of your custom template before uploading, which could also cause the columns problem.

5 Oct 2011, 1:13 PM
#5
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

Hi stevesh! Thank you so much for replying. I truly appreciate it :smile:

I have taken a look at the includes/languages/english/extra_definitions/YOUR_TEMPLATE/related_sidebox_defines.php and this is what shows:

**define('BOX_HEADING_RELATED_PRODUCTS_SIDEBOX', 'Related Products');

?>**

Could it be that it is written incorrectly?

Also, before I installed the mod, I did change all the YOUR_TEMPLATE folder(s), to my template name (ex: "custom"). Could it be that I need to add some CSS somewhere? :unsure:

5 Oct 2011, 1:36 PM
#6
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

I took a look at related.php file and got this:

Line #30 : $title = BOX_HEADING_RELATED_PRODUCTS_SIDEBOX;

5 Oct 2011, 2:12 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Renaming Ultimate Cross Sell Titles

[QUOTE=ricangem;1069611I have taken a look at the includes/languages/english/extra_definitions/YOUR_TEMPLATE/related_sidebox_defines.php and this is what shows:

**define('BOX_HEADING_RELATED_PRODUCTS_SIDEBOX', 'Related Products');

?>**

[/QUOTE]

Do you mean includes/languages/english/extra_definitions/custom/related_sidebox_defines.php ? That's where that file needs to be.

5 Oct 2011, 2:13 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Renaming Ultimate Cross Sell Titles

The define is correctly formed. Are you sure you renamed the /your_template/ folders exactly the same as your main /includes/templates/custom/ folder?

5 Oct 2011, 2:35 PM
#9
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

You guys are awesome! :hug:

I wrote the wrong name on one of my "CUSTOM" folders. :blush:

I renamed the folder and the headers seem to be showing properly now but unfortunately the products are still showing in a single row. What else could I have done wrong? :frusty:

Do you guys think I should re-install?

5 Oct 2011, 2:47 PM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Renaming Ultimate Cross Sell Titles

My related products are also showing in one single row instead of 3. Anyone knows what could be the problem?This is often a stylesheet issue. Changing one rule can have consequences in many places, if you don't know what you are doing. We need to look at your site live to help with this.

5 Oct 2011, 2:55 PM
#11
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

I emailed the company who made my custom template and he advised me to go to "centerBoxContentsCrossSell" and remove the width and change it to float:left.

Any idea where this file could be? :smile:

5 Oct 2011, 3:08 PM
#12
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

Nevermind, I found the file using the "developers tool kit". I changed width:' . $col_width . '% to float:left and it worked :clap:

Thank you guys soooooo much for all your help! I couldn't have figured this all out without your help :hug:

5 Oct 2011, 4:31 PM
#13
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

I'm not familiar with CSS, what code would I use to add width between the columns? The columns are close together :blush::

5 Oct 2011, 4:55 PM
#14
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Renaming Ultimate Cross Sell Titles

If you need advice with layout issues, we're really going to need to see the site.

5 Oct 2011, 7:02 PM
#15
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

I would just like to know how I would add the width in CSS to this section here, that's all :smile::

** 'class="centerBoxContentsCrossSell centeredContent back"' . ' ' . 'style="float:left;"',**

Here is a snap shot of the store. See how the headings are close together:

6 Oct 2011, 4:28 AM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: Renaming Ultimate Cross Sell Titles

You don't edit PHP files to change styling, you edit the stylesheet. You would find the rule for .centerBoxContentsCrossSell {} if there is one, or add a new rule if not, and put your desired width in it like

width: 33%;
or
width: 123px;

whatever does the job. You would possibly also want to add margin or padding declarations to the rule.
A screenshot does not help. If you had not told us the class involved, we would still not be able to advise you; we would need to see the site live.

7 Oct 2011, 1:56 AM
#17
ricangem avatar

ricangem

Zen Follower

Join Date:
Dec 2010
Posts:
138
Plugin Contributions:
0

Re: Renaming Ultimate Cross Sell Titles

Thanks gjh42, it worked :smile: