Manufacturer problems after upgrading to VM2.0.22b (category view)

Started by sandstorm, August 22, 2013, 13:53:54 PM

Previous topic - Next topic

sandstorm

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
J3.6.4 / PHP7.0.12
VM3.0.16

Maxim Pishnyak

Could you turn off using of Joomla cache and test your issue again?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

sandstorm

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
J3.6.4 / PHP7.0.12
VM3.0.16

Maxim Pishnyak

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.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

sandstorm

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
J3.6.4 / PHP7.0.12
VM3.0.16

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

nrap

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..

sandstorm

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
J3.6.4 / PHP7.0.12
VM3.0.16

Milbo

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]
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sandstorm

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
J3.6.4 / PHP7.0.12
VM3.0.16

Milbo

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);
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nrap

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!) :)

Spiros Petrakis

The issue still exists in version 2.0.26d , only with sef on you get a non empty view.
Joomla templates and extensions development
https://www.yourgeek.gr