NavCopy Posted May 28, 2008 Posted May 28, 2008 Can anyone review below and let me know where the revised code is to go? I'm am trying to install "HIDE PRICES" on a template and the coding is not the same as the instruction indicate. I am stumped as to where it should be inserted. File - product_info - installation notes tell me find the line below and insert 'hidePrices' as shown, but this line does not exist. <td class="pageHeading hidePrices" align="right" valign="top"><?php echo $products_price; ?></td> - here is the code from my existing file (or a part of it that I think should be changed) ------------------------------------------- <?php } else { $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; } ?> ------------------------------------------- Any help appreciated Nav
garydarling Posted May 30, 2008 Posted May 30, 2008 Scroll down a little farther on the page; the code just below this is the presentational section. You should see something that looks like this: <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading" valign="top"><?php echo $products_name; ?></td> <td class="pageHeading hidePrices" align="right" valign="top"><?php echo $products_price; ?></td> </tr> </table></td> </tr> <tr> You can also use your editor's 'Find' feature to locate the specific code preceding the 'hidePrices' class. Gary D :rolleyes:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.