Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I modify the product info?


muuseec

Recommended Posts

I have two questions:

 

1) Where is the product information stored? I need to format it.

 

2) Is there any way to make they product pic larger ONLY on the product info page?

(when you check out the product info it would be great with a larger pic straight away)

 

Would be grateful for any help! :thumbsup:

Information overload!

Link to comment
Share on other sites

1. once you enter your information it is stored in the database but you can go into your admin area and edit it. Not sure what you want to format so you will have to be a bit more specific. If you mean what I thik you do there is a contribution called Preformatted Description Text Box http://www.oscommerce.com/community/contributions,3458

or you could install one of the many WYSIWYG editers.

 

2. You can either install one of the several multible size image contributions or you could edit the product_info.php yourself.

If you open catalog/product_info.php you can change

<script language="javascript"><!--
document.write('<?php echo '<a href="javascript: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,'','false', '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,'','false', 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

to something like

<script language="javascript"><!--
document.write('<?php echo '<a href="javascript: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']),  200, 200,'','false', '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'],  200, 200,'','false', 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

changing the 200 to whatever your image size is.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...