View Single Post
  #2  
Old 01-06-2004, 10:39 PM
 
jordan0 jordan0 is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: San Francisco, CA
Posts: 77
 

Default Re: How to display the price of a specific productid?

Well damn! I resolved this one immediately after I posted the last message. For anyone else out there in the same boat, heres what I found:

In products.php, the $first_page in the code below restricts what goes into $products to whatever is on the first page (duh right?)
Code:
$products = func_search_products($search_query, $user_account['membership'], $first_page,$current_category["product_count"]); if (count($products) ==0) $products="";

So to solve my problem, I just made an if statement that removes when I need all of the prices for the whole category:
Code:
if ($cat == "35") { $products = func_search_products($search_query, $user_account['membership'],$current_category["product_count"]); if (count($products) ==0) $products=""; } else { $products = func_search_products($search_query, $user_account['membership'], $first_page,$current_category["product_count"]); if (count($products) ==0) $products=""; }

I wonder if this will ever help anyone...
__________________
Jordan Sitkin
http://www.kitkraft.biz
X-Cart 4.0.18 [unix]
Reply With Quote