Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Extra Field


dhooper

Recommended Posts

I have installed the product extra field contribution, but the extra field is not showing. I think there is an error in my code on the productinfo page. This is what I have:

 

<?php 		  // START: Extra Fields Contribution v2.0b - mintpeel display fix 								 $extra_fields_query = tep_db_query("					   SELECT pef.products_extra_fields_status as status, pef.products_extra_fields_name as name, ptf.products_extra_fields_value as value					   FROM ". TABLE_PRODUCTS_EXTRA_FIELDS ." pef			  LEFT JOIN  ". TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS ." ptf			 ON ptf.products_extra_fields_id=pef.products_extra_fields_id			 WHERE ptf.products_id=". (int)$HTTP_GET_VARS['products_id'] ." and ptf.products_extra_fields_value<>'' and (pef.languages_id='0' or pef.languages_id='".(int)$languages_id."')			 ORDER BY products_extra_fields_order");		  echo '<tr> 	  <td> 	  <table border="0" width="50%" cellspacing="0" cellpadding="2px">';   while ($extra_fields = tep_db_fetch_array($extra_fields_query)) {		 if (! $extra_fields['status'])  // show only enabled extra field			continue;	  echo'<tr><td class="main" align="left" valign="middle"><font size="1" color="#666666"><b>'.$extra_fields['name'].': </b>' . stripslashes($extra_fields['value']).'</font></td></tr>';   }	  echo' </table> 	  </td>	   </tr>';		 // END: Extra Fields Contribution - mintpeel display fix ?>

 

Any help?

Diana

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...