Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Bug In BCSE Manufacturer's Categories Mod

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 11-02-2007, 10:57 AM
 
WSGTeam WSGTeam is offline
 

Member
  
Join Date: Oct 2006
Posts: 12
 

Default 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); }
__________________
X-Cart
Versions 4.0.19 - 4.1.7
Reply With Quote
  #2  
Old 11-02-2007, 11:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-18-2007, 06:36 PM
 
MBA MBA is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 245
 

Default 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...
__________________
xCart Pro Version 4.0.17, 4.0.19, 4.1.8, 4.1.10, 4.1.11, 4.1.12 - retired
xCart Pro Version 4.3.1 - production
xCart Pro Version 4.5.1 - testing
RHEL Platform
Reply With Quote
  #4  
Old 12-29-2007, 01:33 PM
  scottmotte's Avatar 
scottmotte scottmotte is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 41
 

Default 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.
__________________
x-cart pro 4.1.9
http://allprotools.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:55 AM.

   

 
X-Cart forums © 2001-2020