Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No registration, username/password on request


dacystorm

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...