Hi, i was just modifying my product page, until I saw that i the slider counter is displaying the wrong amount of thumbnails are there:
My website & password:
St0r3P4ssw0rd
Product page slider counter shows an incorrect number of thumbnails/pages (miscount). A screenshot was shared, and site URL with password was provided for troubleshooting access.
Cause and fix: The counter’s calculation in global.js uses an off-by-one formula. Locate the line that computes totalPages (e.g., using sliderItemsToShow and slidesPerPage) and remove the trailing “+ 1” from the expression. This change corrects the page count.
Technical note: An “off-by-one” error is when a count is incremented or decremented incorrectly by one, resulting in display mismatches. The totalPages variable should reflect the exact number of pages based on items and items per page without the extra +1.
Outcome: A specific code edit was provided and reported to resolve the miscount. No further disagreements or additional steps were noted. The discussion appears resolved, pending confirmation after applying the change.
Hi, i was just modifying my product page, until I saw that i the slider counter is displaying the wrong amount of thumbnails are there:
My website & password:
St0r3P4ssw0rd
I found a solution. Go to global.js an find this line
“this.totalPages = this.sliderItemsToShow.length - this.slidesPerPage + 1;”
and remove +1 at the end of the line that’s it!
Thanks