Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using images for category link under shared SSL problems


Guest

Recommended Posts

I hesitate to post this, but after intense searching for a solution I have given up the search.

The problem I am facing is using an image for the category links. I've hard coded the link to the image for each particular category and this works fine when browsing in standard "http", but the problem starts when I am in the secure mode. I am sharing a SSL ex: htts://www.secure.server.com/~myshop.com/category/default.php.

Once I am here and I click on a category link it will not get the path properly. It tries to point to "https://www.secure.server.com/category/default.php", so as you can see it is not picking up the path to my virtual domain. I've looked at all the codes for a solution, but can't seem to figure out how to add a dynamic link to a category image link.

I would lik to find a code similar to this one, but to modify it to link to the particular category I've set.

 

Ex: <?php echo '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a> '; ?>

 

 

 

Any help would be greatly appreciated.

 

Daniel

Link to comment
Share on other sites

Put your category images in the catalog /images file and use relative addresses for them. Use this type of link:

<?php echo tep_image(DIR_WS_IMAGES . 'ZonHeadtrans.gif', 'Amazon Parrot', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...