News:

Looking for documentation? Take a look on our wiki

Main Menu

Grid view not working

Started by ngodoan, July 13, 2013, 06:40:35 AM

Previous topic - Next topic

ngodoan

Hi everyone,

My website use Joomla 2.5.11 & VM 2.0.22. I use gridview to show product, but dropdow list dont active. When I choose a number to show, it's not run.
my website: http://nguyenthuysalonspa.vn/en/hair/gel/

My file: components/com_virtuemart/views/category/tmpl/default.php .

<div class="orderby-displaynumber">
<div class="width70 floatleft">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
</div>
<div class="width30 floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox (); ?></div>
<div class="vm-pagination">
<?php echo $this->vmPagination->getPagesLinks (); ?>
<span style="float:right"><?php echo $this->vmPagination->getPagesCounter (); ?></span>
</div>

<div class="clear"></div>
</div> <!-- end of orderby-displaynumber -->


How can I fix it to choose another number to show product ? Also, I want to show "Add to cart" button from list view, please help me solve it.

Thanks alot.
ngodoan




[attachment cleanup by admin]

Maxim Pishnyak

Quote from: ngodoan on July 13, 2013, 06:40:35 AM
1. My website use Joomla 2.5.11 & VM 2.0.22. I use gridview to show product, but dropdow list dont active. When I choose a number to show, it's not run.
2. My file: components/com_virtuemart/views/category/tmpl/default.php .
...
3. How can I fix it to choose another number to show product ?
4. Also, I want to show "Add to cart" button from list view, please help me solve it.
1. Check sticked threads (or FAQs) on VM2 Template forum. Tool called Firebug described in this threads has console that could detect if you have js errors on your page.
These errors could happen when more then one jquery.js was used.
I.e. when not well configured joomla module with some animation was used.

2. You're using for work standalone VM file from "views" folder.
Direct using for customizing web shop design such files is NOT recommended.
Instead "template overrides" must be used and used by majority of us on this forum.
There're also sticked thread (or FAQs) about template overrides.
Check it youself, please.

3. Number of elements in various lists is adjustable in Joomla configuration and in VM configuration.

4. About this issue check sticked thread too.

Regards.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

ngodoan

Thanks for your reply.

With add to cart button, I have done. But dropdown list to choose number show, I try to turn off all module, plugin in my site but it's unsuccessful.

I also search FAQs but I dont see any related topic. Can u show me the file in VirtueMart ?


Best regards,
ngodoan

Maxim Pishnyak

Quote from: ngodoan on July 17, 2013, 06:18:55 AM
But dropdown list to choose number show, I try to turn off all module, plugin in my site but it's unsuccessful.

I also search FAQs but I dont see any related topic. Can u show me the file in VirtueMart ?
Previously I mentioned specific FAQ called "Use Firebug to examine/edit page code and style".

You could test your issue with some standard Joomla template (for example Beez5).

Also you could post here screen shoots of your pagination options (from both Joomla and VM settings).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Maxim Pishnyak

#4
Yep, I've got what was the problem.

Each category inherits pagination settings that were in place during creating this category.

So after changing pagination options in main VM settings, it's necessary to change also pagination options for already created categories.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

ngodoan

Quote from: Maxim Pishnyak on July 17, 2013, 13:40:23 PM
So after changing pagination options in main VM settings, it's necessary to change also pagination options for already created categories.

How can I fix it ? please show me.

Thanks alot

Maxim Pishnyak

Easy!

Visit each problematic category in the backend and check their options.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

ngodoan

Yes, I fount it. But I have some problem.

- Category Pagination Sequence : I enter 4,8,12,24,40 . but in front-end, it still show 20,40,80,80,200
- Initial number of listed items : When I enter a number at here, I cant choose another number from dropdow list. (it still shows a number which I set initial)

How can I do it better ?

Thanks for your help.


Best regards,
NgoDoan

jenkinhill

There is a pagination fix in 2.0.22a - maybe that fixes it for you?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

ngodoan

oh la la ^^! Thanks very very much...I have updated lastest version 2.0.22a and it work right.

Thanks for your support.


Best regards,
NgoDoan