VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: Otto0815 on January 09, 2013, 02:54:18 AM

Title: No more Neighbours since 2.0.16
Post by: Otto0815 on January 09, 2013, 02:54:18 AM
Hi,

since i've updated to Version 2.0.16x i've got no more neighbours (the links to the next products on top of the page) in the productdetails page; with 2.0.15e everything was fine....

I've just updatet to 2.0.18 and i makes no difference...if i do a fallback to 2.0.15e they appear again....

The setting in Virtuemart config page is checked....Breadcrumps are enabled also

where can this come from?
Title: Re: No more Neighbours since 2.0.16
Post by: Milbo on January 09, 2013, 13:48:39 PM
no clue, I need BE login with superadministrator and a working extplorer, then I can take a look.
Title: Re: No more Neighbours since 2.0.16
Post by: uschmi on January 09, 2013, 13:53:18 PM
Same problem for me - since 2.0.16 (and also for 2.0.18) the neighbourhoods are gone...
Title: Re: No more Neighbours since 2.0.16
Post by: midnas on January 09, 2013, 14:32:51 PM
I also had a problem with this. On two pages. One was the same, other was slightly different.

Wrote about it , but no respond:
http://forum.virtuemart.net/index.php?topic=111450


How did you set up default product order? BE->VM->Configuration->Product Order Settins. By SKU?

I had it by SKU and I know I changed administrator/components/com_virtuemart/models/product.php

around line 1244:

$q .= ' and `slug` ' . $op . ' "' . $product->slug . '" ';

to

$q .= ' and `product_sku` ' . $op . ' "' . $product->product_sku . '" ';

and now it's working. But I don't remember what was the cause.

EDIT:
Bad memory: I also had to change in Yagendoo helper

$product_model->filter_order = "p`.`product_sku";

But this page have Yagendoo template so I don't know what was causing problem.

But I think the basic problem was that there was something wrong wrong with filter_order and SQL crashed.

Regards,
S
Title: Re: No more Neighbours since 2.0.16
Post by: Milbo on January 09, 2013, 15:41:44 PM
It helps also to enter the config and to store it one time.
Title: Re: No more Neighbours since 2.0.16
Post by: uschmi on January 09, 2013, 15:57:03 PM
Quote from: Milbo on January 09, 2013, 15:41:44 PM
It helps also to enter the config and to store it one time.

Thanks Milbo, it helped!  :)
Title: Re: No more Neighbours since 2.0.16
Post by: Otto0815 on January 09, 2013, 20:45:03 PM
Quote from: Milbo on January 09, 2013, 15:41:44 PM
It helps also to enter the config and to store it one time.

no, won't work for me.....

If i disable "show product neighbours" and hit save (or save&close) and check my site with firebug the "Div="product-neigbours" ist gone, if i enable "show product neighbours" in the vm config again and hit save, the "div"product-neighbours" is shown in firebug but has nothing in it...

I also have tried to chnage the product ordering fields (i've now enabled all) but nothing happens
Title: Re: No more Neighbours since 2.0.16
Post by: Otto0815 on January 11, 2013, 12:46:15 PM
Since all other solutions aren't working for me, I'm now using the: Adminstrator/components/com_virtuemart/models/product.php from Version VM2.0.15e and then the Neighbours will work for me....

Don't know what's exactly changed between this Version and 2.0.16 + xx Version, but somethings from the neighbours in the never file is commentet out....so maybe there is the error...
Title: Re: No more Neighbours since 2.0.16
Post by: Otto0815 on January 21, 2013, 21:45:05 PM
My solution from the last post broke something else...

I've now restored the default confiug and it works......then i've done some changes to the config and the neighbours are gone   :-\

Restored orignal config again, noticed all changes...now the neighbours stay's    :o
Title: Re: No more Neighbours since 2.0.16
Post by: frogybella on January 29, 2013, 15:02:44 PM
Hi,

Same for us. Neighbours products are empty since 2.0.18a upgrade.

Has it been reproduced by dev team?

Thanks in advance...

Hopping that 2.0.19 solve it.

Regards.
Title: Re: No more Neighbours since 2.0.16
Post by: Otto0815 on January 29, 2013, 16:55:56 PM
Quote from: frogybella on January 29, 2013, 15:02:44 PM
Hi,

Same for us. Neighbours products are empty since 2.0.18a upgrade.

Has it been reproduced by dev team?

Thanks in advance...

Hopping that 2.0.19 solve it.

Regards.


Milbo told me i could be the template.....i don't know it...

Try my solution, wich works till today:

1)Notice all your Configuration Settings from the VM Backend

2)Go to tools/migration

3)Restore original vmconfig   (->after this check if the neighbours are now shown in the frontend; try this with different producs because a probably cache in your browser)

4)if this works, then do all your needed settings in the configaration again

5)check frontend again....

I've had to this 3 times till it works......don't know why.....
Title: Re: No more Neighbours since 2.0.16
Post by: seagul on March 08, 2013, 10:53:00 AM
I had the same problem.

It was because of ordering set to "Produkt SKU" (in Configuration). As soon as I changed the ordering to product title, the product neighbours would show again.