Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No registration, username/password on request


dacystorm

Recommended Posts

Posted

Hello, i'm making a wholesale webshop, I need to make the registration by request only (no registration form), i will create the account if asked.

 

I couldn't find a contribution, can someone please help me?

 

2.3.1 version in use.

Posted

How would you like to operate this?

Password protect the whole site which some do, disable prices and replace with "register to see prices", simple terms you just remove the create account links, and possibly add a redirect to the create_account.php page in case someone types the URL in. or you can just edit the create an account link to go to the contact us page where you can add text to guide users

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Thank you for the information.

 

Also i would need a info how to disable the prices from showing until you have logged in, is this possible?

 

Version 2.3.1

Posted

open the file catalog (if you have it) / includes / classes / currencies.php

find at the bottom of that file

 

   function display_price($products_price, $products_tax, $quantity = 1) {
  return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
   }

 

REPALCE it with

 

   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));
	  }
	 else
   {
  return 'Login to view';
 }
   }

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Thank you for your help, much appreciated thumbsup.gif

 

Can i bother you with one more question?:

Is there a way to make a different prices for different customergroups?

Posted

open the file catalog (if you have it) / includes / classes / currencies.php

find at the bottom of that file

 

function display_price($products_price, $products_tax, $quantity = 1) {
  return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
}

 

REPALCE it with

 

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));
	  }
	 else
   {
  return 'Login to view';
 }
}

 

Nic

 

One more question about this, i changed the code and it works, but after i have added a product (before logging), the price shows in the shopping cart total, is there a way to remove this also from the nonlogged user?

Archived

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

×
×
  • Create New...