VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: anhel on November 14, 2021, 09:53:53 AM

Title: Producr Short By returns error
Post by: anhel on November 14, 2021, 09:53:53 AM
Hi iam relative new and i would like help regarding the short by functions in my website

I use joomla 3.9.20 and virtuemart 3.8.4

In the frond end when i click the ordering button to short the products by price, name or anything it gives error

Notice: Undefined offset: 13 in /home/......./......./components/com_virtuemart/router.php on line 381

Notice: Undefined offset: 13 in /home/......./......./components/com_virtuemart/router.php on line 384

Notice: Undefined property: VirtuemartViewCategory::$search in /home/......./......./templates/xenon/html/com_virtuemart/category/default.php on line 347

The lines in router.php are

   if(strpos($segments[$i+1],',')!==false){
            $vars[ $segments[$i] ] = explode(',',$segments[$i+1]);
         } else {
            $vars[ $segments[$i] ] = $segments[$i+1];

I use the xenon virtuemart tempalte

In configuration i have the Product Sort Order Settings by default to ordering

Any help appreciated

Title: Re: Producr Short By returns error
Post by: anhel on November 21, 2021, 07:47:09 AM
Solved

I had accidently deactivated the SEO in virtue mart configuration.

After enabling it everything works fine regarding the sort by field.
Title: Re: Producr Short By returns error SOLVED
Post by: anhel on November 21, 2021, 07:50:57 AM
Quote from: anhel on November 14, 2021, 09:53:53 AM
Hi iam relative new and i would like help regarding the short by functions in my website

I use joomla 3.9.20 and virtuemart 3.8.4

In the frond end when i click the ordering button to short the products by price, name or anything it gives error

Notice: Undefined offset: 13 in /home/......./......./components/com_virtuemart/router.php on line 381

Notice: Undefined offset: 13 in /home/......./......./components/com_virtuemart/router.php on line 384

Notice: Undefined property: VirtuemartViewCategory::$search in /home/......./......./templates/xenon/html/com_virtuemart/category/default.php on line 347

The lines in router.php are

   if(strpos($segments[$i+1],',')!==false){
            $vars[ $segments[$i] ] = explode(',',$segments[$i+1]);
         } else {
            $vars[ $segments[$i] ] = $segments[$i+1];

I use the xenon virtuemart tempalte

In configuration i have the Product Sort Order Settings by default to ordering

Any help appreciated
Title: Re: Producr Short By returns error
Post by: Jörgen on November 21, 2021, 11:04:09 AM
Solved or not ?

Jörgen @ Kreativ Fotografi