Funkeh Posted December 29, 2016 Share Posted December 29, 2016 (edited) I have a product I am trying to sell on my prestashop and it comes in many different textures. I've configured the attributes and uploaded a texture image for each variant. However when I check my website the texture images appear as black squares. When I click the product the texture images are displayed correctly.Can someone help me to turn those black squares into the texture images?prestashop v1.6.1.10website is http://www.seamlesslybeautiful.com.au/Screenshots provided Edited December 31, 2016 by ZoeySheree1993 (see edit history) Link to comment Share on other sites More sharing options...
Funkeh Posted December 30, 2016 Author Share Posted December 30, 2016 still need help please Link to comment Share on other sites More sharing options...
vekia Posted December 30, 2016 Share Posted December 30, 2016 case requires inspection of website where you've got problem so please share an url. Link to comment Share on other sites More sharing options...
Funkeh Posted December 30, 2016 Author Share Posted December 30, 2016 thank you url: http://www.seamlesslybeautiful.com.au/index.php?id_category=5&controller=category Rainbow Glitter Canvas has the textured attributes added Link to comment Share on other sites More sharing options...
vekia Posted December 30, 2016 Share Posted December 30, 2016 hello i inspected the website i thought that this will be only css glitch but from what i see it is a theme problem. - what is the ps version you currently use? Link to comment Share on other sites More sharing options...
Funkeh Posted December 30, 2016 Author Share Posted December 30, 2016 i am using prestashop version 1.6.1.10 Link to comment Share on other sites More sharing options...
Funkeh Posted December 31, 2016 Author Share Posted December 31, 2016 Nobody knows how to fix? Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2017 Share Posted January 2, 2017 hello welcome after new year's eve :-) check please contents of /themes/your-theme/product-list-colors.tpl file does it contain these contents: {* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($colors_list)} <ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} {if isset($col_img_dir)} {assign var='img_color_exists' value=file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute, Configuration::get('PS_REWRITING_SETTINGS'), false, true)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"{if !$img_color_exists && isset($color.color) && $color.color} style="background:{$color.color};"{/if}> {if $img_color_exists} <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="20" height="20" /> {/if} </a> </li> {/if} {/foreach} </ul> {/if} or some other? if other, can you please paste it here? Link to comment Share on other sites More sharing options...
Funkeh Posted January 2, 2017 Author Share Posted January 2, 2017 (edited) i have different code {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick" style="background: {$color.color};"> </a> </li> {/foreach} </ul> Edited January 2, 2017 by ZoeySheree1993 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2017 Share Posted January 2, 2017 change it to: {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick" style="background: {$color.color};"> {if $img_color_exists} <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="20" height="20" /> {/if} </a> </li> {/foreach} </ul> after that texture images should appear properly, maybe it will be necessary to define some css styles too - but we will see if so after you will modify the file Link to comment Share on other sites More sharing options...
Funkeh Posted January 2, 2017 Author Share Posted January 2, 2017 unfortunatly that has not fixed it i have cleared the cashe and shift refresh and it still shows back on the product page Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2017 Share Posted January 2, 2017 to see the changes please go to: 1) preferences > cache 2) clear shop cache (there is a button to clear it) please let me know if this changed anything Link to comment Share on other sites More sharing options...
Funkeh Posted January 2, 2017 Author Share Posted January 2, 2017 (edited) i have done this already please see here http://www.seamlesslybeautiful.com.au/index.php?id_category=12&controller=category Edited January 2, 2017 by ZoeySheree1993 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2017 Share Posted January 2, 2017 okay, so please change code again, i changed it a little, please use code below: {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($colors_list)} <ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} {if isset($col_img_dir)} {assign var='img_color_exists' value=file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute, Configuration::get('PS_REWRITING_SETTINGS'), false, true)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"{if !$img_color_exists && isset($color.color) && $color.color} style="background:{$color.color};"{/if}> {if $img_color_exists} <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="20" height="20" /> {/if} </a> </li> {/if} {/foreach} </ul> {/if} Link to comment Share on other sites More sharing options...
Funkeh Posted January 2, 2017 Author Share Posted January 2, 2017 Thank you so much that has fixed it you are fantastic! i am also having another attribute problem with prices not displaying correctly. fourm link: https://www.prestashop.com/forums/topic/585237-texturecolor-attribute-causes-items-to-display-0/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now