You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Advanced site search is not working correctly. Enter a search term you know will get results and then put any figure in the Maximum Price box and you get no results error message. How to fix?
Also, does the minimum figure need to be 0.00 or can it be left empty?
Offline
I'm going to look into this and get back to you. I can replicate this in dev, so there does appear to be an issue. Will post a fix when ready (as soon as possible).
Offline
Have you managed to work out a solution for this?
Offline
Is there any progress on resolving this yet?
Offline
Yes, I apologize for not posting back until now. In the file {private}/apps/ecom/ECOM_Prod/ECOM_Prod.php, in the function prodsearchsql(), change:
$xpricemin = $this->returnprice(array('amount' => $pricemin, 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));
To:
$xpricemin = $this->returnprice(array('amount' => $pricemin, 'format' => 'RAW', 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));
And:
$xpricemax = $this->returnprice(array('amount' => $pricemax, 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));
To:
$xpricemax = $this->returnprice(array('amount' => $pricemax, 'format' => 'RAW', 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));
You're basically adding format=RAW to both price calls.
Offline
Great, thanks.
Offline