 2013-02-23 14:18 | How to change fieldset search to be product list fieldset search.Hope any respon » Quick.Cart v5.x |
 2013-02-23 14:29 | would you like to have a select list with all your current products? |
 2013-02-23 14:59 | I think all list of product item included subcategories. |
 2013-02-23 16:51 | if cannot to be list product,,, i hope fieldset search change to be pages list fieldset search.Anybody know??? |
 2013-02-23 22:24 | I have in mind something like that. I will write it tomorrow. |
 2013-02-24 10:13 | Hi sir,any idea for this case |
 2013-02-24 11:34 | Just for try
open core/products.php and insert the function below. this is almost the same as listProducts function
public function listProducts2( $iPage, $iList = null, $aProducts = null ){ global $config, $lang;
$oPage = Pages::getInstance( ); $content= null; $this->aPages = null;
if( !isset( $aProducts ) ){ if( DISPLAY_SUBCATEGORY_PRODUCTS === true ){ // return all pages and subpages $oPage->mData = null; $aData = $oPage->throwAllChildrens( $iPage ); if( isset( $aData ) ){ foreach( $aData as $iValue ){ $this->aPages[$iValue] = $iValue; } } $this->aPages[$iPage] = $iPage; $aProducts = $this->generateProductsListArray( ); } }
if( isset( $aProducts ) ){
$iCount = count( $aProducts );
$aKeys = countPageNumber( $iCount, ( isset( $GLOBALS['aActions']['o2'] ) ? $GLOBALS['aActions']['o2'] : null ), $iList ); $this->mData = null;
for( $i = $aKeys['iStart']; $i < $aKeys['iEnd']; $i++ ){ $aData = $this->aProducts[$aProducts[$i]]; $sDescription = null; $sImage = null;
$content .= '<option value="'.$aData['sLinkName'].'">'.$aData['sName']." | " .$this->throwProductsPagesTree( $aData['iProduct'] ).'</option>'; } // end for
if( isset( $content ) ){
return '<select onchange="if (this.value) window.location.href=this.value">'.$content.'</select>'; } } else{ if( $iPage == $config['page_search'] ) echo '<div class="message" id="error"><h3>'.$lang['Data_not_found'].'</h3></div>'; } } // end function listProducts2
now open templates/default/_header.php and find "search form ends here". than insert this below
if( !isset( $oProduct ) ) $oProduct = Products::getInstance( ); echo $oProduct->listProducts2( $aData['iPage'], isset( $bViewAll ) ? 999 : null ); // displaying products
this should work on some pages...
|
 2013-02-24 13:00 | Thanks sir, i'll try it |
 2013-02-26 15:10 | I have try but error.Quick Cart 5.2 don't have _header.php and i check the script at the container is not same format. |