Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

18+ page


lstrad

Recommended Posts

Hi

 

Does anyone know how to add a 18+ page to one of the catagorie links :blink:

 

So they have to agree there over 18+ or read the disclamer before they can see the products

 

Any where to put them in the script/html and what to write????

 

can anyone help me

 

thanks

Link to comment
Share on other sites

This is what is says

 

1)

 

The form for confirming their age is in this file(place in store root):

 

age-page.php

 

There are 2 code blocks in age-page,php.

 

In the code block at the top, change the URLs of the pages to redirect to.

 

You can change the wording of the form as needed in the second block; if you change the values of the buttons then

they also must be changed in the code at the top of the page.

 

2)

 

The file application_top.php has one block of new code. You must specify the category to "protect" in this block.

 

Then add this block of code into your application_top file.

Link to comment
Share on other sites

Hey people

 

Does anyone know how to find the catogory name or number??

need to change it to the category but know know what the category is

 

$restricted_category = 3; # change this to the category you want to restrict

if ($cPath_array[0] == $restricted_category) {

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 8 months later...

Did this Contribution work for anyone?

I can get the category link to connect to the age-page.php page but after I click the 'Yes' button the page just refreshs and I am unable to proceed to the actual category??

 

Please help!

 

Thanks

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

Archived

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

×
×
  • Create New...