Author Topic: Removing space from the search string / Product not found  (Read 3875 times)

Offline unclesam2010

  • Newbie
  • *
  • Posts: 15
  • Karma: +3/-0
    • View Profile
Removing space from the search string / Product not found
« on: December 12, 2015, 07:51:51 PM »
Regarding Search function. If the product name is entered correctly but the customer enters a space after the name in a search string result will be " no product found ", How to remove space or spaces from the search string in the end of the line?

What happens is:  customer comes to the website and pastes his product  in SEARCH and most of the time it has the following value 'product  ' instead of 'product',  so I desperately need to remove any spaces at the end of the line (search string)

Thank you

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Removing space from the search string / Product not found
« Reply #1 on: December 13, 2015, 02:03:01 PM »
Good catch. Thank you.

Here is a fix for this issue.
https://github.com/abantecart/abantecart-src/commit/67ed0a73c3f136eacd0d7f6b3c6cacfbebec0d54

You can copy the file or just add one new line.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline unclesam2010

  • Newbie
  • *
  • Posts: 15
  • Karma: +3/-0
    • View Profile
Re: Removing space from the search string / Product not found
« Reply #2 on: December 13, 2015, 02:37:41 PM »
Thankn you!!! Trimming works perfect!! thanks for quick response.

 

Powered by SMFPacks Social Login Mod