Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Prices for Logged-In Users Only at Product Level


sandwick

Recommended Posts

Posted

I am trying to install this contribution, because I do not want the prices to be seen until the user logs in.

 

I am using OSC 2.3.3 with PHP 5.4 and in the contribution it is telling me to find and replace the following and I am not finding it.

 

This is what is in the instructions . . .

 

<snip>

-------------------------------------------------------

in catalog/includes/modules/new_products.php find

-------------------------------------------------------

 

$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))

 

-----------------------------------------------------

replace with

-----------------------------------------------------

 

$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']), 1, tep_get_products_login_to_view_price($new_products['products_id']))

 

</snip>

 

this is what I find in the code.

 

<snip>

 

$currencies->display_price($new_products[$counter]['products_price'],

tep_get_tax_rate($new_products[$counter]['products_tax_class_id']))

 

</snip>

 

 

it does not match and when I replace the code I get a sessions error !

 

I could not find where the contribution had a link for help, any help would be appreciated.

 

Is this contribtution NOT compatiple with 2.3.3 ?

 

Is there a better contribution to use ?

 

// Larry

Archived

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

×
×
  • Create New...