VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: emmanuel on December 12, 2012, 04:17:56 AM

Title: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: emmanuel on December 12, 2012, 04:17:56 AM
hey  anyone  have this question?

here is the answer:

<a href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limit=5000&page=shop.browse&virtuemart_category_id=' . $this->category->virtuemart_category_id); ?>">- View All</a>

put that near a pagination or on top of the list of your products...

Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: elleclouds on December 08, 2015, 21:59:51 PM
Where exactly do I put this?
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: GJC Web Design on December 08, 2015, 23:52:23 PM
Its a link.. so where ever you want it...
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: elleclouds on December 09, 2015, 05:29:57 AM
Where is anywhere?  I am trying to input it in product categories in virtuemart.  I just want the pagination to go from 25, 50, 75 , view all ...there is nowhere to put this link in the Category Pagination Sequence

Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: GJC Web Design on December 09, 2015, 09:42:47 AM
if u want it in the pagination you will need to hack the pagination files -

the code above is just an example of a url that shows all the products
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: elleclouds on December 09, 2015, 15:10:27 PM
So there is no way to have a pagination with view all without hacking the code? 
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: jenkinhill on December 09, 2015, 15:47:06 PM
To include that within the pagination drop down list then possibly this can be done by an override of templates/[YourJoomlaTemplate]/html/pagination.php   https://docs.joomla.org/Understanding_Output_Overrides

Or you could make an override of  components/com_virtuemart/views/category/tmpl/default.php just to display the View all (or whatever you call it) link beside or under the usual pagination div.
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: elleclouds on December 10, 2015, 17:47:50 PM
Quote from: jenkinhill on December 09, 2015, 15:47:06 PM
To include that within the pagination drop down list then possibly this can be done by an override of templates/[YourJoomlaTemplate]/html/pagination.php   https://docs.joomla.org/Understanding_Output_Overrides

Or you could make an override of  components/com_virtuemart/views/category/tmpl/default.php just to display the View all (or whatever you call it) link beside or under the usual pagination div.

Thanks for the help, but I am still lost.  What should I put in those files you mentioned?  I would rather modify the pagination so that as I enter "25,50,75, view all" it knows that view all should display all the products in the category..Thanks in advance for helping a novice such as myself
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: elleclouds on December 23, 2015, 05:12:00 AM
Can anyone please help with this... this is a feature that literally on most online shops.. Please where do I put this info?
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: elleclouds on December 23, 2015, 07:10:30 AM
Quote from: elleclouds on December 09, 2015, 05:29:57 AM
Where is anywhere?  I am trying to input it in product categories in virtuemart.  I just want the pagination to go from 25, 50, 75 , view all ...there is nowhere to put this link in the Category Pagination Sequence

This was straight forward..any way to do this?
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: GJC Web Design on December 23, 2015, 12:52:08 PM
there is enough info from Jenks for this...  have u tried?

If u don't have the coding skills then it is normal to learn them or employ someone who has... 
Title: Re: [ SOLVED ] How to create a "View All" Link To Display All Products in a Category
Post by: jenkinhill on December 23, 2015, 13:01:59 PM
If you want to override the pagination drop-down then the link I gave should help, but this is a Joomla question, so if you still don't understand then ask on the Joomla forum. Or as GJ says, commission a developer.