Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a box


Chris9979

Recommended Posts

Posted

I have the general understanding on adding a box and a box page from the information on OSC Knowledge Base.

I was wondering how to go about putting a picture linked to the created box page in the box instead of a text link.

 

For example, I am working on a page that lists the prices of our band instrument repairs.

There is going to be only one link in the box. I figured using a pictured link will look alot better that just using a text link. I'm just trying to make the right column have an advertisement feel to it.

Posted

just set the $info_box_contents[] contents of your box file with a link with an image. Like

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . tep_image(DIR_WS_IMAGES . 'yourimagefilenamehere', 'sometitle', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>' );

Posted

I got a question about the SMAL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT part. Will that make the image about icon size, like the

images that show up under "Specials" . Example: http://www.mooresmusicemporium.com

If so is there a way to make the image larger or fill up the size of the box?

 

just set the $info_box_contents[] contents of your box file with a link with an image. Like

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . tep_image(DIR_WS_IMAGES . 'yourimagefilenamehere', 'sometitle', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>' );

Posted

To control the image dimensions of some of the thumbnails in the store goto admin->configuration->images You don't need to modify the code if thats all you need.

Posted

This seems to make all the thumbnails on the front page larger. that is cool though. I wanted to make them abit bigger.

But I was wondering if there is a way to make this one picture larger than the other pictures in the other boxes.

 

To control the image dimensions of some of the thumbnails in the store goto admin->configuration->images You don't need to modify the code if thats all you need.
Posted

if you need to mod the picture dimensions for a single box, open that box file (includes\boxes\ directory) find the tep_image() function in it. Replace the width, height parameters with the values you want. (for example you could replace SMAL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT with 200,200 )

Posted

thank you so very much!!!! everything is working!!!!!

 

if you need to mod the picture dimensions for a single box, open that box file (includes\boxes\ directory) find the tep_image() function in it. Replace the width, height parameters with the values you want. (for example you could replace SMAL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT with 200,200 )

Archived

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

×
×
  • Create New...