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

Producr Short By returns error

Started by anhel, November 14, 2021, 09:53:53 AM

Previous topic - Next topic

anhel

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


anhel

Solved

I had accidently deactivated the SEO in virtue mart configuration.

After enabling it everything works fine regarding the sort by field.

anhel

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

Jörgen

Solved or not ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.