Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

(page price)Only registered customers


djrino

Recommended Posts

Posted

Hi..

 

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

Posted

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')) {
   $navigation->set_snapshot();
   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.

Posted

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.

Archived

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

×
×
  • Create New...