Jump to content

Different designs for differents attributes in product.tpl


Recommended Posts

Look this image from our friend:

 

post-25505-0-18601300-1317043678_thumb.jpg

 

Ok, in product.tpl I need to set an specific code/design for some attributes (size & Shoes Numbers) and i don´t know how to achieve this. Last thing i was trying was this:

 

{foreach from=$groups key=id_attribute_group item=group}
 {if $group.attributes|@count}

 {if $group.id = 3}
	 Specific code/designhere
 {/if}

 {if $group.id = 4}
        Another specific code/designhere
 {/if}

{/if}
		{/foreach}

 

Any help?

Link to comment
Share on other sites

I haven't but it's a good idea.

 

So I'm very much a newbie to this BUT I think the starting point is modify the existing Smarty and CSS code.

 

I'm sure you can modify the existing dropdown list's CSS code into a non-bullet horizontal list that's pretty much what 2Y, 3Y, 4Y, etc are.

 

Once you've worked that out, you can work on deciding whether to show out of stock items or not. It might just be a case of the out of stock items being availinbility\display being shown from the Prestashop BackOffice or whether it is being decided by the Smarty template.

 

I have my own battles going on the moment but I hope I can look into this soon!

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