Automatically Redirects to the Single Product in a Category or Search Result!
The Single Product Redirect Module for OpenCart (vQmod) is designed to create a more natural flow throughout an OpenCart storefront by eliminating the extra step commonly found when a category only contains a single product, and there are no further subcategories for the user to explore. This module also makes it possible to use Categories that would be displayed in the menu or navigation bar to link directly to a product, assuming however that there are no subcategories attached to that category.
Essentially, any time a request is made for a category level element, this module looks to see first if there are any subcategories. This is important because if there are more categories under the currently viewed category, we do not want to redirect the user away from being able to select the other subcategories. Once the user is in a last-level category (i.e. no more subcategories underneath it) the module then looks to see how many products are to be displayed. If there is only one product found, it automatically redirects the user seamlessly to the product page without first stopping on the category page.
As an example, if a storefront is selling computer repair services, they could create “Services” as a top level category. Then underneath “Services” they could create “Screen Replacement”, “Battery Replacement”, “Hard Drive Recovery”, or any other number of categories. Then they could create a single product in each of those subcategories so users can add the service to their cart and such. The front-end would then have the “Services” menu displayed with the subcategories that drop down from the menu. Clicking on any of the services would take the user directly to the service page to select options and add to cart, skipping to need to go to the “Screen Replacement” category page just to click on the “Screen Replacement” service item.
Additionally, any search results that result in only a single product to be displayed will now redirect the user directly to the product page of the single product that would have been displayed for the search query. Again, this eliminates the needless intermediary category page which would normally be displayed to show the single product.
Utilizing vQmod for OpenCart, this module contains only a single file to be uploaded, and does not modify a single core file of the OpenCart system. Instead, using the vQmod system, it dynamically injects the necessary code into cached version of the core files allowing for complete native functionality, while still maintaining the ability to update the OpenCart system without worry of overwriting any changes made by this plugin.
Compatible with OpenCart 1.5+ & OpenCart 2.0+!
This module includes two versions! The first provides support for all sites running OpenCart 1.5+. The second version provides support for all sites running OpenCart 2.0+. Simply install the version specific to your current version of OpenCart and within minutes the module is up and running.
Fully tested and functional with OpenCart 1.5.6 and vQmod 2.4.1
Fully tested and functional with OpenCart 126.96.36.199 and vQmod 2.5.1
vQmod is absolutely required to use this module! Please make sure you have vQmod installed on your installation of OpenCart prior to attempting to use this module. vQmod is a free download.
We also highly recommend vQmod Manager! This is also a free module for OpenCart which makes it remarkably easier to manage modules and clear the vQmod cache on demand, something that needs to be done when modules are updated, added, or removed from the site.
Included with this module are two vQmod XML Module files which are to be uploaded to the XML folder of the vQmod installation. One file is used for any storefronts running OpenCart 1.5+ versions, while the other file is used for storefronts running OpenCart 2.0+ versions. Only one file needs to be installed for the version of OpenCart that is being used.
Change HistoryVersion 1.2.0 (current)
- Tested & Functional with OpenCart 188.8.131.52 and vQmod 2.5.1
- Added Support for Search Result Page Redirection
- Tested & Functional with OpenCart 1.5.6 and vQmod 2.4.1
- Initial software release