Irvin Posted June 25, 2004 Posted June 25, 2004 Does anybody know how to REALLY disable displaying the prices on all of the web pages? I've tried to set the 'DISPLAY PRODUCT PRICE' to 0 (zero), but the prices still get displayed on all the web pages. What the heck is wrong with my OSC?? Somebody plz helppp....
Guest Posted June 25, 2004 Posted June 25, 2004 In catalog/includes/classes/currencies.php - right down the bottom change the last function to: function display_price($products_price, $products_tax, $quantity = 1) { if(!tep_session_is_registered('customer_id')) { return ''; } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } } ?> In catalog/shopping_cart.php around line 147 change: $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>'); } to: if(tep_session_is_registered('customer_id')) { $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>'); } } and around line 159 change: <tr> <td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td> </tr> <?php if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> to: <?php if(tep_session_is_registered('customer_id')) { ?> <tr> <td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td> </tr> <?php } if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> The price will now only display when a user is logged in. Matti
icemanarh Posted July 1, 2004 Posted July 1, 2004 This worked great for me except, it does not hide the price when a guest drops a product into their shopping cart. It will show the price in that infobox. Can you help so that it hides this as well. Thanks Icemanarh
Recommended Posts
Archived
This topic is now archived and is closed to further replies.