Announcement

Collapse
No announcement yet.

Search Results Hack

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

    #31
    I see the fault now. You have non alphanumerics in your product references. Actinic replaces these with _xx (2 digit hex code) when creating the support file names. So Actinic is writing files named e.g. (for product ref: FIBPM100.013) sr_aFIBPM100_2e013.html[/B] but the Perl patch is looking for sr_aFIBPM100_2E013.html and the upper case and lower case E are different characters.

    Try this fix:
    Edit SearchScript.pl and look for
    Code:
    		$sResultsProdref =~ s/([^A-Za-z0-9])/sprintf("_%02X", ord($1))/seg;		# transform non alphanumerics
    Replace with
    Code:
    		$sResultsProdref =~ s/([^A-Za-z0-9])/sprintf("_%02x", ord($1))/seg;		# transform non alphanumerics
    And do an Update and report back so I can change the patch if that fixes things.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #32
      Yes this seems to have worked!
      Well done!

      You see the main products with components did not have these non-alphanumerics, only the components.

      By the way, I have sent you an email for info on buying your 'add to cart by product reference' add-on.
      Sam
      http://www.originaltouch.co.uk
      http://www.spcb.co.uk

      If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

      Failure is the tuition you pay for success.

      Comment


        #33
        Glad that fixed it. There are about 1,500 things you have to consider when writing an Actinic patch and this one only came to light when you have non-alphanumerics in your product ref's and are using a Unix / Linux server. I'll amend the main post above.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #34
          2 points which may make the difference about whether I use this:

          Can you stop products appearing that are usually on a page that you should be logged on / registered?

          I have already input the 'stop the bounce page' code in the AUG so that usually when adding to cart, the page stays static. Can this happen here too? Still bounces back to page previously viewed. Would like the customer to stay on the search page if he wants to choose more than one product.
          Sam
          http://www.originaltouch.co.uk
          http://www.spcb.co.uk

          If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

          Failure is the tuition you pay for success.

          Comment


            #35
            The patch shows products that would appear in the usual Search Results, so I don't think you can restrict this to registered customers only. Best use on Catalog sites only.

            I don't use the bounce tweak so cannot help there.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #36
              I have found a way of hiding the search results for non-registered customers.
              For your info:
              Hardcode the link to the product within a fragment on the top section using:
              !!< <a href="url"> link words. </a> >!!

              Then hide the sub-section / product from the website in the General Tab, where you will also find an option to hide from Search Results.

              The hardcoded link will still go to a hidden section.

              Use an explanation at the product page such as:

              "Due to the nature of this product, you need to be logged in before you purchase this item. If you are not registered, please register before adding this product to your basket, and we will send you an email with a password. You can purchase any non-restricted products before registering.
              Registered Customers Only - Buy Online Now "
              Sam
              http://www.originaltouch.co.uk
              http://www.spcb.co.uk

              If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

              Failure is the tuition you pay for success.

              Comment


                #37
                Hi,

                I made the changes to the search results and had everything running fine. Since then I have made a couple of changes to shorten the product name on some products - Now when you view the products I have changed in the search results they seem to have changed the search results layout for these products. I have checked some of product details of the ones i have changed against some i didnt ut dont seem to be able to spot any differences. Does anyone have any ideas?

                This link shows you what i mean:

                http://www.designtoplease.co.uk/cgi-...ry+Multimedia+

                The products I have changed are the ones where the search results layout shows the product name under the image as opposed to next to it.
                Jon
                www.designtoplease.co.uk
                www.getmeoutofahole.com
                www.toys4james.co.uk
                Located in Herts

                Comment


                  #38
                  Jonathan,

                  That link is only usable when used within an Actinic live site. If I go to e.g. http://www.designtoplease.co.uk/acatalog/furniture.html and search for "Red" I get:

                  Not Found

                  The requested URL /acatalog/Terms & Conditionsnic:block if= was not found on this server.
                  Apache/2.0.46 (Red Hat) Server at www.designtoplease.co.uk Port 80
                  Which makes me think that you've corrupted the Perl or the search results layout.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #39
                    Hi Norman,

                    Thanks for pointing that out, reverted back to a my last snapshot which appears to have fixed the search error however the layout issue is still occuring for the products i chnaged:

                    http://www.designtoplease.co.uk/cgi-...rry+multimedia

                    Kind Regards
                    Jon
                    www.designtoplease.co.uk
                    www.getmeoutofahole.com
                    www.toys4james.co.uk
                    Located in Herts

                    Comment


                      #40
                      Posting a cgi based link is useless here on the Forum (Actinic gets all confused and thinks that the site is hosted on community.actinic.com).

                      You need to post a normal page link. a string to search on, and describe what and where a normal and changed product is and looks like / should look like.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #41
                        HTML Code:
                        Posting a cgi based link is useless here on the Forum (Actinic gets all confused and thinks that the site is hosted on community.actinic.com).
                        Sorry I hadn't realised that was the case.

                        If you go to www.designtoplease.co.uk and search on "strawberry multimedia".

                        The top result "Strawberry Multimedia Renoir 7" Frame 7001" is the correct layout whereas the "Strawberry Multimedia Milan 7" Frame 7003" is using the wrong layout (this is the case with several products where I made changes to shorten the product name.).

                        Kind Regards
                        Jon
                        www.designtoplease.co.uk
                        www.getmeoutofahole.com
                        www.toys4james.co.uk
                        Located in Herts

                        Comment


                          #42
                          I made changes to shorten the product name
                          Are you saying that you simply edited the Product Name field and your layout changed?
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment


                            #43
                            Are you saying that you simply edited the Product Name field and your layout changed?
                            Hi Norman,

                            Yes this appears to be the case - I had a couple of products that I had to shorten for product name to work in my affiliate feed, and since reuploading the products I changed have seen a change in their search results layout.

                            New products I am creating are all appear fine it just seems to be the products where I shortened the product name.

                            Kind Regards
                            Jon
                            www.designtoplease.co.uk
                            www.getmeoutofahole.com
                            www.toys4james.co.uk
                            Located in Herts

                            Comment


                              #44
                              You have replaced the 'Full Search Results' layout from my post with some code of your own.

                              This has horribly mismatched, missing and spurious table tags, nested anchors and other coding faults. Firefox manages to render this but it fails in IE.

                              Best go back to my code and use it as the basis for your layout.
                              Norman - www.drillpine.biz
                              Edinburgh, U K / Bitez, Turkey

                              Comment


                                #45
                                This always perplexes me i must say, how on earth can you be given a solution, stray quite significantly away from it and then state it's not working. Is it me on my different planet or is that way of working nothing short of plain ludicrous? What do i miss in these situations, i sit here baffled at times.

                                Comment

                                Working...
                                X