Mazhar, one of our clients is getting frustrated with this bug
http://bugs.ablecommerce.com/show_bug.cgi?id=8585
Is there a page code fix you could post here for it?
Thanks
Admin First/Last Category Sort bug
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Admin First/Last Category Sort bug
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Admin First/Last Category Sort bug
Here is the complete page of category sorting with fix applied.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Admin First/Last Category Sort bug
Thanks, Mazhar. I tweaked the code in a 703 store, so I'll post the pertinent section here in case someone doesn't want to replace the entire file.
Forgot to post this part
Code: Select all
In Admin/Catalog/SortCategory.aspx -- around line 22
Change
tempVal = sel[tempIndex].value;
tempText = sel[tempIndex].text;
sel[tempIndex].text = sel[newIndex].text;
sel[tempIndex].value = sel[newIndex].value;
sel[newIndex].text = tempText;
sel[newIndex].value = tempVal;
sel.selectedIndex = newIndex
to
for(;tempIndex>newIndex;tempIndex--)
{
nextIndex = tempIndex-1;
tempVal = sel[tempIndex].value;
tempText = sel[tempIndex].text;
sel[tempIndex].text = sel[nextIndex].text;
sel[tempIndex].value = sel[nextIndex].value;
sel[nextIndex].text = tempText;
sel[nextIndex].value = tempVal;
sel.selectedIndex = newIndex
}
Code: Select all
around line 53
change
tempVal= sel[tempIndex].value;
tempText = sel[tempIndex].text;
sel[tempIndex].text = sel[newIndex].text;
sel[tempIndex].value = sel[newIndex].value;
sel[newIndex].text = tempText;
sel[newIndex].value = tempVal;
sel.selectedIndex = newIndex
to
for(;tempIndex<newIndex;tempIndex++)
{
nextIndex = tempIndex+1;
tempVal= sel[tempIndex].value;
tempText = sel[tempIndex].text;
sel[tempIndex].text = sel[nextIndex].text;
sel[tempIndex].value = sel[nextIndex].value;
sel[nextIndex].text = tempText;
sel[nextIndex].value = tempVal;
sel.selectedIndex = newIndex
}
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Admin First/Last Category Sort bug
Thanks, this was very helpful.
Falala
http://www.debspecs.com
http://www.debspecs.com