VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: nzed on June 19, 2014, 15:37:09 PM

Title: VM 2.9.7 Shop main page broken
Post by: nzed on June 19, 2014, 15:37:09 PM
I wonder if this is a VM error or something else: the greeting text is missing on the shop main page (it is fine in admin), the right side menu is put under the categories (no change was made since last VM version), not any category link and side menu link is working (maybe covered with a layer).
In 2.9.6 it was OK.

And maybe it is stupid, but the shop main page is not fully loaded, this is the end of the source:
               </footer>
                                 </div>
</

but all other shop page source end like this:
               </footer>
                                 </div>
</body>
</html>
Title: Re: VM 2.9.7 Shop main page broken
Post by: nzed on June 19, 2014, 15:50:26 PM
When I am logged in to  the shop the greeting text is okay but the page is still broken, the very end of HTML is still missing in source.
And it shows the text "New Product", I don't know why.
Title: Re: VM 2.9.7 Shop main page broken
Post by: nzed on June 19, 2014, 16:00:16 PM
One more thing: when I switch off the Show Categories setting, the side menu shows fine, the page in not broken any more. Switching it on again is breaking the page.
The text "New Product" is a link (it was working when the page was not broken) and it goes to the administration to create a new product. How can I make it disappear?
Title: Re: VM 2.9.7 Shop main page broken
Post by: Milbo on June 20, 2014, 00:47:50 AM
There was a div too much. I am uploading a new version.
Title: Re: VM 2.9.7 Shop main page broken
Post by: nzed on July 12, 2014, 22:00:11 PM
Very similar now in VM 2.9.8. with the same errors: the right side menu is put under the categories (no change was made since last VM version), not any category link and side menu link is working (maybe covered with a layer).
Possibly an extra div?
Title: Re: VM 2.9.7 Shop main page broken
Post by: tophatco on July 16, 2014, 23:29:35 PM
Quote from: nzed on July 12, 2014, 22:00:11 PM
Very similar now in VM 2.9.8. with the same errors: the right side menu is put under the categories (no change was made since last VM version), not any category link and side menu link is working (maybe covered with a layer).
Possibly an extra div?

I am experimenting with 2.9.8 as well and am seeing something similar.  I have a right side menu and whenever I view a VM page with categories, the right menu drops below.  Doing an html validation on the broken pages yields a unclosed element, my main container div.

It looks fine and validates when viewing a product or list of products and not categories/sub-categories are shown.

If I add an additional </div> at the end of the /components/com_virtuemart/views/category/tmpl/default.php it fixes the problem when categories are shown in VM but then, when you view products, the page is broken.

I also get unclosed div element errors when validating pages with categories using the default Protostar and Beez3 templates.
Title: Re: VM 2.9.7 Shop main page broken
Post by: tophatco on July 17, 2014, 15:49:54 PM
After tracing it out, it appears the category-view div is not being closed, or maybe a row.

I modified the end of the /components/com_virtuemart/sublayouts/categories.php and added an additional </div> to the end and it seems to resolve the issue.