Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Missing alt tag in div class="default-image"

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-02-2015, 10:11 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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.
__________________
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
  #2  
Old 10-05-2015, 05:00 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default 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.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #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
  #4  
Old 10-21-2015, 06:48 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default 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
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
GlasPak (10-21-2015)
  #5  
Old 10-21-2015, 07:28 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
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.
__________________
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
  #6  
Old 10-21-2015, 07:49 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
qualiteam (10-21-2015)
  #7  
Old 11-15-2015, 10:46 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 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>
__________________
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
  #8  
Old 12-17-2015, 06:57 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"

Still no update?
__________________
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
  #9  
Old 12-17-2015, 11:06 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020