VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: drizzt99 on September 13, 2011, 14:18:43 PM

Title: Can't set more than 1 product/row
Post by: drizzt99 on September 13, 2011, 14:18:43 PM
Hi,
I've set the number of categories/row to 3 (default).
When I look at the code it's like this (I show the relevant code only):

<div class="row">
<div class="category floatleft width33 vertical-separator">
...
</div>
<div class="category floatleft width33 vertical-separator">
...
</div>
<div class="category floatleft width33">
...
</div>
</div>
<div class="horizontal-separator"></div>
<div class="row">
<div class="category floatleft width33 vertical-separator">
...
</div>
<div class="category floatleft width33 vertical-separator">
...
</div>
<div class="category floatleft width33">
...
</div>
</div>


As you can see, the class code is inserted fine. The problem might be with the JS that parses it (again, might be...).

The outcome is all the categories are aligned to the right/left (depending on language) and one above each other (see attachment).
When I add

style="text-align: center; width: 33%; float: right;"

To the category divs, I get the right alignment (see attachment).

Can you help me solve this?

I'm using Joomla 1.7 with VM2RC (the newest).

[attachment cleanup by admin]
Title: Re: Can't set more than 1 product/row
Post by: jjk on September 13, 2011, 18:04:42 PM
You might check your template positions like described here: http://docs.joomla.org/Finding_module_positions_on_any_given_page (http://docs.joomla.org/Finding_module_positions_on_any_given_page)
and also try a different template. I'm using 4 categories/products in a row, which works without problems and with all templates I've tried so far.
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 13, 2011, 22:53:31 PM
Hi,

I'm sorry but your answer is irrelevant for two major reasons:

1) These are not module positions. It is not related. This is ordinary category view. I stated the code which does not work for me.
2) I used a fresh install, so no template modifications have been made to the VM code. The phenomenon happened with the "Sample Data" as well. Hence, something is wrong in the core installation (i tried reinstalling).

The problem as I see it is that the styling is not parsed. This code:  class="category floatleft width33 vertical-separator" is supposed to be parsed by a JS (or Ajax or whatever) but it isn't, and the divs are now styles (this is the problem, since adding the style attribute as mentioned solves the problem).

Just in case, I tried it with the beez template that comes with Joomla - same problem. I tried with 3 different browsers (ie, chrome and FF) - still the same problem.

Any idea how to make it work?

Thanks,
Yonatan
Title: Re: Can't set more than 1 product/row
Post by: Milbo on September 15, 2011, 14:45:02 PM
Did you updated to G?
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 15, 2011, 14:46:51 PM
Yes, I have (using the auto update).
No change...
Title: Re: Can't set more than 1 product/row
Post by: Milbo on September 15, 2011, 15:03:05 PM
Which browser are you using?

Maybe, ha, I have an idea, maybe it is connected to your right left reading? When you change it to hebrew? for exampel some browser utf8 thing?
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 15, 2011, 15:04:58 PM
Oh yea... I'm using an RTL template...
Can this be fixed?
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 22, 2011, 08:01:28 AM
Hi,
Any solution?
Title: Re: Can't set more than 1 product/row
Post by: Milbo on September 22, 2011, 11:10:37 AM
It is connected to your template afaik.
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 22, 2011, 11:58:14 AM
No it is not.
I changed to Joomla 1.7 default template (beez and others that come with the installation) and it is still the same.
This is a VM issue...
Title: Re: Can't set more than 1 product/row
Post by: Milbo on September 22, 2011, 13:35:40 PM
it was a vm issue, but afaik fixed
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 22, 2011, 13:53:53 PM
What was the fix? I didn't get it and I'm using the latest version...
Title: Re: Can't set more than 1 product/row
Post by: Milbo on September 22, 2011, 14:13:56 PM
I thought it is already in the G version. You may use the svn.
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 22, 2011, 14:27:48 PM
I'm currently using this version: 2.0.0-RC-2G
Joomla 1.7.
It happens with ALL templates.
It happens only with RTL languages (when I switch the language in the Language Manager of Joomla).
This is a serious bug...
Title: Re: Can't set more than 1 product/row
Post by: Milbo on September 22, 2011, 16:22:48 PM
Quote from: drizzt99 on September 22, 2011, 14:27:48 PM
It happens only with RTL languages (when I switch the language in the Language Manager of Joomla).

Ahhaaa ! There it is!
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 22, 2011, 16:28:36 PM
What do you mean?
I just told you it happens with ALL of the templates - hence, my template is OK. The problem is with VM.
It happens when I change language in Joomla... why does it happen? What would be the solution?
From your response I only get: "the problem is with RTL". What do you mean? It happens with ALL of the templates. So if VM has a problem with RTL languages, it is a VM problem, am I right?
Title: Re: Can't set more than 1 product/row
Post by: Studio 42 on September 22, 2011, 16:46:03 PM
Quote from: drizzt99 on September 22, 2011, 14:27:48 PM
I'm currently using this version: 2.0.0-RC-2G
Joomla 1.7.
It happens with ALL templates.
It happens only with RTL languages (when I switch the language in the Language Manager of Joomla).
This is a serious bug...

We decide to do VirtueMart2 Universal !

The RTL CSS is only in alpha stage,
virtuemart2.0\components\com_virtuemart\assets\css\vmsite-rtl.css
But it's here.

You have 2 solution for now :
- do the rtl css correctly for you .(you can use vmsite-ltr.css for example)
- copy vmsite-ltr.css over vmsite-rtl.css

if you write Arabic, Hebrew, Syriac, Thaana or N'Ko script,  thanks to correct the css and send it to the forum ;)

Greets,
patrick

Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on September 22, 2011, 16:54:46 PM
Ok,
Now you're talking.
I'll go ahead and fix the rtl css and upload it here :)
Should be over tomorrow I guess...
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on October 23, 2011, 07:49:35 AM
Ok,
I got the file so far. It is attached here.
Due to some errors in the system I'm unable to see products, so right now I was able to fix only the categories - but this is better than nothing :)

[attachment cleanup by admin]
Title: Re: Can't set more than 1 product/row
Post by: adam aziz on November 16, 2011, 15:22:29 PM
I'm having this problem as well - http://74.208.93.31/chassestore/index.php?page=shop.browse&category_id=1&option=com_virtuemart&Itemid=1

Nothing I do seems to fix it. Any ideas? I am using whatever language it came installed with... i haven't changed anything.
Title: Re: Can't set more than 1 product/row
Post by: drizzt99 on November 16, 2011, 15:29:43 PM
You need to setup the css file.
Look at the posts above. I've added the rtl css file.  If you're using English (or ltr language) then you are missing the ltr file...
But more likely it is a problem with thr RTL file.
Title: Re: Can't set more than 1 product/row
Post by: andyts on June 27, 2012, 21:56:50 PM
Thanks drizzt99,
You're my hero
I'm building hebrew website and was having that issue for a while and could not find a solution. I'm on virtuemart 2.0.6 now and it's still not fixed there.
Toda raba