Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


vmf08034

Recommended Posts

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...