Kryptronic Software Support Forum

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.

#1 05-10-2018 05:49:16

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Advanced Site Search Problem

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?


Simon

Offline

 

#2 05-10-2018 08:31:16

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Advanced Site Search Problem

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).


Nick Hendler

Offline

 

#3 05-25-2018 05:46:24

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: Advanced Site Search Problem

Have you managed to work out a solution for this?


Simon

Offline

 

#4 05-25-2018 08:41:02

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Advanced Site Search Problem

This has made it to the top of my list and now has a star on it.  Will post back probably Monday with changes needed.


Nick Hendler

Offline

 

#5 05-26-2018 18:40:42

lgt
Member
Registered: 11-21-2010
Posts: 272
Website

Re: Advanced Site Search Problem

I thought Walmart was at the top of the list with a star?









Offline

 

#6 05-28-2018 08:49:24

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Advanced Site Search Problem

lgt wrote:

I thought Walmart was at the top of the list with a star?

I've been living and breathing Walmart, it's got multiple stars and your name next to it smile


Nick Hendler

Offline

 

#7 06-12-2018 01:38:51

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: Advanced Site Search Problem

Is there any progress on resolving this yet?


Simon

Offline

 

#8 06-12-2018 09:24:27

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Advanced Site Search Problem

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:

Code:

$xpricemin = $this->returnprice(array('amount' => $pricemin, 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));

To:

Code:

$xpricemin = $this->returnprice(array('amount' => $pricemin, 'format' => 'RAW', 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));

And:

Code:

$xpricemax = $this->returnprice(array('amount' => $pricemax, 'entrycurr' => $kcurrency, 'returncurr' => $this->globals('core_settings.core.basecurrency')));

To:

Code:

$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.


Nick Hendler

Offline

 

#9 06-13-2018 02:39:48

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: Advanced Site Search Problem

Great, thanks.


Simon

Offline

 

Board footer