VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: Ronny Buelund on August 12, 2013, 20:43:23 PM

Title: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 12, 2013, 20:43:23 PM
Hi

Has anyone else experienced an empty line that is inserted at the top of the cart module, but which disappears if you are on the product detail page or the checkout page ?? I can for the life not grasp where it is comming from ???

Title: Re: Strange line break in VM cart module !?
Post by: Maxim Pishnyak on August 13, 2013, 10:33:48 AM
Could you provide a link?
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 13, 2013, 16:13:37 PM
Here you are

1. http://murshop.dk.web1.skaaningmedia.dk/jupgrade/

2. http://murshop.dk.web1.skaaningmedia.dk/jupgrade/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=20&virtuemart_category_id=13

At link 1 there is a space above the text "Ingen bestilling endnu" = Empty cart - at link 2 there is not ????
Title: Re: Strange line break in VM cart module !?
Post by: Maxim Pishnyak on August 13, 2013, 18:50:30 PM
Your template is commercial. Did you check sticked thread about that case in Template forum section?
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 13, 2013, 20:55:41 PM
It is an Artisteer template  - which someother person has created. But - the template is not the problem! If I swith template to Atomic - the problem is still there - you can take a look right now.

Title: Re: Strange line break in VM cart module !?
Post by: Maxim Pishnyak on August 13, 2013, 21:53:16 PM
Your VM version, please.
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 13, 2013, 21:57:19 PM
VM 2.0.22a
Cart module: 2.0.20b
Title: Re: Strange line break in VM cart module !?
Post by: jenkinhill on August 14, 2013, 10:19:58 AM
The problem seen is in your module container element, <div class="art-blockcontent">  - which is controlled by your template css. The actual VM module div, <div id="vmCartModule" class="vmCartModule "> only takes up one line of space - the line with "Ingen bestilling endnu"

The Artisteer css is controlling the VM layout because you are not loading VirtueMart's css files. I would expect to see these lines in your page header:

<link rel="stylesheet" href="/jupgrade/components/com_virtuemart/assets/css/vmsite-ltr.css" type="text/css" />
  <link rel="stylesheet" href="/jupgrade/components/com_virtuemart/assets/css/facebox.css" type="text/css" />
  <link rel="stylesheet" href="/jupgrade/components/com_virtuemart/assets/css/chosen.css" type="text/css" />

In VM configuration/templates turn on Using the VirtueMart CSS   Then you can add a negative top-margin to .vmCartModule if necessary.

Be aware that Artisteer templates can show a lot of layout & styling issues with large components such as VirtueMart because the template does not include the full set of Joomla css style definitions.
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 14, 2013, 16:36:07 PM
Well, as I wrote earlier, I cannot see how this can be a template problem, when it also exists when I use Atomic template ?? This template is selected now, so please see for yourself - there is still an extra line on top of the string. I have tried english too - same problem.

Title: Re: Strange line break in VM cart module !?
Post by: Maxim Pishnyak on August 14, 2013, 22:39:59 PM
But, on non VM page
Quote from: jenkinhill on August 14, 2013, 10:19:58 AM
<link rel="stylesheet" href="/jupgrade/components/com_virtuemart/assets/css/vmsite-ltr.css" type="text/css" />
<link rel="stylesheet" href="/jupgrade/components/com_virtuemart/assets/css/facebox.css" type="text/css" />
<link rel="stylesheet" href="/jupgrade/components/com_virtuemart/assets/css/chosen.css" type="text/css" />
still are absent.

You need to have VM css styling for any Joomla template. It's preferable way.
http://docs.virtuemart.net/tutorials/33-templating-layouts/106-override-vmsite-ltr-css.html
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 15, 2013, 06:44:54 AM
Hmm... well.. now I have added theese three style sheets to the index.php - makes no difference !? :-(

Title: Re: Strange line break in VM cart module !?
Post by: Maxim Pishnyak on August 15, 2013, 10:25:54 AM
You could try to cut
<!-- Virtuemart 2 Ajax Card -->
in com_virtuemart.2.0.22_ext_aio\admin\modules\mod_virtuemart_cart\tmpl\default.php

Also you need to get rid of
    <script src="/jupgrade/templates/murshop/jquery.js"></script>
    <script>jQuery.noConflict();</script>

in your template.
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on August 15, 2013, 17:57:03 PM
There is no path: com_virtuemart.2.0.22_ext_aio\admin\modules\mod_virtuemart_cart\tmpl\default.php !?

There is this path: \modules\mod_virtuemart_cart\tmpl\default.php

But no difference removing the line and no difference removing the two jquery lines in index.php
Title: Re: Strange line break in VM cart module !?
Post by: herbie4 on October 17, 2013, 21:31:58 PM
Just wondering Ronny... did you get this problem solved? If yes, how? I am having the same problem here. Hope you can help me...
Title: Re: Strange line break in VM cart module !?
Post by: Ronny Buelund on October 18, 2013, 06:45:14 AM
No - sorry - no solution yet.