Jump to content

Manage my categories


Recommended Posts

Hi everyone

 

Just a small question

 

I'd like to add a switch button on the top of the website that allow users to change of GENDER

 

For exemple:

 

I have an architecture like so :

 

CAT1

SUBCAT1

MEN

ARTICLE1

ARTICLE2

ARTICLE3

WOMEN

 

ARTICLE1

ARTICLE2

ARTICLE3

 

SUBCAT2

etc...

 

How could I achieve this ?

Or do you think I should do another way ?

 

thanks ;)

Link to comment
Share on other sites

you can use our free module html block free

 

you can create code which will redirect user to url you want, in this case url to men / women categories

 

you can use code like:

 

<select id="dynamic_select">
   <option value="http://url_to_men_category">men</option>
   <option value="http://url_to_women_category">women</option>
</select>
<script>
   $(function(){
  // bind change event to select
  $('#dynamic_select').bind('change', function () {
	  var url = $(this).val(); // get selected value
	  if (url) { // require a URL
		  window.location = url; // redirect
	  }
	  return false;
  });
   });
</script>

Link to comment
Share on other sites

Hi thanks for your reply.

 

But the main problem for me is to make a switch on every page changing the content

 

e.g :

T-Shirt Category -> Summer category

 

You arrive by default on men clothes , You hit switch and You are get the

 

T-Shirt Category -> Summer category Woman content.

 

I already made a click url like you made but ... I'm wondering If there is an easy way to get the Men / Women content.

 

And Is this a good method to manage my categorys ? Or should I make an argument Men Woman On every clothes ?

 

Regards,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...