News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[ SOLVED ] How to create a "View All" Link To Display All Products in a Category

Started by emmanuel, December 12, 2012, 04:17:56 AM

Previous topic - Next topic

emmanuel

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...



GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

elleclouds

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


GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

elleclouds

So there is no way to have a pagination with view all without hacking the code? 

jenkinhill

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.
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

elleclouds

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

elleclouds

Can anyone please help with this... this is a feature that literally on most online shops.. Please where do I put this info?

elleclouds

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?

GJC Web Design

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... 
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

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.
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