VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: dml311071 on November 22, 2018, 18:26:28 PM

Title: Products per page different in Firefox and Chrome
Post by: dml311071 on November 22, 2018, 18:26:28 PM
Joomla 3.9.0
VM 3.4.2
PHP 7.1.24

I have had this problem for a while now: Virtuemart > Configuration > Template > Pagination Sequence

Frontend default items per list view is set to 24. It divides better over various web portals (2, 3, 4, 6, 8 & 12 divide well). So on Firefox all is well, 24 products shown by default on category layout pages.


Chrome however, refuses to show more than 10 so my pages look off balance, instead of 6 rows of 4 products, I get 2 rows of 4 and 1 row of 2. This misleads the customer into assuming that there are no further pages to navigate.

Also, you cannot set Chrome to show more than 10. You cannot even change number displayed manually using the display numerator at the foot of the page

Has anyone come across this? And know how to solve it?



Title: Re: Products per page different in Firefox and Chrome
Post by: GJC Web Design on November 22, 2018, 21:38:00 PM
is it cached in Chrome?  the userstate is set by the initial load then held in session

make sure u have cleaned the Chrome cache which caches imho far more strongly than FF etc
Title: Re: Products per page different in Firefox and Chrome
Post by: dml311071 on November 23, 2018, 12:13:30 PM
Hi,

Thanks for the reply. I have now cleaned the full cache to browser levels on 4 of my web enabled devices. Chrome still misbehaves, but now I am confused as Firefox has now also started behaving the same way. The html output code from the page source is as follows

<div class="paginaton-cont top-pagination hidden-xs"><div class="row row-condensed"><div class=col-sm-6><div class=pagination-counter-limit-cont> <span class=page-counter>Page 2 of 4</span> &nbsp; <span class="category-result-counter hidden-xs"> <label for=product_list_limitbox>Show</label> <select id=product_list_limitbox name=product_list_limitbox onchange=document.location.replace(this.value); class="form-control selectpicker"> <option value="/carp-fishing-tackle/carp-accessories?start=10&amp;limit=10" selected=selected>10</option> </select> <span>per page</span> </span> </div></div>

the temp url is http://f37c7fb37c039c67f0ecdadfd-15174.sites.k-hosting.co.uk/carp-fishing-tackle/carp-accessories

Feel free to take a look.

I have already asked the template developer and I have been assured that this is not a template issue.

Title: Re: Products per page different in Firefox and Chrome
Post by: GJC Web Design on November 23, 2018, 13:19:32 PM
yes-- all I see on yours is a 10 in the dropdown

but just tested on a clean install and does work here

but don't know where the 18 comes from--  :-\
Title: Re: Products per page different in Firefox and Chrome
Post by: dml311071 on November 23, 2018, 14:15:59 PM
Bit of a mystery for now then ???

I shall keep on looking but I cannot think of anything else running on the site that would interact with or override the pagination
Title: Re: Products per page different in Firefox and Chrome
Post by: jjk on November 29, 2018, 12:09:03 PM
You may also check the following settings, because they might override your global setting:
Menus: Edit Item > Virtuemart category view settings > Default number of products in a row
Product Category [Edit] > Show products of the selected category > Items per row

Also, perhaps check if updating to Joomla 3.9.1 makes a difference. They had a pagination bug in 3.9.0.
Title: Re: Products per page different in Firefox and Chrome
Post by: dml311071 on December 03, 2018, 17:54:39 PM
Hi,

Thank you for the response. I have updated now to 3.9.1 but the products refuse to budge past 10 per page. However, If I search products via the Brand carousel at the top, the layout defaults to 24

I have not quite cracked it but I think this is a clue.