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

display names of hidden products?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-28-2011, 06:17 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default display names of hidden products?

Is there anyway to create another products_t.tpl, and somehow display products that are currently "hidden"? I want to make a list of these, and display them. Is that possible?

also, it needs to be linked via href and do a search and use SKU field as the search string. Is this possible?
__________________
Version 4.4.3
Reply With Quote
  #2  
Old 09-29-2011, 04:39 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: display names of hidden products?

Yes it is possible. It will require php and template changes. I can get this done for you, you can email me at the email in my signature
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 09-29-2011, 02:06 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

instead of soliciting on this forum, do you mind helping a fellow programmer out?
__________________
Version 4.4.3
Reply With Quote
  #4  
Old 09-29-2011, 02:40 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: display names of hidden products?

Wow. Thank you very much. Now I almost don't wanna help you. You asked if it's possible, I answered - yes it is possible. You need to edit search.php and query the hidden products, assign the result so smarty and call the template you want to use to show result
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 09-29-2011, 03:03 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

How do I go about listing the hidden products on say a products_t.tpl? What code would I use to display hidden products?
__________________
Version 4.4.3
Reply With Quote
  #6  
Old 09-29-2011, 03:04 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

How do I edit search.php to query the hidden products? Sorry, I'm new to this, and your response of hiring you once pretty quick. If you help me out, I'll be sure to turn to you for advice or hiring in the future. I hardly know this stuff yet.
__________________
Version 4.4.3
Reply With Quote
  #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
  #8  
Old 09-30-2011, 12:26 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

I'm wanting to duplicate products_t.tpl to say products_t_rightside.tpl, include this file into customer_manufacturer_products.tpl, and display those hidden products on products_t_rightside.tpl....


Then, when one of the hidden products is clicked on, I want it to run a search for the SKU number OF that hidden product that's shown and has a link for it. - Is this possible?
__________________
Version 4.4.3
Reply With Quote
  #9  
Old 09-30-2011, 12:50 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

Where do I paste this code? Which file? Search.php? ;
$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);
__________________
Version 4.4.3
Reply With Quote
  #10  
Old 09-30-2011, 02:49 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

I added ;
$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);

to manufacturer.php,

then i did {$hidden_products}, but all it's displaying is "Array". Am I doing this wrong? Please help!
__________________
Version 4.4.3
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 03:30 AM.

   

 
X-Cart forums © 2001-2020