Jump to content

Tip on displaying search results


Guest OrganicMan

Recommended Posts

Guest OrganicMan

Hello all,

Thought I'd share something with you - apologies if it's old hat but I thought it was a nifty trick.

Was noticing on my stats that lots of customers were typing in search results incorrectly. Knowing the limitations of CubeCart's search they were getting unhelpful error messages so have changed the search results text with the following code.

The language field is

no_products_match

Which can be found in language files / content / view products

Here's the end result if someone now searches for 'brasil' instead of 'brazil' (nuts)!

http://www.buybigorganic.co.uk/index.php?s...7&Submit=Go

and the code in the text field:

Sorry, no products match your search for: <b>'%s'</b>. Have you typed it correctly? <br><br>If you can't find a product we can more often than not source it for you - contact us on [email protected] or phone 0118 984 4770.<br><br>You can browse our shop using the following categories:<p><iframe height="1000" frameborder="0" width="590" src="http://www.buybigorganic.co.uk/brands/picmenu.htm">

Hope that's a help!

Ouch, that code didn't wrap. Here it is again:

Sorry, no products match your search for: <b>'%s'</b>. Have you typed it correctly? <br><br>If you can't find a product we can more often than not source it for you - contact us on [email protected] or phone 0118 984 4770.<br><br>You can browse our shop using the following categories:<p><iframe height="1000" frameborder="0" width="590" src="http://www.buybigorganic.co.uk/brands/picmenu.htm">

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...