Jump to content
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

@@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


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

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 have not installed this addon but there is also an addon to hide prices from non logged in uses. You may need that one as well. http://addons.oscommerce.com/info/601 It is for 2.2 so do not know if it will work without modification for 2.3 stores.


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

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  

×