Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocklayered: pattern images not displayed properly #76

Open
getdatakick opened this issue Aug 1, 2024 · 1 comment
Open

Blocklayered: pattern images not displayed properly #76

getdatakick opened this issue Aug 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@getdatakick
Copy link
Contributor

Theme override incorrectly constructs background url img/co/{$id_value}.jpg instead of /img/co/{$id_value}.jpg

@getdatakick getdatakick added the bug Something isn't working label Aug 1, 2024
@getdatakick
Copy link
Contributor Author

code location:

id="layered_id_attribute_group_{$id_value}"
aria-label="{$value.name|escape:'html':'UTF-8'}"
{if !$value.nbr}disabled="disabled"{/if}
style="background: {if isset($value.color)}{if file_exists($smarty.const._PS_ROOT_DIR_|cat:"/img/co/$id_value.jpg")}url(img/co/{$id_value}.jpg){else}{$value.color}{/if}{else}#CCC{/if};">
{if isset($value.checked) && $value.checked}<input
type="hidden"
name="layered_{$filter.type_lite}_{$id_value}"
value="{$id_value}">{/if}

Also, template expects .jpg files. This might not be the case anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant