linkedintwitterfacebookbranchout

sublogo
  • Our Services
  • Our Work
  • Who
  • Contact

Recent Blogs

  • Upgrade Joomla

  • How to design a Joomla website

  • What is Joomla?

  • Joomla Page Titles Module

  • Joomla FFmpeg Hosting

  • Working with Joomla

  • Social Networks and SEO

  • Blogging with Joomla

  • Joomla 1.7 For Web Sites

  • Custom Joomla Template Styling

  • Bespoke Custom Joomla Templates

  • Search Preview? You need it!

  • Introduction Articles in Joomla

  • Advertising Rules on Websites

  • Sef404 Virtuemart Pagination

  • Why Upgrade to IE9?

  • Expanding Joomla Content

  • Google's Goal

  • Meta Tags Help

  • E-Commerce Made Easy!

  • Joomla Installation

  • Joomla SEO Check

  • Improve your Joomla web site

  • Joomla htaccess re-write

  • Joomla Template Parameters

  • Email Safety

  • Create a hidden menu

  • Joomla1.6

Sef404 Virtuemart Pagination

Details
Created on Monday, 22 August 2011 11:54   |  
Written by The bloggers

Just recently we came across an issue with pagination using Sef404 and Virtuemart 1.1.5. After scratching our heads and spending an hour searching the internet we found a solution very well hidden and not even on the Virtuemart website or the Sef404 website, mm odd is not the word.

So in the event that you are having the same issues and have spent for ever trying to find a solution then here it is.

Open your file in dreamweaver or any other web editor from /administrator/components/com_virtuemart/classes/ps_main.php and at the bottom of that php file around line 1326 you should find the code starting with function vmRoute. What you need to do is replace all of this but not the closing php statement ?>

function vmRoute( $nonSefUrl) { if(!strpos('option=com_virtuemart',$nonSefUrl)) { $nonSefUrl = str_replace( '&', '&', $nonSefUrl); $nonSefUrl = str_replace( '?', '&', $nonSefUrl); if(strpos($nonSefUrl,'&')) $nonSefUrl=preg_replace('/&/', '?', $nonSefUrl, 1); return $nonSefUrl; }
if (class_exists('JApplication')) { // J 1.5
 $nonSefUrl = str_replace( '&', '&', $nonSefUrl); 
 $nonSefUrl = str_replace( JURI::base(), '', $nonSefUrl); // you are adding & and mosConfig_live_site to urls, but it is actually the role of the sef function to do this. So we have to remove them, otherwise Joomla router will not accept to sef-y the url
 $url = JRoute::_( $nonSefUrl);
 } else { // J 1.0
 $url = sefRelToAbs( $nonSefUrl);
 }
 return $url;
}

Once you have placed this code into your php file save it and upload the file back to your server and the pagination issue with sef404 and Virtuemart has now been resolved.

address

27 Levens Grove
Blackpool
Fy15PP
Lancashire
Tel: 01253 317504

Chat With a Joomla Expert

Features

  • Web Site Design and Development
  • Joomla Developers
  • Joomla Training Courses
  • E-commerce Sites
  • Web Site Promotion and Marketing

Clients

clients

  • Home
  • Blog
  • Terms and Conditions
  • Privacy Policy
  • Testimonials

 Copyright © 2006 - 2012 All Rights Reserved - Web Design Studio Limited -Tel: 01253 317504 - Mobile : 07896978967