alfons_sn Posted February 10, 2011 Share Posted February 10, 2011 hi all. is there a chance to hide the prices for guest users and only show them to logged-in users? i use v2.3.1 thanks Link to comment Share on other sites More sharing options...
FIMBLE Posted February 10, 2011 Share Posted February 10, 2011 Hi, Open file catalog / includes / classes / currencies.php, find at the end function display_price($products_price, $products_tax, $quantity = 1) { return $this->format($this->calculate_price($products_price, $products_tax, $quantity)); } } change it to function display_price($products_price, $products_tax, $quantity = 1) { if (tep_session_is_registered('customer_id')){ return $this->format($this->calculate_price($products_price, $products_tax, $quantity)); } { return '<b>Log in for prices</b>'; } } } alter the <b>Log in for prices</b> to suit This will replace all of the shown prices on your store with the message. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
shubhamgupta Posted July 15, 2011 Share Posted July 15, 2011 Hi, Open file catalog / includes / classes / currencies.php, find at the end function display_price($products_price, $products_tax, $quantity = 1) { return $this->format($this->calculate_price($products_price, $products_tax, $quantity)); } } change it to function display_price($products_price, $products_tax, $quantity = 1) { if (tep_session_is_registered('customer_id')){ return $this->format($this->calculate_price($products_price, $products_tax, $quantity)); } { return '<b>Log in for prices</b>'; } } } alter the <b>Log in for prices</b> to suit This will replace all of the shown prices on your store with the message. Nic Hey, when the customer adds a product to cart, the subtotal in the shopping cart box anyways tells him the price :huh: Any fix for this? Regards, Shubham Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.