Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

prices for logged in users only v2.3.1


alfons_sn

Recommended Posts

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

  • 5 months later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...