CRE Loaded Community

Banner


Board index » Loaded Commerce Support » Bug Issues

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Advanced search repeatable bug with price search
PostPosted: Wed Jul 22, 2009 5:24 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 459
Location: CO
In CRELoaded Standard 6.3.3 and 6.4 (CE) if you use advanced search and enter in a price you will get this error:


Error reported on page /onstore/advanced_search_result.php

MySQL error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') >= 200) and (if(s.status and s.specials_new_products_price, p.products_price) ' at line 5

select count(distinct p.products_id) as total from ( products p left join specials_retail_prices s using(products_id) ) left join manufacturers m on p.manufacturers_id = m.manufacturers_id , products_description pd, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (if(s.status and s.specials_new_products_price, p.products_price) >= 200) and (if(s.status and s.specials_new_products_price, p.products_price) <= 400)


This error also occurs on the demo site:
http://demos.creloaded.com/creloaded_ce ... from=&dto=

Mike


Last edited by cheapo on Thu Jul 23, 2009 10:02 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Thu Jul 23, 2009 10:18 am 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11074
Location: Nappanee Indiana
please try it on the b2b demo site.. as it works on my b2b installs.. which i would be happy to share those two files with you

the other demo site shows an internal error which may or may not be the same as your error

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Thu Jul 23, 2009 10:02 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 459
Location: CO
It does work on the demo store for B2B. I would welcome the files to try then if it works I'll to a compate to try and figure out the difference between the two.

Thank you,
Mike


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Sun Aug 16, 2009 8:43 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 459
Location: CO
Jason,

I haven't heard back from you in a little while on this so I was checking in to see if you could provide me the files to see if it fixes this issue?

Thanks!

Mike


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Wed Sep 30, 2009 11:43 am 
Offline
CRE Talented
User avatar

Joined: Thu Oct 21, 2004 12:00 am
Posts: 281
I have the same issue on 6.4 Std... Any solutions yet? Thanks

_________________
www.KULTUhR.net


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Wed Sep 30, 2009 10:00 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 459
Location: CO
Unfortunately no reply from Jason nor anyone else.....


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Sun Nov 15, 2009 6:17 pm 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
This issue turns out to be related to a MySQL syntax error.

Change the and in lines 250 to 256 to a comma - as follows
Code:
  if (DISPLAY_PRICE_WITH_TAX == 'true') {
      if ($pfrom > 0) $where_str .= " and (IF(s.status , s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) >= " . (double)$pfrom . ")";
      if ($pto > 0) $where_str .= " and (IF(s.status , s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) <= " . (double)$pto . ")";
    } else {
      if ($pfrom > 0) $where_str .= " and ((IF(s.status , s.specials_new_products_price, p.products_price)) >=  " . (double)$pfrom . ")";
      if ($pto > 0) $where_str .= " and ((IF(s.status , s.specials_new_products_price, p.products_price)) <=  " . (double)$pto . ")";
    }
  }


I've reported this in the tracker at:

http://creforge.com/tracker/index.php?f ... 9&atid=543

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Mon Nov 16, 2009 6:04 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 459
Location: CO
Cool!

Thank you VERY much!


Top
 Profile  
 
 Post subject: Re: Advanced search repeatable bug with price search
PostPosted: Thu Nov 19, 2009 9:52 am 
Offline
CRE Addict
User avatar

Joined: Wed Oct 01, 2003 12:00 am
Posts: 220
Location: Virginia, USA
Nimitz1061 wrote:
I've reported this in the tracker at:

http://creforge.com/tracker/index.php?f ... 9&atid=543


The tracker has been closed with a new copy of the template/content/advanced_search.tpl.php file attached.

_________________
Charles C. Williams. Jr.
Chief Software Engineering Officer
Chain Reaction Ecommerce, Inc.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Board index » Loaded Commerce Support » Bug Issues

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Tue Feb 07, 2012 10:28 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

Follow Us on Twitter

An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy