× Tip and Trick, Solved Solution and bug fix for Prestashop Website.

Fixed Category Images FO and BO no available PS 1.6

  • admin
  • admin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
5 months 1 week ago - 5 months 1 week ago #42 by admin
แก้ปัญหารูปภาพ thumbnail หมวดหมู่ หาย

Edit category.tpl file. of your theme.

The original sentence is:
{if $subcategory.id_image}
                            <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
                        {else}
                            <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
                        {/if}
Replaced:
{if $subcategory.id_image}
<img class="replace-2x" src="{$img_cat_dir}{$subcategory.id_category}-medium_default.jpg" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{else}
<img src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{/if}
Reference:
[SOLVED] PS 1.6.1.4 Category Images FO and BO no available
Attachments:
Last edit: 5 months 1 week ago by admin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds
Powered by Kunena Forum