VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: lipes on June 04, 2012, 02:50:48 AM

Title: pagination problem
Post by: lipes on June 04, 2012, 02:50:48 AM
Hi. i am inserting some products in all categories..
but the view of the Category (i think its browse page the name) give me always 10 products in the view and i dont have the value "10" in the Administration are i've got to Costumer Select from 16, 32, 64 and 128 products... I dont Understand why every time i visit a Category it starts with a list of 10 products ...

even if we change the "Max products per view in frontend"  in  "Configuration" -> "Shopfront""   to 30
in the category/default.php  file the  <?php echo $this->vmPagination->getLimitBox(); ?>
we have set the "Set the pagination sequence for the List Box"  to Users could choose by 16, 32, 64, 128
and we'll get 30 products not the 16 or 32 ... etc... that it's by default



Another thing its related with the pagination...
For example if we visit the "Category A" that got 6 pages with products to visit.... and go to the last page 6....
If then we change to "Category B" (in the main menu).... in this Category we start the pagination in Page 6!!! This is very strange because sometimes we think like we dont have more products to see.. because we cant move forward..

if we change the Category.. we go always to the same # page and dont start from page number 1 by default  :-\
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: sadrem on June 04, 2012, 08:11:39 AM
go to "Configuration" -> "Shopfront"  and change  "Max products per view in frontend" 
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: sadrem on June 04, 2012, 17:19:01 PM
just set "Max products per view in frontend" to 16 and You get default like You want 16, 32, 64, 128

What is the problem?
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: sadrem on June 04, 2012, 18:10:54 PM
yes
I just set Max products per view in frontend = 18
and 18 ,24 ,30 all for pagination

Works perfect
check this out
http://judaica-ester.com/shop/judaica/hamsa-hand (http://judaica-ester.com/shop/judaica/hamsa-hand)
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: sadrem on June 04, 2012, 18:55:01 PM
I'm using 2.0.6 stable
2.0.7D it's beta version .
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: lipes on June 04, 2012, 19:36:47 PM
Correct! thats the reason :D
Like the topic say i am talking about "2.0.7 D list and pagination problem"...
I am still in the "testing phase" (under development) in the localhost..  it's not yet with a "live website"  :)

so i've write the msg in this forum for "Development & Testing" to VM2 Developers could see (ie if they do not already know about it..) :P
But tks for your help!
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: sadrem on June 04, 2012, 20:05:00 PM
 ::)
Title: Re: 2.0.7 D list and pagination problem in the Category browse product list
Post by: lipes on June 11, 2012, 02:26:43 AM

not solved in 2.0.7 E..

For example:
If we have an category with 6 pages (and we are in the page 6) .. and we click to change to another product category with 10 pages ... we start from page 6.. and not fom the page 1 (like i think it must be the 1st page.. not from the 6th page)  ???
Title: pagination problem in the Category
Post by: lipes on June 16, 2012, 16:50:28 PM
Product Pagination is solved for the Products Category! in 2.0.7 F

BUT i did another test and got the same problem for Manufacturer Products Page:
1 - We we are visiting the Category "Televisions" and we are in page 3
2 - then we'll go to the Manufacturer page (where we could select one MF to see that MF products )
( index.php?option=com_virtuemart&view=manufacturer )
3 - the we select any Manufacturer (with products inserted)...
and we start view the products in the Page 3, not in Page 1 like should be.
Title: Re: pagination problem
Post by: Ty3uK on August 11, 2012, 10:17:19 AM
got some issue manufacturer pages begin whith page2 not 1
Title: Re: pagination problem
Post by: Milbo on August 12, 2012, 15:34:26 PM
should be fixed is in the svn, next release.
Title: Re: pagination problem
Post by: Ty3uK on August 16, 2012, 07:27:44 AM
can u say how fix it.. some code.. my working site cant function..
some issue in goods page.. when select some 10 20 50  goods on page u cant got to first page..
Title: Re: pagination problem
Post by: jjk on August 16, 2012, 08:16:14 AM
Did you test version 2.0.9 or 2.0.9a already. These versions include a (test-) fix for the manufacturer pagination problem.
http://dev.virtuemart.net/projects/virtuemart/files (http://dev.virtuemart.net/projects/virtuemart/files)
Title: Re: pagination problem
Post by: Ty3uK on August 16, 2012, 09:05:41 AM
2.09 fix pagination problem at goods pages..?
cant go to 1 page when change goods on page &
can see there http://krasotka.ck.ua/index.php?option=com_virtuemart&view=category&virtuemart_category_id=15&Itemid=54
try change goods on page and go to 1 page
Title: Re: pagination problem
Post by: bytelord on August 16, 2012, 09:38:21 AM
Hello Ty3uK,

What version you currently have on your site? If you have 208e could you please try it with 209 on a test installation and report your results?

Thanks.
Title: Re: pagination problem
Post by: jjk on August 16, 2012, 09:52:42 AM
It seems to be a problem with the selected "List Limits" not working correctly. In your case it works if you select "50" as a list limit from the frontend dropdown menu.
On my site (version 2.0.9a) I have the opposite problem - while in the manufacturer's view, I can't go to page numbers higher than 1.
Title: Re: pagination problem
Post by: adnank on August 24, 2012, 12:51:24 PM
I am also having this problem with J2.5.6 and VM 2.0.2. I have to use 2.0.2 because upgrading breaks VM theme I use. Is there any solution? My website is www.ris.ba and shop is here http://www.ris.ba/en/online-shop
Title: Re: pagination problem
Post by: Milbo on August 24, 2012, 13:05:10 PM
The solution is to update.
Title: Re: pagination problem
Post by: jjk on August 24, 2012, 14:19:11 PM
Quote from: adnank on August 24, 2012, 12:51:24 PM
... I have to use 2.0.2 because upgrading breaks VM theme I use.
Send RT a note that you need to update to VM 2.0.10 and that they should update their theme as well.  ;)
Title: Re: pagination problem
Post by: adnank on August 24, 2012, 15:38:01 PM
It is not RT that makes trouble, but VirtuePlanet :) Anyway, problem fixed when I turned on SEO in Virtuemart configuration.
Title: Re: pagination problem
Post by: Milbo on August 24, 2012, 20:55:22 PM
adnank, cant be fixed, because we fixed it for 2.0.8e
Title: Re: pagination problem
Post by: JtC on August 27, 2012, 00:29:36 AM
I have version 2.0.8, but can't upgrade because of so much changes and development so i make a working but little filthy hack on this.

in components/com_virtuemart/views/category/tmpl/default.php

on line 119 where is: <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>"> 
change to <a href="<?php echo $caturl.'?limit=10'; ?>" title="<?php echo $category->category_name ?>">
change number to whatever you like (this is for child categories);

And for categories in menu (assuming you are using virtuemart category menu)
in modules/mod_virtuemart_category/tmpl/default.php
on line ca 28 where is $caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$category->virtuemart_category_id);

change  to:
if(empty($category->childs)){$limit = '&limit=10';}else{$limit='';}
$caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$category->virtuemart_category_id.$limit);

Solution worked for me. Hope it helps somebody.


Title: Re: pagination problem
Post by: randomdev on September 11, 2012, 08:04:14 AM
Thanks for solution above JtC. I am using vm 2.0.6 but cant upgrade due to site and template modifications.
My site also has some links on the standard joomla menu to virtuemart categories but these links dont appear to be editable (I cant just add &limit=12 to the end)
Any idea how I would fix these also?

I still have an issue with acesef when I visit for example page 3 then go back to page 1 and try page 3 again I get an odd link name like /page-22-20 wheres on the first visit to the category the third page will be /page-3 which I think means it is losing the limit value somewhere