Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

HELP! SKU same as ProductID-wrong product comes up in search

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-18-2005, 03:56 PM
  bws2nite's Avatar 
bws2nite bws2nite is offline
 

Newbie
  
Join Date: Aug 2004
Location: Saint Petersburg, FL
Posts: 5
 

Default HELP! SKU same as ProductID-wrong product comes up in search

Pardon me if this has been answered somewhere but I have been searching for hours!

A couple of our products have the same SKU as X-Cart's default Product ID. For example, the Motorola CLS 1410 is also known by it's model number which is 16142. If you put "16142" in the site search box, it brings up the Motorola Motorola CLS 1410, which is actually model # 16143. If you search for that model number (16143) you get "No matching products found" and my client is flipping out on me!

Is there a way to exclude X-Cart's default Product ID from the site search?
__________________
X-Cart Gold 3.5.11 [unix]
Reply With Quote
  #2  
Old 05-19-2005, 03:07 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

have a dig in include/search.php and look for productid
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-19-2005, 03:18 PM
  bws2nite's Avatar 
bws2nite bws2nite is offline
 

Newbie
  
Join Date: Aug 2004
Location: Saint Petersburg, FL
Posts: 5
 

Default

I don't have search.php in the "include" folder but I do have it in the "admin", "customer" and "provider" folders.

Which one of these do you suggest and what do I do once I find it?

: )
__________________
X-Cart Gold 3.5.11 [unix]
Reply With Quote
  #4  
Old 05-19-2005, 03:37 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try customer
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 05-19-2005, 03:55 PM
  bws2nite's Avatar 
bws2nite bws2nite is offline
 

Newbie
  
Join Date: Aug 2004
Location: Saint Petersburg, FL
Posts: 5
 

Default

I found it on 2 lines:

80:
Code:
$search_query_count = "select count(*) from $sql_tbl[pricing], $sql_tbl[categories], $sql_tbl[products] LEFT JOIN $sql_tbl[products_lng] ON $sql_tbl[products].productid=$sql_tbl[products_lng].productid where $sql_tbl[pricing].productid=$sql_tbl[products].productid and $sql_tbl[pricing].quantity=1 and $sql_tbl[products].categoryid=$sql_tbl[categories].categoryid $membership_condition and ($sql_tbl[pricing].membership='". $user_account['membership']."' or $sql_tbl[pricing].membership='') AND $category_condition and $sql_tbl[products].forsale='Y' and $sql_tbl[categories].avail='Y' $price_condition $substring_query group by $sql_tbl[products].productid";

and 86:
Code:
$search_query_count = "select count(*) from $sql_tbl[products], $sql_tbl[pricing], $sql_tbl[categories] where $sql_tbl[pricing].productid=$sql_tbl[products].productid and $sql_tbl[pricing].quantity=1 and $sql_tbl[products].categoryid=$sql_tbl[categories].categoryid $membership_condition and ($sql_tbl[pricing].membership='".@$user_account['membership']."' or $sql_tbl[pricing].membership='') AND $category_condition and $sql_tbl[products].forsale='Y' and $sql_tbl[categories].avail='Y' $price_condition $substring_query group by $sql_tbl[products].productid";

Although I found it, I don't have the foggiest what to do with it...Shan, can you help?

: )
__________________
X-Cart Gold 3.5.11 [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:25 AM.

   

 
X-Cart forums © 2001-2020