Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Price only for logged in Users


bugzmaster

Recommended Posts

Hi,

 

have somebody an idea how i can change the shop that only users which logged in can see the Prices ?

 

I tried to use the contrib from the .com site priceforloggedinuser but i have other contribs which may are in conflict with this one so i never get it in succesful in my shop.

 

when i use

if (!tep_session_is_registered('customer_id')) return '';

in includes/classes/currencies.php

function display_price($products_price, $products_tax, $quantity = 1) {
// logged in price
if (!tep_session_is_registered('customer_id')) return '';
// EOF
    return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
  }

i get the price only for looged in users, but the buy now button and the cart contents are visible.

Can someone help me with this problem ? i am not so good in PHP and need your HELP !!!!

 

Thank all !!!

Link to comment
Share on other sites

I did have this proplem too

That I did was this

go too includes/column_right.php...

 

And put // before require(DIR_WS_BOXES . 'shopping_cart.php');

like this //require(DIR_WS_BOXES . 'shopping_cart.php');

 

PLAESE BACKUP FIRST

Link to comment
Share on other sites

I did have this proplem too

That I did was this

go too includes/column_right.php...

 

And put // before    require(DIR_WS_BOXES . 'shopping_cart.php');

like this    //require(DIR_WS_BOXES . 'shopping_cart.php');

 

PLAESE BACKUP FIRST

 

To fix this, you'd have to modify the shopping cart box itself, which is not too hard to do. Also, you can easily remove the buy-now button from product listings by editing index.php using the same if().

Link to comment
Share on other sites

To fix this, you'd have to modify the shopping cart box itself, which is not too hard to do.

 

where would the (IF) statement go in the shopping cart file

I have been having the hardest time trying to get this right.

 

What I am trying to do is DISABLE the Add to Cart function until the user is looged in I believe this will solve the problem

Thanks Steel

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...