Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

(page price)Only registered customers


Recommended Posts



I want to add a page with the prices of all the products that must be visualized only from the registered customers. and if a customer access does not come visualized the message: that the page only to be seen only from the registered customers, do you want to create an account?


Many tnx

Link to comment
Share on other sites

This can be done by creating the new page and inserting the following code at the top of the file.


  if (!tep_session_is_registered('customer_id')) {
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));


Be sure to enclose the code in the php tags of course. Doing this will check that the session is registered. If not registered the user will be redirected the the login page.

Link to comment
Share on other sites

Hi cralyn..

Do you can help me with this??


when in admin configurations active customer company... consequently in the page: create_account.php he appears, company details..e company name... I have need that joins others 2 lines, one with name CNPJ and other, ISCRI?AO ESTADUAL... and that in amin..customers a page joins the written EMPRESA..where I see only the company recorded to my situated one.


You can help me?


thanks thousands.

Link to comment
Share on other sites


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

  • Create New...