Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    66
    Plugin Contributions
    0

    Default Re: Is this available for 1.57D - Attribute image replaces main product image on sel?

    Quote Originally Posted by mc12345678 View Post
    In parallel with this I've looked at the same and have prepared a possible revision. I've only tested option 6. I've seen in Github that another individual had reworked some of the Ajax processing though I hadn't worked through all of their changes because in a lot of places they changed spacing from four spaces to two spaces which throws off a straight visual review.

    I agree that the software needs some massaging for zc1.5.7, one of the key issues being to support the zc1.5.7 includes/modules/attributes.php file straight out of the box and without override. This is done through a minor change in the observer class.

    I expect to have these changes ready for review on github shortly and will post back the path to use to get to those updated files.

    Thank you for reporting that there are issues with the sql code. Would be great to know more of what those issues were, though no idea how much effort that may entail.

    As to possible store breakage when running database modifications, that's a reason to have a development site and also to make backups before doing something that affects the database. A quick restore on the database and back to what it was...

    Yes I should have done that. I did create a test one after that episode so I am working from the test version of my store. Below is the results of the sql_run.txt and sql_run_dropdowns_txt files. Hope they help.
    Click image for larger version. 

Name:	dbasae_error_attribute_show_dbase_message_all.jpg 
Views:	73 
Size:	43.1 KB 
ID:	20105

    If you can't see it then this link is to a copy of it:
    http://www.westickerthang.com/dbasae...essage_all.png
    Last edited by printchic; 8 Sep 2022 at 04:25 AM.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Is this available for 1.57D - Attribute image replaces main product image on sel?

    Quote Originally Posted by printchic View Post
    Yes I should have done that. I did create a test one after that episode so I am working from the test version of my store. Below is the results of the sql_run.txt and sql_run_dropdowns_txt files. Hope they help.
    Click image for larger version. 

Name:	dbasae_error_attribute_show_dbase_message_all.jpg 
Views:	73 
Size:	43.1 KB 
ID:	20105

    If you can't see it then this link is to a copy of it:
    http://www.westickerthang.com/dbasae...essage_all.png
    Glad you saw that the uploaded images of previous posts were for some reason not accessible. I had tried to access them, but the forum didn't seem to want to cooperate.

    Looking at the results of the queries, I see the following: as expected for the first query group, the additional option to provide a 'link' was successfully added. The second query group is only needed really in earlier zc versions as the upgrade script and other developments have pretty much prevented the unlikely deletion of those three option name types. But, what the reporting indicates is that in the first line, no update was needed for those records. Then each of the following insert lines fail because the associated option name type already exists.

    See several years ago there were plugins that caused the deletion of those three option name types unexpectedly. The result often was that existing settings prevented the display of option values in dropdown style or any of the other styles.

    And really the first sql code isn't required for simply dealing images. It's "functionality" had remained so that those that have found a way to use it could continue use. Not executing that set of queries will not prevent swap operation.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Is this available for 1.57D - Attribute image replaces main product image on sel?

    Quote Originally Posted by printchic View Post
    Yes I should have done that. I did create a test one after that episode so I am working from the test version of my store. Below is the results of the sql_run.txt and sql_run_dropdowns_txt files. Hope they help.
    Click image for larger version. 

Name:	dbasae_error_attribute_show_dbase_message_all.jpg 
Views:	73 
Size:	43.1 KB 
ID:	20105

    If you can't see it then this link is to a copy of it:
    http://www.westickerthang.com/dbasae...essage_all.png
    May I suggest trying to use the files from the following github branch that have been updated for Zen Cart 1.5.7:
    mc12345678/Attribute_image_Swap at 1_5_11 (github.com)

    This reflects the files that I intend to upload to the plugins for the above discussed module.

    There still are no real sql queries required to be run to support the image swap feature.
    The only file that requires modification at this time is the admin/options_name_manager.php file to add the three additional selection options for swapping images. All other operation is basically provided through an observer.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    May 2009
    Posts
    66
    Plugin Contributions
    0

    Default Re: Is this available for 1.57D - Attribute image replaces main product image on sel?

    Quote Originally Posted by mc12345678 View Post
    May I suggest trying to use the files from the following github branch that have been updated for Zen Cart 1.5.7:
    mc12345678/Attribute_image_Swap at 1_5_11 (github.com)

    This reflects the files that I intend to upload to the plugins for the above discussed module.

    There still are no real sql queries required to be run to support the image swap feature.
    The only file that requires modification at this time is the admin/options_name_manager.php file to add the three additional selection options for swapping images. All other operation is basically provided through an observer.
    I restored my dbase to before I installed the sql.txt files since they were not needed for my store. I then uploaded all the plugin files. The plugin works now.

    Thank you so much for taking time to update this great plugin to work with 1.57 stores.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Is this available for 1.57D - Attribute image replaces main product image on sel?

    Quote Originally Posted by printchic View Post
    I restored my dbase to before I installed the sql.txt files since they were not needed for my store. I then uploaded all the plugin files. The plugin works now.

    Thank you so much for taking time to update this great plugin to work with 1.57 stores.
    Thanks for the report back. Was just wondering a few hours ago about the status of checking it out. I'll work towards packaging it up for submission.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  2. Attribute image replaces main image but only pop up larger image
    By welchyboy in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 26 Nov 2010, 11:56 PM
  3. Replies: 0
    Last Post: 7 Oct 2009, 07:11 PM
  4. Replies: 0
    Last Post: 16 Jul 2009, 06:07 AM
  5. Attribute image replaces main product image on selecting attribute
    By pegog in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Jun 2008, 07:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg