Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add text under photo in colorbox


Jeffrmarks

Recommended Posts

Posted

I'm using oscommerce 2.3.4 for a small bookstore. When you click on the cover on the product info page, the cover comes up in the color box. 

 

On their previous site, there was text that said something to the effect that each cover had a small noose on it (it's a mystery book site.) There was a hyperlink to an image, the cover with the noose circled on it.

 

Is there a way to get this text under the cover in the colorbox? Also is it difficult to add a hyperlink to this text?

 

Thanks

 

Jeff  

Posted

Look here -> http://www.oscommerce.com/forums/topic/394591-add-products-name-to-colorbox-popup-on-product-information-page/

 

she just added the title attribute to the colorbox script.

You can change that to whatever you like.

For example she says add this

title: '<?php echo $product_info['products_name']; ?>',

you could add a link to the product to see if hyperlinking works like this

title: '<?php echo '<a href="https://www.google.com/" target="_blank">Click me to test hyperlink!</a>'; ?>',

It is gonna get a bit more complicated if you want to show a custom text only for individual products. In this case you might want to add a new field to the database and add that new field inside the categories.php.

Archived

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

×
×
  • Create New...