X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Bug In BCSE Manufacturer's Categories Mod (https://forum.x-cart.com/showthread.php?t=35145)

WSGTeam 11-02-2007 10:57 AM

Bug In BCSE Manufacturer's Categories Mod
 
I recently discoved that with this mod installed if yuo click on a manufacturer and choose a category that has more than 1 page worth of products, going to the next page of products will push you back to the category list for that manfucaturer.

To fix: (my version 4.1.7)

OLD: modules\Manufacturers\customer_manufacturers_list. php
Code:

$smarty->assign("navigation_script","manufacturers.php?manufacturerid=".$manufacturerid."&sort=".$sort."&sort_direction=".$sort_direction);

Replace with:
Code:

if(!$catid){
  $smarty->assign("navigation_script","manufacturers.php?manufacturerid=".$manufacturerid."&sort=".$sort."&sort_direction=".$sort_direction);
}else{
    $smarty->assign("navigation_script","manufacturers.php?manufacturerid=".$manufacturerid."&catid=".$catid."&sort=".$sort."&sort_direction=".$sort_direction);
}


balinor 11-02-2007 11:07 AM

Re: Bug In BCSE Manufacturer's Categories Mod
 
Moving to Third party Add-ons, as the bugs forum is for posting bugs with the X-Cart core product only. Thanks!

MBA 12-18-2007 06:36 PM

Re: Bug In BCSE Manufacturer's Categories Mod
 
Why not just replace the entire code with:

$smarty->assign("navigation_script","manufacturers.php?man ufacturerid=".$manufacturerid."&catid=".$catid."&s ort=".$sort."&sort_direction=".$sort_direction);

Tested 23 way to Sunday and works fine with less code...

scottmotte 12-29-2007 01:33 PM

Re: Bug In BCSE Manufacturer's Categories Mod
 
Thank you so much for this code fix. Great work. It saved me a bunch of time.


All times are GMT -8. The time now is 07:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.