• Resolved arystos

    (@arystos)


    Hi, i know the title seems confusing so let me explain:

    So, I’m working on a E-Commerce website and i have products based on gender. I’m trying to figure out how to detect if the user reaching my website is male or female and redirect he/she to specific homepages dedicated everytime he/she access to the website.

    Is there any feature can i exploit, using a PHP script or plugin to integrate this feature?

    • This topic was modified 2 years, 1 month ago by arystos.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Maybe it’s better where you are, but where I am, assuming someone’s gender is a risky proposition these days. Anyway, there’s no easy way to determine gender from data that’s available in a new HTTP request. Even asking someone’s gender seems to be fraught with controversy. You are probably better off just asking which home page they’d rather see, male oriented, female oriented, or one not oriented either way. Their actual gender doesn’t really matter.

    Their selection could be saved in user meta if they are logged in, or in a cookie if not. Of course, keeping someone’s gender preference in a cookie can be controversial as well. Some will prefer not to specify, you will want to accommodate those people as well.

    Thread Starter arystos

    (@arystos)

    Thank you so much, I adjusted my website based on your advice.

    Thks : – )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User redirect based on gender’ is closed to new replies.