VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: lipes on January 13, 2012, 23:44:38 PM

Title: strange code inside mod_virtuemart_product VM2.0
Post by: lipes on January 13, 2012, 23:44:38 PM
I've got an strange code inside the mod_virtuemart_product  (VM 2.0)

<table class="blog" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top"/>
</tr>
</tbody>
</table>

How i can delete this?! It gives me a bad / strange margin or padding between 2 divs ... and i dont think that i need this code on random products display.....

Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: lipes on January 15, 2012, 20:02:02 PM
Im in an local server... Please see this image...
(http://img51.imageshack.us/img51/8758/helpcr.jpg)

someone could help please?! Thanks
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: lipes on January 15, 2012, 21:12:44 PM
i've removed the code in:
D:\Ampps\www\MP2\components\com_content\views\frontpage\tmpl\DEFAULT.PHP

all lines, including the <table class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" cellpadding="0" cellspacing="0"> .. etc..

But the problem persists! :|

When i Disable the mod_virtuemart_product  (Extensions > Module Manager > mod_virtuemart_product  ) .. the problem goes away... but the list of random produts too! :|
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: Milbo on January 16, 2012, 11:41:39 AM
Quote from: prolipes on January 15, 2012, 21:12:44 PM
i've removed the code in:
D:\Ampps\www\MP2\components\com_content\views\frontpage\tmpl\DEFAULT.PHP

all lines, including the <table class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" cellpadding="0" cellspacing="0"> .. etc..

Redo it. com_content has nothing todo with vm. The problem must be in the mod_virtuemart_product
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: rooney on January 18, 2012, 05:46:04 AM
J1.7.3 & VM2
I am also having the same problem getting unwanted space in mod_virtuemart_product.
After disabling the module, the space goes away.

Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: lipes on January 18, 2012, 13:36:44 PM
i didnt discover but i've changed the styles codes with margins -10px one div over the div or table... this is a shit because i cant discover the solution for this problem but its ok...
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: PRO on January 18, 2012, 13:57:56 PM
prolipes, post your url
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: lipes on January 18, 2012, 15:55:46 PM
I'am in Ampps server making my father's website yet.

here's what i did / insert in the file   localhost\MP2\modules\mod_virtuemart_product\tmpl\default.php

<div style="margin-top:-15px">
<?php defined('_JEXEC') or die('Restricted access');
$col= 1 ;
$pwidth= 'width'.floor ( 100 / $products_per_row );
if ($products_per_row > 1) { $float= "float:left";}
else {$float="center";}
?>
.....
...
etc
</div>
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: PRO on January 18, 2012, 16:02:01 PM
<?php defined('_JEXEC') or die('Restricted access');
$col= 1 ;
$pwidth= 'width'.floor ( 100 / $products_per_row );
if ($products_per_row > 1) { $float= "float:left";}
else {$float="center";}
?>
<div style="margin-top:-15px">

dont put anything ABOVE 

<?php defined('_JEXEC') or die('Restricted access');
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: lipes on January 18, 2012, 16:49:39 PM
If i do this way like you say it gives me the same problem... :/
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: bluesheep on March 09, 2012, 17:59:32 PM
Hallo Forum

I have the same problem. Before the <div class="vmgroup"..... there are tree "tabstopp's". I have the newest revisions of the files.
Ich habe das gleiche Problem. Vor dem Code <div class="vmgroup"..... werden drei Tabstopss angezeigt. Ich arbeite mit den neusten Datei-Revisionen.

Beste Grüsse
bluesheep
Title: Re: strange code inside mod_virtuemart_product VM2.0
Post by: bluesheep on March 10, 2012, 08:48:57 AM
Good morning forum

I have sold the problem with this post: http://forum.virtuemart.net/index.php?topic=98700.msg326459#msg326459 its works fine!
Mein Problem habe ich mit diesem Post gelöst: http://forum.virtuemart.net/index.php?topic=98700.msg326459#msg326459 es funktionierte gut!

VM 2.0.2 + Joomla 2.5.2 + newest revision of the mod_virtuemart_product files
VM 2.0.2 + Joomla 2.5.2 + neuste Revision der mod_virtuemart_product Dateien

Beste Grüsse
bluesheep