Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Product info design question


Recommended Posts

Hi all,


Is it possible to switch the information on the product info page so that the header (item name) and photo show up to the left and the product info, option drop-down menu, add to cart and quantity box (which I added) show up to the right?


If so, can someone provide detailed instructions? I'm learning by trial and error so specifics are much appreciated.


Or would I be better off using a template?



Link to comment
Share on other sites

Or would I be better off using a template?

Templates can cause more headaches than they're worth.


In product_info.php find

		  <table border="0" cellspacing="0" cellpadding="2" align="right">
		  <td align="center" class="smallText">
<script language="javascript" type="text/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>'; ?>');
<?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>'; ?>

In this part

		  <table border="0" cellspacing="0" cellpadding="2" align="right">

change align="right" to align="left".

That will put the picture on the left side.

Link to comment
Share on other sites


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

  • Create New...