X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Missing alt tag in div class="default-image" (https://forum.x-cart.com/showthread.php?t=72868)

GlasPak 10-02-2015 10:11 AM

Missing alt tag in div class="default-image"
 
Almost all of my pages contain this for some reason

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>


Can't figure out why there isn't a default image assigned but the alt tag is empty and that is constantly thrown up in bing and google webmaster SEO analysis.

razortw 10-05-2015 05:00 AM

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

Originally Posted by GlasPak
Almost all of my pages contain this for some reason

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>


Can't figure out why there isn't a default image assigned but the alt tag is empty and that is constantly thrown up in bing and google webmaster SEO analysis.

Hello.
Could you please specify what template you use in your webstore and at what page of the site this code appears?
Thank you.

GlasPak 10-20-2015 08:01 AM

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.

razortw 10-21-2015 06:48 AM

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

Originally Posted by GlasPak
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.

Thank you.
Looks like a bug, as the issue remains on a fresh X-Cart 5.2.7 installation.
I will report it to the development team to get it fixed.
As a workaround, I would suggest to manually override the alt description until this is fixed.
Here is the bug report where you can track the progress of the issue:
* https://bt.x-cart.com/view.php?id=45229

GlasPak 10-21-2015 07:28 AM

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

Originally Posted by razortw
Thank you.
Looks like a bug, as the issue remains on a fresh X-Cart 5.2.7 installation.
I will report it to the development team to get it fixed.
As a workaround, I would suggest to manually override the alt description until this is fixed.
Here is the bug report where you can track the progress of the issue:
* https://bt.x-cart.com/view.php?id=45229

Thanks! Not sure how to manually override the alt description tho.

Would it be something like
Code:

public function getAlt()
    {
        return $this->getParam(self::PARAM_ALT);
            if($this) == null) {
                $this = "Default Image";
        }
    }



???

Also didn't know 5.2.7 was out, our admin panel in x-cart still shows 5.2.6 and no option to upgrade.

totaltec 10-21-2015 07:49 AM

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

Originally Posted by GlasPak
Also didn't know 5.2.7 was out, our admin panel in x-cart still shows 5.2.6 and no option to upgrade.

I believe 5.2.7 is only available for those that have opted in to test pre release.

GlasPak 11-15-2015 10:46 AM

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

Originally Posted by totaltec
I believe 5.2.7 is only available for those that have opted in to test pre release.


The ticket says it is closed yet I am still seeing the problem in the latest version

<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>

GlasPak 12-17-2015 06:57 AM

Re: Missing alt tag in div class="default-image"
 
Still no update?

qualiteam 12-17-2015 11:06 PM

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

Originally Posted by GlasPak
The ticket says it is closed yet I am still seeing the problem in the latest version


The ticket was closed as a duplicate of this one: https://bt.x-cart.com/view.php?id=45330

The developers say that this image is never displayed on the page directly and is used by some JavaScript functions only.

Quote:

Originally Posted by GlasPak
the alt tag is empty and that is constantly thrown up in bing and google webmaster SEO analysis.


Please can you clarify the exact text of the message? Is it a notice? Or is it a warning?


All times are GMT -8. The time now is 07:04 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.