Announcement

Collapse
No announcement yet.

bug ? . . . image in search results

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    bug ? . . . image in search results

    Search Results | Product Image Options | Resize Image

    The 'auto-resize' function does not work.

    If you set one parameter, say width 50, and leave height as zero (to let auto-resize on height occur) you get all your images 50 wide and one pixel high . . . reversing the process you can get all the images 50 high and 1 wide.

    Anyone else experienced this problem or have I missed something?
    Tony

    Mandrake Press Ltd.
    Actinic user since 1998

    #2
    Alternatively . . . Has anyone used it without problem?
    Tony

    Mandrake Press Ltd.
    Actinic user since 1998

    Comment


      #3
      It looks like a bug. I see it too (in 7.0.1). If you set Width or Height to 0 in Search Results then the generated image code HTML contains WIDTH=0 or HEIGHT=0.

      I'd have expected these parameters to be omitted (or, alternatively, scaled to preserve aspect ratio) if zero.

      Norman
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        This is a bug and I have reported it to the team.

        As it turns out, there is a workaround.

        Open Act_ResultsTemplate.html and replace the line

        <IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE>

        with

        <IMG SRC="NETQUOTEVAR:THUMBNAIL" WIDTH="100"><!-- NETQUOTEVAR:THUMBNAILSIZE -->

        Subsituting '100' for however wide you want the images to be.

        Comment


          #5
          Here's my quick fix. This makes the search results behave exactly as expected.

          Edit SearchScript.pl (in Site1 - back it up 1st). Look for the line
          Code:
          				$hVarTable{"NETQUOTEVAR:THUMBNAILSIZE"} = sprintf("WIDTH=%d HEIGHT=%d", $$::g_pSetupBlob{SEARCH_THUMBNAIL_WIDTH}, $$::g_pSetupBlob{SEARCH_THUMBNAIL_HEIGHT});
          Add the following immediately below
          Code:
          				$hVarTable{"NETQUOTEVAR:THUMBNAILSIZE"} =~ s/HEIGHT=0|WIDTH=0//ig;
          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Yes, that should work. But the same change should be done in ActinicOrder.pm if you want this to work correctly in the cart.

            Yes, it is working for the cart :-) if you add
            Code:
            <Actinic:REMOVE TAG="THUMBNAIL">
            	<IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE>
            </Actinic:REMOVE>
            to Act_ShoppingCartXML.html.

            Regards,
            Zoltan
            Actinic Software
            www.actinic.co.uk

            Comment

            Working...
            X