Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi there,

 

I'm getting this annoying problem that i simply can not work around.

 

After my host provider inform me that they needed to set register globals - OFF, my instalation just stopped working.

 

I search for some contribution to solve this problem and i found it:

http://www.oscommerce.com/community/contri...ter+globals+off

(thank you Richard Bentley)

 

Then i made some changes also to Easy Populate and that work out fine.

 

However, the extra-fields contribution stop working.

I mean, it can't display those values. The database has it, but the product_info.php can not display them

 

Does anyone know this problem and how to solve it?

I think is something about variables, but i'm no programmer and i can't solve by it myself.

 

I thank you in advance.

Take care

Pedro

 

 

the code in product_info.php is:

====================================

// START: Extra Fields Contribution v2.0a

$extra_fields_query = tep_db_query("

SELECT 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)$products_id." and ptf.products_extra_fields_value<>'' and (pef.languages_id='0' or pef.languages_id='".$languages_id."')

ORDER BY products_extra_fields_order");

 

while ($extra_fields = tep_db_fetch_array($extra_fields_query)) {

echo ' '.$extra_fields['name'].' ';

echo '<b>'.$extra_fields['value'].'</b>   ';

 

}

 

// END: Extra Fields Contribution

======================================

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...