Jump to content

Gender symbol in product-list-view


Recommended Posts

This is a really long shot - but is it possible to script your way out of this suggestion :

 

on my page - http://billigedufte.dk/13_calvin-klein i want to show a gender icon next to the reference field in the product-list view. 

 

i've made a mockup of what i want: post-754138-0-17931800-1402777446_thumb.png

 

I have a feature on each product called Køn: Mænd or Kvinder (gender: men or women) and if feature:Køn == Kvinder then it should show the female gender icon, and if feature is mænd it should show the male gender icon...

 

Im not sure if this is even possible 

 

 

 

 

 

Link to comment
Share on other sites

Hi,

 

surely it is possible, but you will need to first assign features as an array to to Category page (in your controller file) then through a if condition check if the value/name of that feature is equal to something and based on this a new span with an image inside can show up. 

If you don't have the necessary knowledge for doing this, I'd recommend you to look for freelancer, sadly this is not job that can be solved in just a few minutes here on forum...

Link to comment
Share on other sites

Hi,

 

I am certainly not Vekia, but I think the solution might be even easier then :-)

 

If your categories are based on genders, it would be sufficient to create two arrays. One with IDs of categories for women, one with IDs of categories for men.  Then in product-list.tpl you will simply create two conditions. Once if the ID of the default category of this product is equal to one of the ID out of the "women array", it would show up a particular jpg/png file. Else, if it's equal to "men array", show the other icon. If it equals to something else, leave the space blank.

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...