Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing "Click to enlarge" text color


Jennyh

Recommended Posts

Hi ~ I have been Google searching and forum searching and haven't run into the answer yet, so I decided to break down and ask.

 

Where do I go AND how do I change the color of the text link for "Click to enlarge."

 

I have already created an "a.new" color in the stylesheet. I have figured out how to change "log yourself in" and "create an account" but I haven't been as successful with "Click to enlarge".

 

Thanks for your help.

Link to comment
Share on other sites

Hi ~ I have been Google searching and forum searching and haven't run into the answer yet, so I decided to break down and ask.

 

Where do I go AND how do I change the color of the text link for "Click to enlarge."

 

I have already created an "a.new" color in the stylesheet. I have figured out how to change "log yourself in" and "create an account" but I haven't been as successful with "Click to enlarge".

 

Thanks for your help.

 

Look in catalog\inlcludes\languages\english\product_info.php

 

Look for

define('TEXT_CLICK_TO_ENLARGE', 'Click to enlarge');

 

Replace with

define('TEXT_CLICK_TO_ENLARGE', '<font color="#0066cc"><b>Click to enlarge</b></font>');

 

Change colour to suit yourself.

Link to comment
Share on other sites

Since it is using the A and A:hover link class that is what needs to be changed.

 

In your stylesheet create the new class you want for this link.

 

There are 4 files that need changing.

/catalog/product_info.php

/catalog/product_reviews.php

/catalog/product_reviews_info.php

/catalog/product_reviews_write.php

 

In all of those files find

<script language="javascript"><!--
document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

Where you see in 2 places

'<a href="'

Add your new class there so it looks like

'<a class="new_class" href="'

Link to comment
Share on other sites

BKTRAIN - Thank you very much. That is exactly what I needed to know. I was in product_info and I was staring right at it, but just wasn't sure. I would've never thought of the other 3 files.

 

I am very new at this and kind of got thrown into it when our "IT-Guy" left us for a new job. I am very proud of what I've accomplished so far without knowing anything about php coding. I've spent hours and hours of research time on this though... whew!

 

Mission accomplished - now on to the next mission.

 

Thanks again!

Jenny

Link to comment
Share on other sites

BKTRAIN - Do you happen to understand this code? Our "IT-Guy" created a table in product description. There are actually two tables in this description and the Model Number is this table is not suppose to be a link. Can you tell me what I need to do to make MJR200S black text (without a link) just like the word Gold. I'm having a hard time deciphering what needs to be there and what doesn't.

 

<tr align="center"><td align="center" valign="top"><p style="font-size:xx-small;">Super Short</p></td><td align="center" valign="top"><p style="font-size:xx-small;"><a class="new" href="java script:void(0);" onclick="setoption('1');return false">MJR200S</a></p></td><td align="center" valign="top"><p style="font-size:xx-small;">Gold</p></td><td align="center" valign="top"><p style="font-size:xx-small;">≤ 1"</p></td></tr>

 

 

Once I figure this out I have several more model numbers to do that are in the same table.

 

Thanks again for your time,

Jenny

Link to comment
Share on other sites

Make sure to backup your file first.

 

Not sure what is going on there, but if all you want is to remove the link try removing this part

<a class="new" href="java script:void(0);" onclick="setoption('1');return false">

and remove right after the model number

</a>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...