Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login for pricing?


garysumpter

Recommended Posts

Posted

Could someone please tell me if it is possible to have your products on display but with no pricing shown, the only way to obtain the prices is to log in.

 

Also, can individual users be given different pricing?

 

This is for a wholesale website you see.

 

Many Thanks

 

Gary

Posted
Could someone please tell me if it is possible to have your products on display but with no pricing shown, the only way to obtain the prices is to log in.

 

Also, can individual users be given different pricing?

 

This is for a wholesale website you see.

 

Many Thanks

 

Gary

The above can be done but not without editing the code. The stock shop can't do it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
The above can be done but not without editing the code.  The stock shop can't do it.

 

Jack

 

 

just change the currencies->display_price function to return "login for price" if the customer is not logged in, 2 min effort.

Treasurer MFC

  • 1 month later...
Posted
just change the currencies->display_price function to return "login for price" if the customer is not logged in, 2 min effort.

 

This is to the end of catalog/includes/classes/currencies.php:

 
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);
   }
}
?>

and this is to the end of catalog/includes/classes/shopping_cart.php:

function calculate() {
 $this->total = 0;
 $this->weight = 0;
 if (!tep_session_is_registered('customer_id')) {
 return "-";
 } else {
     rest of this function...
 }
}

Archived

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

×
×
  • Create New...