Zen Cart Logo
Forums / Bug Reports / [Done v1.5.0] Attributes Controller Update Sort not working

[Done v1.5.0] Attributes Controller Update Sort not working

Locked

Views: 6,976

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
9 Nov 2010, 5:17 PM
#1
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

[Done v1.5.0] Attributes Controller Update Sort not working

ZC v1.3.9h
PHP v5.2.14

In Attributes Controller, the "Update Sort to default order" button takes me back out to the admin index page and does not update the sort order on the product.

Any ideas what could be causing this behavior?

I haven't used the update sort to default order in attributes controller since running 1.3.8a.

9 Nov 2010, 5:19 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Check that you have the current file:
/admin/attributes_controller.php

loaded on the server ...

9 Nov 2010, 5:28 PM
#3
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

It's present and I checked /admin/attributes_controller.php against the file in the 1.3.9h zip (and compared with winmerge) and it's the same:

@version $Id: attributes_controller.php 17888 2010-10-08 21:06:31Z wilt $

9 Nov 2010, 5:40 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Then I would have to suggest you check all files in the:
/admin

and confirm that they are all identical ...

If you have any customizations, make sure that your customizations have been merged correctly into the current version ...

9 Nov 2010, 6:33 PM
#5
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

I just ran a winmerge on the \admin folder and sub-directories... Here are the files that are different than the 1.3.9h zip:

\admin\includes\languages\english\extra_definitions\editors_list (CKeditor v3.4 contribution overwrote this file)

\admin\includes\languages\english.php (I added dimensions for HEADER_LOGO_IMAGE and specified different image filename)

\admin\includes\modules\category_product_listing.php (Image Handler v2.0 Rev 8c overwrote this file w/ 1 additional line - all other lines match current version)

Could any of those files cause the attribute controller update sort button to malfunction?

9 Nov 2010, 6:44 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

None of those sound like a probable issue ...

Can you see if post #6 in:
http://www.zen-cart.com/forum/showthread.php?t=153143

helps to resolve this issue ... :unsure:

9 Nov 2010, 8:33 PM
#7
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

I followed post #6... made the manual edits to each file and uploaded and it did not resolve issue. I also reverted back to the 1.3.9g version of /admin/includes/modules/product/collect_info.php as suggested in step 2 and no difference. :yuck:

9 Nov 2010, 8:42 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

If you are not able to find the issue, you may need to post in the Commercial Help Wanted to get someone to review your site and see what is the problem ...

So far, I have not been able to reproduce this issue ...

9 Nov 2010, 9:23 PM
#9
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Thanks for your time. I'll play around with this some more.

9 Nov 2010, 9:29 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Good news! I reproduced this error!! :smile:

Bad news ... I don't have the solution yet ... :blink:

But let me move this to the Bug Reports and I will work out a fix on this ...

9 Nov 2010, 11:49 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Edit the file:
/admin/attributes_controller.php

and change the line around 188:

      case ('update_product'):

to read:

      case ('update_attribute_sort'):

then change the line around 756:

            <td class="smallText" align="center"><?php echo '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, '&action=update_product' . '&products_filter=' . $products_filter . '&current_category_id=' . $current_category_id) . '">' . zen_image_button('button_update_sort.gif', IMAGE_UPDATE_SORT) . '<br />' . TEXT_ATTRIBUTES_UPDATE_SORT_ORDER . '</a>'; ?></td>

to read:

            <td class="smallText" align="center"><?php echo '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, '&action=update_attribute_sort' . '&products_filter=' . $products_filter . '&current_category_id=' . $current_category_id) . '">' . zen_image_button('button_update_sort.gif', IMAGE_UPDATE_SORT) . '<br />' . TEXT_ATTRIBUTES_UPDATE_SORT_ORDER . '</a>'; ?></td>

Does this work for you now for the Update Sort Order?

10 Nov 2010, 12:45 AM
#12
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

It appears that those edits worked! It no longer kicks me back out to the admin index and there is a message at the top stating, "Successful Attribute Sort Order Update for ID# 1234 product name"

Thank you - I will be sending you some coffee and donuts.

10 Nov 2010, 4:19 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Thanks for the update that this works for you ... :smile:

3 Mar 2011, 12:36 AM
#14
missta avatar

missta

New Zenner

Join Date:
Jan 2011
Location:
Colorado
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

This did not work for me. It's still sending me back to the admin control home screen without saving anything.

I have 1.3.9h with Dual pricing installed.

3 Mar 2011, 2:06 AM
#15
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Did you check if the Dual Pricing module uses the "/admin/attributes_controller.php" file?

If yes, you need to apply the changes mentioned by Ajeh.

If no, are you using another module that uses that file?

4 Mar 2011, 3:24 AM
#16
missta avatar

missta

New Zenner

Join Date:
Jan 2011
Location:
Colorado
Posts:
15
Plugin Contributions:
0

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Yes, I checked the file in /admin/attribute_controller.php, and followed Ajeh's instructions changing those 2 changes. When click update/save it just loads me to the main admin control.

I also have 2 other modules installed:
local_sales_tax_mod_2-5 and minimum_order_1-0-1b which doesn't affect the attribute_controller.php file.

I have a total of 3 modules installed
Dual Pricing v2 following these instructions http://www.zen-cart.com/forum/showthread.php?p=983284#post983284 read post #687
Local Sale Tax Mod
Minimum Order with changes fromthis page http://www.zen-cart.com/forum/showthread.php?p=560223#post560223 read post #16

Thanks for responding.

5 Apr 2011, 3:37 PM
#17
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: [Done v1.5.0] Attributes Controller Update Sort not working

missta:

This did not work for me. It's still sending me back to the admin control home screen without saving anything.

I have 1.3.9h with Dual pricing installed.

I am also having the same problem. I can update option name manager just fine. When I go to Option Values Manager and fill in the fields Option Name and Option Value and click update I get sent back to the main admin page. Any ideas on this would be grateful. I have no add on that use attribute_controller.php My PHP version is 5.2.17
Thank You

5 Apr 2011, 4:37 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Did you try the fix on post #11 to see if that corrects the problem?

5 Apr 2011, 5:32 PM
#19
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: [Done v1.5.0] Attributes Controller Update Sort not working

Ajeh:

Did you try the fix on post #18 to see if that corrects the problem?

Thanks Linda for taking the time to help.
Post #18 ? I tried the fix on post #11 but it still does not work.

5 Apr 2011, 5:49 PM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.5.0] Attributes Controller Update Sort not working

err ... umm .. just testing you .. post #11 ... :blink:

Does it work on the Attributes Controller?

Does it work on the Tools ... Store Manager ... to Update All Products' Attribute Sort Orders
to match Option Value Default Sort Orders:

And your sure, if you go to the Tools ... Server Info ... it is displaying php v5.2.17 ...