View Single Post
  #3  
Old 10-20-2015, 08:01 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default Re: Missing alt tag in div class="default-image"

Quote:
Originally Posted by razortw
Hello.
Could you please specify what template you use in your webstore and at what page of the site this code appears?
Thank you.
Noblesse Template and it shows up on all of our pages...

Example:

https://glaspak.com/round-1-liter-giara-swing-top-bottle.html


Code:
<div class="default-image" style="display: none;"> <img src="skins/default/en/images/no_image.png" alt="" height="300" width="300" data-max-width="300" data-max-height="300" data-is-default-image="1" /> </div>

I traced it down to

Code:
<!-- XLite\View\Image : default/en/common/image.tpl (98) {{{ --><img src="skins/default/en/images/no_image.png" alt="" height="300" width="300" data-max-width="300" data-max-height="300" data-is-default-image="1" /> <!-- }}} XLite\View\Image : default/en/common/image.tpl (98) --></div>

Which is this

Code:
{* vim: set ts=2 sw=2 sts=2 et: *} {** * Image * * @author Qualiteam software Ltd <info@x-cart.com> * @copyright Copyright (c) 2011-2015 Qualiteam software Ltd <info@x-cart.com>. All rights reserved * @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement * @link http://www.x-cart.com/ *} <img src="{getURL()}" alt="{getAlt()}" {foreach:getProperties(),name,value} {name}="{value}"{end:} />

I think I tracked it down to
http://pastebin.com/pNQZ0K8e

Looks like there is no default alt tag (or atleast no alt tag for the default_image) which is defined somewhere else.
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote