Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2018
    Posts
    121
    Plugin Contributions
    0

    Default Why aren't images displayed?

    Before modification
    Click image for larger version. 

Name:	QQ截图20190608182648.jpg 
Views:	48 
Size:	16.2 KB 
ID:	18483

    Attribute Style for Radio Buttons/Checkbox: 6
    Click image for larger version. 

Name:	QQ截图20190608182609.jpg 
Views:	38 
Size:	20.7 KB 
ID:	18485
    The pictures of the product attributes have disappeared.How to deal with?
    Click image for larger version. 

Name:	QQ截图20190608182618.jpg 
Views:	55 
Size:	10.3 KB 
ID:	18484
    Is the last effect I want to see, can it be changed like this?
    Click image for larger version. 

Name:	QQ截图20190608234520.jpg 
Views:	39 
Size:	3.9 KB 
ID:	18486

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

    Default Re: Why aren't images displayed?

    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...

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

    Default Re: Why aren't images displayed?

    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...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Why aren't images displayed?

    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...

  5. #5
    Join Date
    Apr 2018
    Posts
    121
    Plugin Contributions
    0

    Default Re: Why aren't images displayed?

    I installed the latest version you posted.
    I want the following effect, how to modify it.
    Name:  QQ截图20190608234520.jpg
Views: 121
Size:  2.6 KB

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Why aren't images displayed?

    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...

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,133
    Plugin Contributions
    11

    Default Re: Why aren't images displayed?

    Is this something like what you are looking for? http://tinyurl.com/y4dcauzz

    Select a tin and scroll through them to see the change.

  8. #8
    Join Date
    Apr 2018
    Posts
    121
    Plugin Contributions
    0

    Default Re: Why aren't images displayed?

    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.
    Click image for larger version. 

Name:	QQ截图20190621163631.jpg 
Views:	47 
Size:	14.0 KB 
ID:	18515

    The screenshot below is what I want, you can click to enlarge
    How to modify can achieve such an effect?

    Click image for larger version. 

Name:	QQ截图20190621164948.jpg 
Views:	47 
Size:	19.9 KB 
ID:	18516

  9. #9
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Why aren't images displayed?

    Quote Originally Posted by jiji2018 View Post
    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.
    Click image for larger version. 

Name:	QQ截图20190621163631.jpg 
Views:	47 
Size:	14.0 KB 
ID:	18515

    The screenshot below is what I want, you can click to enlarge
    How to modify can achieve such an effect?

    Click image for larger version. 

Name:	QQ截图20190621164948.jpg 
Views:	47 
Size:	19.9 KB 
ID:	18516
    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...

  10. #10
    Join Date
    Apr 2018
    Posts
    121
    Plugin Contributions
    0

    Default Re: Why aren't images displayed?

    What do I need to do to achieve the effect in the screenshot.
    I need this effect now.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 5 Sep 2014, 03:28 AM
  2. Replies: 2
    Last Post: 6 Jan 2010, 12:03 PM
  3. Why are my Images displayed in different sizes?
    By twinkie in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 11 Oct 2009, 08:17 PM
  4. Why aren't EZ-pages included in Site Map?
    By devon4927 in forum General Questions
    Replies: 2
    Last Post: 11 May 2009, 04:46 AM
  5. Why none of my overides aren't working?
    By oavs in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Nov 2008, 12:13 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR