Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

"default" Images For Product No_Image And Category No_Image Rate Topic   - - - - -

 
  • breezn
  • Newbie
  • Members
  • Join Date: 19-Feb 13
  • 3 posts

Posted 16 January 2015 - 01:12 AM #1

I am running latest version of CS-Cart. I would like the system to apply:
  • a default image to all products that DO NOT have an image uploaded to that product, and it will appear in search results, category listing, and product detail page. Currently it seems to display an HTML icon, how to change this to a custom image or different icon?
  • a default image to all categories and sub-categories that DO NOT have an image uploaded for that category. Currently for many tiers (big hierarchy) of sub-categories, it only shows text and doesnt look too good.
Thanks for your help or guidance

 
  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2686 posts

Posted 16 January 2015 - 09:27 AM #2

Dear Breezn,

Please try to change this picture images/no_image.png

Best regards, Alt-team.

ADD-ONS  Web development service  | CS-Cart dedicated developers

Buy MULTIVENDOR - USD 1250 (14% off)   Buy CS-CART LICENCE - USD 345 (13% off)

 Email - manager@alt-team.com | Skype - Altteam    


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19593 posts

Posted 16 January 2015 - 09:52 AM #3

I am running latest version of CS-Cart. I would like the system to apply:

  • a default image to all products that DO NOT have an image uploaded to that product, and it will appear in search results, category listing, and product detail page. Currently it seems to display an HTML icon, how to change this to a custom image or different icon?
  • a default image to all categories and sub-categories that DO NOT have an image uploaded for that category. Currently for many tiers (big hierarchy) of sub-categories, it only shows text and doesnt look too good.
Thanks for your help or guidance


If you want to remove default glyphs image, please edit design\themes\YOUR_THEME\templates\common\image.tpl file and replace:

<span class="ty-no-image" style="min-width: {$image_width|default:$image_height}px; min-height: {$image_height|default:$image_width}px;"><i class="ty-no-image__icon ty-icon-image" title="{__("no_image")}"></i></span>

to:

<img src="PATH_TO_YOUR_IMAGE" width="{$image_width|default:$image_height}" height="{$image_height|default:$image_width}" />

Hope this will help

P.S. Not tested. Do not forget to make a backup

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • gg96
  • Senior Member
  • Members
  • Join Date: 20-Aug 08
  • 153 posts

Posted 29 August 2019 - 08:24 AM #4

Hello,

 

I tried it but nothing happens even after clear thumbnail cache.. 

 

 <img src="images/LOGO_2019_LCE-V5-250x57.png" width="{$image_width|default:$image_height}" height="{$image_height|default:$image_width}" />

 

and with it : 

 

 <img src="/images/LOGO_2019_LCE-V5-250x57.png" width="{$image_width|default:$image_height}" height="{$image_height|default:$image_width}" />

 

 

MV4.9 with youpitheme..

 

so I modify inside both :

design\themes\YOUR_THEME\templates\common\image.tpl 

design\themes\RESPONSIVE\templates\common\image.tpl 

 

Do you have another idea?

 

Thank you very much.


cscart_v4.8. MV


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19593 posts

Posted 29 August 2019 - 01:43 PM #5

Try to delete the var/cache directory manually at first


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • gg96
  • Senior Member
  • Members
  • Join Date: 20-Aug 08
  • 153 posts

Posted 29 August 2019 - 03:00 PM #6

Try to delete the var/cache directory manually at first

 

done.. but no image.

I tried in responsive and youpitheme template..

I tried with complete path too..

 but no image..

 

thank you.


cscart_v4.8. MV


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19593 posts

Posted 30 August 2019 - 07:16 AM #7

Possibly 3rd party addon overrides default template


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.