VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandstorm on August 22, 2013, 13:53:54 PM

Title: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: sandstorm on August 22, 2013, 13:53:54 PM
I am working in a test environment and just upgraded VM2.0.18 to VM2.0.22b (Thought it was about time  ::) )

I have tested for a couple of hours now and reveretd back to default template with all SEF setting switched off - So I'm now running a naked default store.

Manufacturer Problem
When I view a manufacturer and click on the "View All manufacturer_name Products" this shows an empty manufacturer/category page. 
The non SEF link looks exactly the same /index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=75&Itemid=433 but just shows as an empty page ??
When I switch basic Joomla SEF on, the page shows up OK with the link /index.php/manufacturers/manufacturer/66fit
I have cleared browser and site cache fully & am a bit lost after testing for a while now?

Any ideas on what may be wrong

Andy
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: Maxim Pishnyak on August 22, 2013, 18:07:22 PM
Could you turn off using of Joomla cache and test your issue again?
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: sandstorm on August 22, 2013, 23:17:59 PM
Quote from: Maxim Pishnyak on August 22, 2013, 18:07:22 PM
Could you turn off using of Joomla cache and test your issue again?
Joomla Caching is already off, Gzip and any other compression is off.
I have cleared all site cache, browser cache & used Admin tools pro to repair/optimise databse & purge all sessions.

But still problem with manufacturer persists?

If you need to view it visit this link and click on Brands or any of the brands that show in the dropdown. http://bit.ly/1f5yGFk

Thanks,
Andy
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: Maxim Pishnyak on August 23, 2013, 11:57:37 AM
Thanx, I don't need to watch your movie. I saw this issue by inspecting personally web site of my russian fellow yesterday. Probably cookie issue.
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: sandstorm on August 23, 2013, 12:16:24 PM
Quote from: Maxim Pishnyak on August 23, 2013, 11:57:37 AM
Thanx, I don't need to watch your movie.
I'm sorry, there is no movie there, it is just a link to a test website?
Quote from: Maxim Pishnyak on August 23, 2013, 11:57:37 AM
I saw this issue by inspecting personally web site of my russian fellow yesterday. Probably cookie issue.
Anybody any ideas on how to get rid of this cookie issue?
Is it a browser issue?
or something in my site
or something in the virtuemart upgrade?

Thanks

Andy
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: Maxim Pishnyak on August 23, 2013, 19:34:57 PM
You're right. My bad.
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: nrap on August 29, 2013, 09:19:01 AM
Same here, I have some buttons that show the products for the manufacturers using :
index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=17

I view the manufacturer products OK
if I go to a category such as:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=94
OK
and then try to access any manufacturer products filter, ERROR it will return empty page.
after clearing the cookies it works like before..
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: sandstorm on September 04, 2013, 13:02:55 PM
Is this a bug with VM2.0.22 I desperately need to my live site over to 2.0.22, but I am stalling because of this problem with Manufacturers.

Is there some new settings or configuration that may be needed in 2.0.22 that I may have missed or any caches that may need clearing?

Thanks
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: Milbo on September 04, 2013, 13:47:53 PM
Please use this file, remove the .txt suffix and copy it to /components/views/category/ and overwrite the file there. I am not sure if I understood the problem correctly.

[attachment cleanup by admin]
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: sandstorm on September 04, 2013, 14:24:29 PM
Quote from: Milbo on September 04, 2013, 13:47:53 PM
Please use this file, remove the .txt suffix and copy it to /components/views/category/ and overwrite the file there. I am not sure if I understood the problem correctly.

This works Max, thanks! 
What was the modification? Just curious.

It has also fixed the problem with search results as discussed here - http://forum.virtuemart.net/index.php?topic=118226.msg401518#msg401518

Thanks, Andy

PS - Any plans for JoomlaDay UK. Great to have a drink with you again! :-X
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: Milbo on September 04, 2013, 14:59:38 PM
Just a better logic, taking the stored category only if it is not manufacturer


$categoryId = JRequest::getInt('virtuemart_category_id', false);
$virtuemart_manufacturer_id = JRequest::getInt('virtuemart_manufacturer_id', false );
if ($categoryId === false and $virtuemart_manufacturer_id === false){

$categoryId = ShopFunctionsF::getLastVisitedCategoryId();
$catType = 'category';
$this->setCanonicalLink($tpl,$document,$categoryId,$catType);
} else if ($categoryId === false and $virtuemart_manufacturer_id){

$catType = 'manufacturer';
$this->setCanonicalLink($tpl,$document,$virtuemart_manufacturer_id,$catType);
} else {
$catType = 'category';
$this->setCanonicalLink($tpl,$document,$categoryId,$catType);
}
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: nrap on September 04, 2013, 15:48:27 PM
Confirmed that it works perfect!!
Thanks !!! I've had this problem since I've upgraded to 2.0.20...!! (i think... close to .22 anyway!) :)
Title: Re: Manufacturer problems after upgrading to VM2.0.22b (category view)
Post by: Spiros Petrakis on February 17, 2014, 18:12:28 PM
The issue still exists in version 2.0.26d , only with sef on you get a non empty view.