SOLVED: BUG with fix in 2.0.22a mod_virtuemart_product template display

Started by marfisk, August 01, 2013, 08:39:15 AM

Previous topic - Next topic

marfisk

UPDATE: Though not technically solved, since this is a problem with templates supplied by the theme rather than Virtuemart, I'm marking it solved on this end, though I've reported it to them to fix on theirs.

The problem is that the random products, featured products etc. module displays uneven products in the rows, regardless of the setting. It starts out with the setting then breaks.

For example, if P stands for a product image and name, with the number of products set to 21 and the rows across to 4 it should display this:
P P P P
P P P P
P P P P
P P P P
P P P P
P

What it actually displays is something like this:

P P P P
P P P P
      P P
P P P P
         P
P P P P
      P P

A missing quote after product-module in the HTML was breaking the display and making it have random number of products per row.
I'm doing my fixes in the template override, but you all should know where it comes from in the aio files.

The Override template is here:
/templates/[template name]/html/mod_virtuemart_product/default.php

The problem is Line 54
Was:
            echo " </div><div class='vmproduct product-module style='clear:both;'>";


Fixed:
            echo " </div><div class='vmproduct product-module' style='clear:both;'>";

I'm running

PHP Built On    Linux web01 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.41-2+deb7u2~bpo60+1 x86_64
Database Version    5.1.66-0+squeeze1-log
Database Collation    utf8_general_ci
PHP Version    5.2.17
Web Server    Apache
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 2.5.13 Stable [ Ember ] 24-July-2013 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

Using the JSN Decor template, and the Digitoll downloads plugin.

Thanks,
Margaret

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jörgen

Can´t find that code nowhere in the file :o

I think You may be using a template override.

Jörgen @ Kreativ Fotografi

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.