| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
help displaying hidden products SKU. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've added this; {$hidden_products.productcode} to my customer_manufacturer_products.tpl , and inside manufacturers.php I have added this 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); Can someone explain why this won't work? How can I display my hidden product's SKU's FOR THIS MANUFACTURER ONLY? Which files do I need to edit? What do I need to do? Someone, please help me! Thank you.
__________________
Version 4.4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Then on the TPL where you want to show them you need something like:
{foreach from=$hidden_products.products item=v key=k)} {$v<br>} {/foreach}
__________________
Richard Williams Rogue Wave Limited Initial Inventory Imports Daily Inventory Updates Daily Inventory Reports Drop Ship Support Order Export to Shipper/Supplier Shopping Feeds That Work Programming for X-Cart richard@roguewavelimited.com http://www.roguewavelimited.com |
|||||||||
|
#3
|
|||||||||
|
|||||||||
![]() In manufacturers.php before // Assign the current location line
Code:
In the tpl where need to show result Code:
Note that the way you started it this will work only if you go to any manufacturer page otherwise the code will just not execute and hidden_products array will be empty so nothign to show
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#4
|
|||||||
|
|||||||
![]() Very cool! I think I understand more about x-cart now. Thank you so much for your help!!!!!!!!!!!!!!
__________________
Version 4.4.3 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|