View Single Post
  #7  
Old 09-30-2011, 01:43 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: display names of hidden products?

Don't piss Steve off, it will come back to haunt you.....

Do you want to do this in a category, or in featured products?

The logic here would be to query the database for the table xcart_products.
In your php file:
Code:
$newtons_query = "SELECT * FROM $sql_tbl[products] WHERE forsale = 'H' "; $hidden_products = func_query($newtons_query); //Assign the hidden_products variable (array) $smarty->assign('hidden_products', $hidden_products);
--Untested

The best way to see what is getting included in your assigned variable is to use webmaster mode, in the variables view of the debug window.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote