Jump to content

Wrong class


JOSSm

Recommended Posts

Hello,
Thank you very much for your answer.
I know that there is the problem but I do not know what it is.

  {if isset ($ filter.properties.color)}
                               <span class = "color" style = "background-color: {$ filter.properties.color}"> </ span>
                               {elseif isset ($ filter.properties.texture)}
                                 <span class = "color texture" style = "background-image: url ({$ filter.properties.texture})"> </ span>
                               {else}
                               <span {if! $ js_enabled} class = "ps-shown-by-js" {/ if}> <i class = "material-icons checkbox-checked"> & # xE5CA; </ i>
                             {/ if}
                           </ span>
Edited by JOSSm (see edit history)
Link to comment
Share on other sites

Hello,
I have the same problem while the attribute list is of type "select"

In the file \themes\classic\templates\catalog\_partials\facets.tpl on line 78:

($ filter.properties.texture) returns "img/co/1.jpg, img/co/2.jpg, etc ..." while there is no texture associated with the attribute !

Pretashop 1.7.2.3, theme classic

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