VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: doorknob on July 29, 2009, 05:23:53 AM

Title: SEF problem with browse page breadcrumbs
Post by: doorknob on July 29, 2009, 05:23:53 AM
I had a problem with the links in the breadcrumbs not being SEF compliant (using sh404sef build 237), despite their being no problem with other category navigation links. I fixed the problem by changing the code in ps_product_category->getPathway() so that it matches that in categoryChildlist.tpl

Line 1254 of ps_product_category.php (vm build 1851) was changed from
$item->link = $sess->url( $_SERVER['PHP_SELF'] . "?page=shop.browse&category_id=$category[category_id]", true, false );

to
$item->link = $sess->url( URL.'index.php?option=com_virtuemart&page=shop.browse&category_id='.$category['category_id'] );

regards
Phil
Title: Re: SEF problem with browse page breadcrumbs
Post by: anallancy on August 04, 2009, 23:44:53 PM
Thanks doorknob. It works great.:)
Title: Re: SEF problem with browse page breadcrumbs
Post by: Klim on September 25, 2009, 10:46:46 AM
it works fine for me. VM rel. is 1.1.3. ps_product_category.php is under \administrator\components\com_virtuemart\classes, line number is 1244. Thanks.
Title: Re: SEF problem with browse page breadcrumbs
Post by: hotelathome on March 02, 2010, 07:47:22 AM
Doorknob, I cannot read all the code you posted here. It is cut off, could you re-post it?
Title: Re: SEF problem with browse page breadcrumbs
Post by: Forrest on March 02, 2010, 08:36:01 AM
FROM:
$item->link = $sess->url( $_SERVER['PHP_SELF'] . "?page=shop.browse&category_id=$category[category_id]", true, false );

TO:
$item->link = $sess->url( URL.'index.php?option=com_virtuemart&page=shop.browse&category_id='.$category['category_id'] );
Title: Re: SEF problem with browse page breadcrumbs
Post by: doorknob on March 02, 2010, 15:19:46 PM
QuoteDoorknob, I cannot read all the code you posted here. It is cut off, could you re-post it?
Try clicking on the left and dragging to the right. The content will scroll.
Phil
Title: Re: SEF problem with browse page breadcrumbs
Post by: enoon on March 11, 2010, 09:42:04 AM
Does not work for VM 1.1.4
Title: Re: SEF problem with browse page breadcrumbs
Post by: doorknob on March 12, 2010, 16:36:16 PM
QuoteDoes not work for VM 1.1.4
Thanks for such a detailed description of your assessment.

The patch works for me with all versions of 1.1.4 up to build 2296, which is the latest I've tested it with. sh404sef is full of problems. See another of my posts here http://forum.virtuemart.net/index.php?topic=63945.0 (http://forum.virtuemart.net/index.php?topic=63945.0)
Title: Re: SEF problem with browse page breadcrumbs
Post by: LilMissLotus on November 09, 2010, 00:16:31 AM
Thank you so much!!! Worked perfectly!