For others seeing/reviewing this, the thread was initiated because of a request I made through PM discussion to address the issue described as Attribute image replaces main product image on sel not working after install. Initially that was the level of information provided. At least now the Zen Cart version is known (ZC 1.5.5) (I'm working on an update for Zen Cart 1.5.6/1.5.7 to make merging easier where files are touched that have been changed.)
Having just seen this thread, I will need to review the operation to identify why the expected image(s) are not shown including any hints identified in the forum thread directly related to the plugin as found in the above link.
For the OP to be notified of an updated/additional post, will need to navigate to this site at some point between this post and my next to be notified of my follow-on post, but I wanted to try to clarify what was known already for others that try to help.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I'm still working through the details, but the result seen is how the code operates. Not so sure that it was what was desired, but I was able to reproduce it.
I am looking at what it takes to implement the desired/requested operation and trying to find the easiest way to do that.
Basically because the type is not 0 and it wasn't one of the other "normal" types, the image never got directly associated with an area of display.
I've been also working through some changes related to php 7.x and strict processing. I have some updates to post to github, but it will probably be 9+ hours before I get to that.
I do have a solution that will display the "original" way as if the image type display is 0 where it displays at the bottom. Changes could be made to what I modified to have them display elsewhere, also might consider making the entry a comma separated listing such that the second value would be where to place the image in the case of being the selection of 6.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
With further review of this issue, I identified several other things that I thought needed to be updated about this plugin; however, I believe your issue can be addressed with just the code changes addressing this issue: https://github.com/mc12345678/Attrib..._Swap/issues/5
These changes are currently highlighted at this commit: https://github.com/mc12345678/Attrib...3f1500ccc64312
The other changes can be seen in the master branch of: https://github.com/mc12345678/Attribute_image_Swap
Last edited by mc12345678; 16 Jun 2019 at 03:42 PM.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I installed the latest version you posted.
I want the following effect, how to modify it.
Could you please explain the effect desired? Meaning, to be sure addressing the appropriate things and compared to how it works and looks now, what new feature/characteristic are you asking about?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Is this something like what you are looking for? http://tinyurl.com/y4dcauzz
Select a tin and scroll through them to see the change.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
When selecting a different color, simply click on the image of the color attribute or click on the text of the color.
Directly switch the corresponding attribute main map
Do not display radio button.
The screenshot below is what I want, you can click to enlarge
How to modify can achieve such an effect?
So this is an excellent example of determining and explaining what is desired first. I am not referring to any language issue. The first concern was that the image of the item did not exist on screen and was shown as to be in the position at the bottom of the list and not directly attached to the selection(s). This as described in the updated software was as if the image position was at '0'.
So why is that important?
Essentially, html requires there to be some sort of "selector" either a checkbox or radio button. It doesn't require those to be visible to the customer. So you can use css to hide the actual radio button or checkbox. But to make the image in line with that selector, then one of the image positions provided by the default ZC code is necessary. So, two options I see. Can add on additional numbers, providing a definition for each as to whether images are left of the text, right of the text, etc... or assuming that the database field supports it, to make the entry/options a comma separated list sorted from low to high.
So could have a condition of swap the image and display the attribute image at the product and where within the list the image is to be displayed.
This was something I was considering while editing the code to support the original request, but set aside to address what was asked and why the update details also were written to indicate addressing only as if the image location were chosen as zero.
Now, the other part though that would be needed for a customer's side is if the selection is a checkbox, something would need to be done differently for items checked and items not checked if the checkbox is not made visible.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
What do I need to do to achieve the effect in the screenshot.
I need this effect now.
Bookmarks