Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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?

Posted

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

Posted

@@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
  • 2 weeks later...
Posted

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

  • 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.
Note: Your post will require moderator approval before it will be visible.

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