Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
vmf08034

how to hide products, prices until the customer has been approved

Recommended Posts

I implemented the member approval add-on, which works fine,

 

But I need to hide, products and prices until the customer has been approved.

 

Any help?

Share this post


Link to post
Share on other sites
Guest

@@vmf08034

 

 

You can look at THIS contribution, it was written for v2.2 but should work with v2.3x with just a few changes

 

 

 

 

Chris

Share this post


Link to post
Share on other sites

@@vmf08034

 

 

You can look at THIS contribution, it was written for v2.2 but should work with v2.3x with just a few changes

 

 

 

 

Chris

thanks, i have done that, but the customer can see the products and the prices

Share this post


Link to post
Share on other sites

I just added this to my OSC 2.3.3 and it does NOT work, the prices are still listed.

 

 

**************************************

2. In includes/classes/currencies.php

**************************************

find:

 

function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {

 

Add below:

 

// Start Prices for Logged-In Users Only v5

if ( defined( STORE_SHOW_GUESTS_PRICES ) && ( STORE_SHOW_GUESTS_PRICES == 'true' ) && (! tep_session_is_registered('customer_id') ) ) {

return TEXT_LOG_IN_TO_SEE_PRICE;

}

// End Prices for Logged-In Users Only v5

 

**************************************

3. In includes/languages/english.php

**************************************

 

add:

 

// Start Prices for Logged-In Users Only v5

define('TEXT_LOG_IN_TO_SEE_PRICE', 'Please log in to see prices');

// End Prices for Logged-In Users Only v5

 

 

**************************************

 

 

is there anything else I need to modify to make this work ?

 

any suggestions would be appreciated.

 

// Sandwick

 

OSC 2.3.3

PHP 5.4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×