News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Can't set more than 1 product/row

Started by drizzt99, September 13, 2011, 14:18:43 PM

Previous topic - Next topic

drizzt99

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]

jjk

You might check your template positions like described here: 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

drizzt99

#2
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

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/

drizzt99

Yes, I have (using the auto update).
No change...

Milbo

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?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

drizzt99

Oh yea... I'm using an RTL template...
Can this be fixed?

drizzt99


Milbo

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

drizzt99

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...

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/

drizzt99

What was the fix? I didn't get it and I'm using the latest version...

Milbo

I thought it is already in the G version. You may use the svn.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

drizzt99

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...

Milbo

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!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/