Hi All
Had a problem which took me as being a newbie in PHP programming and osc a couple of days to figure out what was wrong.
When skinmanager is installed you will get an TEP error as soon as you click a product which is in de shopping cart.
The error only occured when the product has attributes. It is trying to do an sql query with an invalid product code something like product_id = 23{1}1
Been searching everywhere but never expected to find it in skin_top.php.
You will find the following piece of code
$prod_name_query = tep_db_query("select * from " . TABLE_PRODUCTS . " as p, " . TABLE_PRODUCTS_DESCRIPTION . " as pd where p.products_id = pd.products_id and pd.products_id = " . $HTTP_GET_VARS['products_id']);
This should be
$prod_name_query = tep_db_query("select * from " . TABLE_PRODUCTS . " as p, " . TABLE_PRODUCTS_DESCRIPTION . " as pd where p.products_id = pd.products_id and pd.products_id = " . (int)$HTTP_GET_VARS['products_id']);
This way the attributes are stripped and things work again.
Hope someone is helped with this solution
Erald
:D