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 12-11-2012 08:27:55

kev
Member
Registered: 03-16-2009
Posts: 399

Product Filter -> Price Range - what values in sortprice?

I have some products that range in price from $2.50 to $12.50 and have set the sortprice as 250 and 1250 but the 'Price Range' values are:
$211 - $474
$474 - $737
$737 - $1,000
$1,000 - $1,266

Any ideas what I'm doing wrong?

Offline

 

#2 12-11-2012 09:44:05

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Product Filter -> Price Range - what values in sortprice?

There are no cents to be included in the sort price entry, just enter 2 and 12 for those items.

John

Offline

 

#3 01-28-2013 17:56:29

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

Re: Product Filter -> Price Range - what values in sortprice?

Anyone know where to change the Price Values for the Product Price Filter as it isn't with the others?

Offline

 

#4 01-29-2013 08:55:55

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

Re: Product Filter -> Price Range - what values in sortprice?

They are calculated automatically based on the prices found in the query.


Nick Hendler

Offline

 

#5 08-06-2014 16:31:44

CrownRoyal
Member
Registered: 01-10-2009
Posts: 716

Re: Product Filter -> Price Range - what values in sortprice?

HI,

Where do I change the Price Ranges? Currently starts at $1-$499

Mine start at $0 (free stuff) and I'd like to go with
$0-$1
$1-$5
$5-$10
$10-$20
$20-$30
+$30

Thanks,
Jim

Offline

 

#6 08-07-2014 06:42:59

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

Re: Product Filter -> Price Range - what values in sortprice?

In the file {private}/apps/ecom/ECOM_Prod/ECOM_Prod.php, in the function prodfilter() look for:

$pricemin = floor($result[0]['minsortprice']);

And change to:

$pricemin = 0;


Nick Hendler

Offline

 

#7 09-21-2014 07:34:34

Casimiro
Member
Registered: 01-25-2010
Posts: 175
Website

Re: Product Filter -> Price Range - what values in sortprice?

Hello. 

I just noticed an odd situation with the price sorter.  I have a category with three products valued at $2, $4 and $24.  I checked the back-end product records to make sure that the "Regular Price" was the same as the "Product Sort/Search Price". 

The price sorter is showing 4 ranges:  $2-$7, $7-12, $12-$17, $17-$24.  If you select $7-12, $12-$17 the system produces the "There are no items to display... " message, which is understandable.  But why would there be four choices to begin with and two of which are irrelevant?  You can see it here:  http://brenditasbodyworks.com/shop/Cate … s-Heat-Cap

Thanks.

Offline

 

#8 09-21-2014 09:56:36

CrownRoyal
Member
Registered: 01-10-2009
Posts: 716

Re: Product Filter -> Price Range - what values in sortprice?

I think what happens is there is a default setting in the code that takes the lowest value, and the highest value, then divides by 4 (default) to give 4 price ranges. I could be wrong.

Offline

 

#9 09-22-2014 10:13:45

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

Re: Product Filter -> Price Range - what values in sortprice?

Correct.


Nick Hendler

Offline

 

#10 09-23-2014 09:39:53

Casimiro
Member
Registered: 01-25-2010
Posts: 175
Website

Re: Product Filter -> Price Range - what values in sortprice?

Thanks for the response. I suppose that's it's a problem only in a situation like mine where there is a combination of products that produces mathematically "illogical" results.

Offline

 

#11 01-10-2015 14:30:41

CrownRoyal
Member
Registered: 01-10-2009
Posts: 716

Re: Product Filter -> Price Range - what values in sortprice?

In the file {private}/apps/ecom/ECOM_Prod/ECOM_Prod.php, in the function prodfilter() look for:

Code:

                    $priceinc   = floor($pricerange / 4);

                    $pricecount = 0;

                    while ($pricecount < 4) {

                         $pricecount++;

                         if   ($pricecount == 1) {$pricemina  = $pricemin;}
                         else                    {$pricemina  = $pricemaxa;}
 
                         if   ($pricecount == 4) {$pricemaxa  = $pricemax;}

Change that 4 to whatever you want your sort price to be. I have mine set to 30.

Offline

 

#12 01-10-2015 14:35:37

CrownRoyal
Member
Registered: 01-10-2009
Posts: 716

Re: Product Filter -> Price Range - what values in sortprice?

Line 3873 starts with:

Code:

 if ($pricerange < 16) {

                    $pricemina  = $pricemin;
                    $pricemaxa  = $pricemax;

but I don't know what that value of 16 does. I'd also like to know where the $pricemin and $pricemax are defined just so I can see what affect they have if changed. I know the $pricemax is defined on line 3865

Offline

 

#13 01-12-2015 09:22:45

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

Re: Product Filter -> Price Range - what values in sortprice?

Look further up in the code and you will see all those variables being defined.


Nick Hendler

Offline

 

Board footer