News:

Looking for documentation? Take a look on our wiki

Main Menu

Empty link on frontpage - featured products?

Started by vaskern, September 02, 2013, 15:52:15 PM

Previous topic - Next topic

vaskern

When I check the source on the frontpage I find an empty link in each product? Everything is displayed correctly but the code for each product looks like this:

<h3>
<a title="Product title" href="/category/product-details">The product</a>
</h3>
<div>
<a href="/category/product-details"></a>

Anyone else seeing this? Solution?
Thanks

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

vaskern

Webshop with photos & presents from Uppsala
Can't remember tampering with anything connected. Also tried with another default theme and it persisted.

jenkinhill

I don't see any empty links on that page.
eg

<h3>
<a href="/kalendrar-boecker/uppsalakalender-2014-info" title="Uppsalakalender 2014">Uppsalakalender 2014</a> </h3>

<div>
<a href="/kalendrar-boecker/uppsalakalender-2014-info" ><a title="Uppsalabilder samlade i en väggkalender för 2014" class="modal" href="http://motivuppsala.se/images/stories/virtuemart/product/kalender-uppsalabilder-2014.jpg"><img src="/images/stories/virtuemart/product/resized/kalender-uppsalabilder-2014_200x200.jpg" alt="Uppsalabilder samlade i en väggkalender för 2014" class="featuredProductImage" border="0" /></a></a> </div>


<div class="product-price">
<div class="PricesalesPrice" style="display : block;" >Pris <span class="PricesalesPrice" >150,00 kr</span></div> </div>

<div>
<a href="/kalendrar-boecker/uppsalakalender-2014-info" title="Uppsalakalender 2014" class="product-details">Mer information</a> </div>
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

vaskern

Strange, the empty link appears in Firebug but not when I choose view source. Instead there is a nested link (which also appears in the code you posted)?
</a></a>
Looks odd aswell, doesnt it?

Maxim Pishnyak

Screen shot of your Firebug screen with mentioned issue, please.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

vaskern

Screendump attached

[attachment cleanup by admin]

Maxim Pishnyak

Quote from: vaskern on September 03, 2013, 18:32:47 PM
Strange, the empty link appears in Firebug but not when I choose view source. Instead there is a nested link (which also appears in the code you posted)?
</a></a>
Looks odd aswell, doesnt it?
Actually red color in Firebug View source indicates wrong HTML tag. Resolve this error in your template overrides.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

vaskern

Removed all overrides and still the same..?
Uploaded a new copy of Beez5 aswell as all files in "com_virtuemart/views" - and still getting that extra nested link.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

vaskern

Yes, I removed the com_virtuemart folder in Joomlas template/beez/html. Also uploaded the folder components/com_virtuemart/views again.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

vaskern

I finally deleted the views/categories folder and problem solved