  |
23 | 23 | | |
| |
24 | 24 | | if (is_numeric($id) || ereg('[0-9]+[{[0-9]+}[0-9]+]*$', $id)) { |
| |
25 | 25 | | $Qproduct->appendQuery('p.products_id = :products_id'); |
  |
26 | | - | $Qproduct->bindInt(':products_id', tep_get_prid($id)); |
| |
| 26 | + | $Qproduct->bindInt(':products_id', osc_get_product_id($id)); |
|
27 | 27 | | } else { |
| |
28 | 28 | | $Qproduct->appendQuery('pd.products_keyword = :products_keyword'); |
| |
29 | 29 | | $Qproduct->bindValue(':products_keyword', $id); |
| |
|
|
 |
… |
|
237 | 237 | | |
| |
238 | 238 | | if (is_numeric($id) || ereg('[0-9]+[{[0-9]+}[0-9]+]*$', $id)) { |
| |
239 | 239 | | $Qcheck->appendQuery('where p.products_id = :products_id'); |
  |
240 | | - | $Qcheck->bindInt(':products_id', tep_get_prid($id)); |
| |
| 240 | + | $Qcheck->bindInt(':products_id', osc_get_product_id($id)); |
|
241 | 241 | | } else { |
| |
242 | 242 | | $Qcheck->appendQuery(', :table_products_description pd where pd.products_keyword = :products_keyword and pd.products_id = p.products_id'); |
| |
243 | 243 | | $Qcheck->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION); |
| |
|
|
 |
… |
|
259 | 259 | | |
| |
260 | 260 | | $Qupdate = $osC_Database->query('update :table_products_description set products_viewed = products_viewed+1 where products_id = :products_id and language_id = :language_id'); |
| |
261 | 261 | | $Qupdate->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION); |
  |
262 | | - | $Qupdate->bindInt(':products_id', tep_get_prid($this->_data['id'])); |
| |
| 262 | + | $Qupdate->bindInt(':products_id', osc_get_product_id($this->_data['id'])); |
  |
263 | 263 | | $Qupdate->bindInt(':language_id', $osC_Language->getID()); |
| |
264 | 264 | | $Qupdate->execute(); |
| |
265 | 265 | | } |